Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-23 02:55:37

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_T21', '')
0024 else:
0025    process.load('Configuration.Geometry.GeometryExtended2026D92Reco_cff')
0026    process.trackerGeometry.applyAlignment = False # needed to avoid to pass the Global Position Record
0027 
0028 process.load('FWCore.MessageService.MessageLogger_cfi')
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(1)
0032 )
0033 
0034 process.source = cms.Source("EmptySource",
0035     numberEventsInRun = cms.untracked.uint32(1),
0036         firstRun = cms.untracked.uint32(1)
0037 )
0038 
0039 process.listIds = cms.EDAnalyzer("ListIds",
0040                                 materials = cms.untracked.vstring("materials:Silicon", "tracker:tkLayout_SenSi"),
0041                                 printMaterial = cms.untracked.bool(True)
0042                                 )
0043 process.path = cms.Path(process.listIds)
0044 
0045