Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:45

0001 #! /usr/bin/env cmsRun
0002 # cmsRun listIds_PhaseII.py fromDB=False
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 from FWCore.ParameterSet.VarParsing import VarParsing
0006 
0007 process = cms.Process("MaterialAnalyser")
0008 
0009 options = VarParsing('analysis')
0010 
0011 options.register('fromDB',
0012                  False,
0013                  VarParsing.multiplicity.singleton,
0014                  VarParsing.varType.bool,
0015                  'Read Geometry from DB?',
0016 )
0017 
0018 options.parseArguments()
0019 
0020 if options.fromDB :
0021    process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0022    from Configuration.AlCa.GlobalTag import GlobalTag
0023    process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0024 else:
0025    process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff')
0026 
0027 process.load('FWCore.MessageService.MessageLogger_cfi')
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(1)
0031 )
0032 
0033 process.source = cms.Source("EmptySource",
0034     numberEventsInRun = cms.untracked.uint32(1),
0035         firstRun = cms.untracked.uint32(1)
0036 )
0037 
0038 process.listIds = cms.EDAnalyzer("ListIds",
0039                                 materials = cms.untracked.vstring("materials:Silicon", "tracker:tkLayout_SenSi"),
0040                                 printMaterial = cms.untracked.bool(True)
0041                                 )
0042 process.path = cms.Path(process.listIds)
0043 
0044