Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:05

0001 #! /usr/bin/env cmsRun
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("MaterialAnalyser")
0006 
0007 readGeometryFromDB = True
0008 
0009 if not readGeometryFromDB:
0010   process.load('Configuration.Geometry.GeometryExtended2017Reco_cff')
0011 else:
0012 # GlobalTag and geometry via GT
0013   process.load('Configuration.Geometry.GeometrySimDB_cff')
0014   process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0015   from Configuration.AlCa.GlobalTag import GlobalTag
0016   process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '')
0017 
0018 process.load('FWCore.MessageService.MessageLogger_cfi')
0019 
0020 process.maxEvents = cms.untracked.PSet(
0021     input = cms.untracked.int32(1)
0022 )
0023 
0024 process.source = cms.Source("EmptySource",
0025     numberEventsInRun = cms.untracked.uint32(1),
0026         firstRun = cms.untracked.uint32(1)
0027 )
0028 
0029 process.listIds = cms.EDAnalyzer("ListIds",
0030                                 materials = cms.untracked.vstring("materials:Silicon" , "tracker:SenSi"),
0031                                 printMaterial = cms.untracked.bool(False)
0032                                 )
0033 process.path = cms.Path(process.listIds)