Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:27

0001 from __future__ import print_function
0002 #! /usr/bin/env cmsRun
0003 
0004 import sys
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 from Configuration.Geometry.GeometryDD4hepExtended2021_cff import *
0008 
0009 process = cms.Process("MaterialAnalyser")
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 
0012 
0013 if hasattr(process,'MessageLogger'):
0014     process.MessageLogger.ListIds=dict()
0015 
0016 process.source = cms.Source("EmptySource")
0017 
0018 process.maxEvents = cms.untracked.PSet(
0019     input = cms.untracked.int32(1)
0020 )
0021 
0022 process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
0023     confGeomXMLFiles = cms.FileInPath(
0024         'Geometry/TrackerCommonData/data/dd4hep/cms-tracker-geometry-2021.xml'
0025     ),
0026     appendToDataLabel = cms.string('CMS')
0027 )
0028 
0029 
0030 process.DDSpecParRegistryESProducer = cms.ESProducer(
0031     "DDSpecParRegistryESProducer"
0032 )
0033 
0034 process.DDCompactViewESProducer = cms.ESProducer(
0035     "DDCompactViewESProducer",
0036     appendToDataLabel = cms.string('CMS')
0037 )
0038 
0039 process.test = cms.EDAnalyzer(
0040     "DD4hep_ListIds",
0041     materials = cms.untracked.vstring("materials:Silicon" , "tracker:SenSi", "materials:Air"),
0042     printMaterial = cms.untracked.bool(False)
0043 )
0044 
0045 process.path = cms.Path(
0046     process.test
0047 )