Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-27 03:18:09

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