Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:14:25

0001 # Configuration file to run stubs/CSCGeometryAnalyser
0002 # to dump CSC geometry information
0003 # Tim Cox 11.06.2008 pythonized
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
0008 
0009 process = cms.Process("GeometryTest", Run3_dd4hep)
0010 
0011 
0012 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0013 process.load('CondCore.CondDB.CondDB_cfi')
0014 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0015 
0016 from Configuration.AlCa.autoCond import autoCond
0017 process.GlobalTag.globaltag = autoCond['upgrade2021']
0018 
0019 process.source = cms.Source("EmptySource")
0020 
0021 process.maxEvents = cms.untracked.PSet(
0022     input = cms.untracked.int32(1)
0023 )
0024 
0025 process.CondDB.timetype = cms.untracked.string('runnumber')
0026 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0027 process.PoolDBESSourceGeometry = cms.ESSource("PoolDBESSource",
0028                                       process.CondDB,
0029                                       toGet = cms.VPSet(cms.PSet(record = cms.string('GeometryFileRcd'),tag = cms.string('XMLFILE_Geometry_TagXX_Extended2021_mc')),
0030                                                         cms.PSet(record = cms.string('IdealGeometryRecord'),tag = cms.string('TKRECO_Geometry_TagXX')),
0031                                                         cms.PSet(record = cms.string('PEcalBarrelRcd'),   tag = cms.string('EBRECO_Geometry_TagXX')),
0032                                                         cms.PSet(record = cms.string('PEcalEndcapRcd'),   tag = cms.string('EERECO_Geometry_TagXX')),
0033                                                         cms.PSet(record = cms.string('PEcalPreshowerRcd'),tag = cms.string('EPRECO_Geometry_TagXX')),
0034                                                         cms.PSet(record = cms.string('PHcalRcd'),         tag = cms.string('HCALRECO_Geometry_TagXX')),
0035                                                         cms.PSet(record = cms.string('PCaloTowerRcd'),    tag = cms.string('CTRECO_Geometry_TagXX')),
0036                                                         cms.PSet(record = cms.string('PZdcRcd'),          tag = cms.string('ZDCRECO_Geometry_TagXX')),
0037                                                         cms.PSet(record = cms.string('PCastorRcd'),       tag = cms.string('CASTORRECO_Geometry_TagXX')),
0038                                                         cms.PSet(record = cms.string('CSCRecoGeometryRcd'),tag = cms.string('CSCRECO_Geometry_TagXX')),
0039                                                         cms.PSet(record = cms.string('CSCRecoDigiParametersRcd'),tag = cms.string('CSCRECODIGI_Geometry_TagXX')),
0040                                                         cms.PSet(record = cms.string('DTRecoGeometryRcd'),tag = cms.string('DTRECO_Geometry_TagXX')),
0041                                                         cms.PSet(record = cms.string('RPCRecoGeometryRcd'),tag = cms.string('RPCRECO_Geometry_TagXX'))
0042                                                         )
0043                                       )
0044 
0045 process.es_prefer_geometry = cms.ESPrefer( "PoolDBESSource", "PoolDBESSourceGeometry" )
0046 
0047 process.load("Alignment.CommonAlignmentProducer.FakeAlignmentSource_cfi")
0048 process.preferFakeAlign = cms.ESPrefer("FakeAlignmentSource") 
0049 
0050 process.MessageLogger = cms.Service("MessageLogger",
0051     cerr = cms.untracked.PSet(
0052         enable = cms.untracked.bool(False)
0053     ),
0054     debugModules = cms.untracked.vstring('*'),
0055     files = cms.untracked.PSet(
0056         debug = cms.untracked.PSet(
0057             CSC = cms.untracked.PSet(
0058                 limit = cms.untracked.int32(-1)
0059             ),
0060             CSCGeometryBuilderFromDDD = cms.untracked.PSet(
0061                 limit = cms.untracked.int32(-1)
0062             ),
0063             CSCNumbering = cms.untracked.PSet(
0064                 limit = cms.untracked.int32(-1)
0065             ),
0066             DEBUG = cms.untracked.PSet(
0067                 limit = cms.untracked.int32(0)
0068             ),
0069             INFO = cms.untracked.PSet(
0070                 limit = cms.untracked.int32(0)
0071             ),
0072             RadialStripTopology = cms.untracked.PSet(
0073                 limit = cms.untracked.int32(-1)
0074             ),
0075             extension = cms.untracked.string('.out'),
0076             noLineBreaks = cms.untracked.bool(True),
0077             threshold = cms.untracked.string('DEBUG')
0078         ),
0079         errors = cms.untracked.PSet(
0080             extension = cms.untracked.string('.out'),
0081             threshold = cms.untracked.string('ERROR')
0082         ),
0083         log = cms.untracked.PSet(
0084             extension = cms.untracked.string('.out')
0085         )
0086     )
0087 )
0088 
0089 process.producer = cms.EDAnalyzer("CSCGeometryAnalyzer")
0090 
0091 process.CSCGeometryESModule.debugV = True
0092 
0093 process.p1 = cms.Path(process.producer)
0094