Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-14 22:35:53

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
0004 
0005 process = cms.Process("DDCMSDetectorTest", Run3_dd4hep)
0006 
0007 process.source = cms.Source("EmptySource")
0008 process.maxEvents = cms.untracked.PSet(
0009     input = cms.untracked.int32(1)
0010     )
0011 
0012 process.MessageLogger = cms.Service("MessageLogger",
0013     cerr = cms.untracked.PSet(
0014         enable = cms.untracked.bool(False)
0015     ),
0016     cout = cms.untracked.PSet(
0017         enable = cms.untracked.bool(True),
0018         enableStatistics = cms.untracked.bool(False),
0019         noLineBreaks = cms.untracked.bool(True),
0020         threshold = cms.untracked.string('WARNING')
0021     ),
0022     files = cms.untracked.PSet(
0023         navGeometry = cms.untracked.PSet(
0024             DEBUG = cms.untracked.PSet(
0025                 limit = cms.untracked.int32(0)
0026             ),
0027             ERROR = cms.untracked.PSet(
0028                 limit = cms.untracked.int32(0)
0029             ),
0030             DumpGeometry = cms.untracked.PSet(
0031                 limit = cms.untracked.int32(-1)
0032             ),
0033             INFO = cms.untracked.PSet(
0034                 limit = cms.untracked.int32(0)
0035             ),
0036             WARNING = cms.untracked.PSet(
0037                 limit = cms.untracked.int32(0)
0038             ),
0039             enableStatistics = cms.untracked.bool(False),
0040             noLineBreaks = cms.untracked.bool(True),
0041             threshold = cms.untracked.string('INFO')
0042         )
0043     )
0044 )
0045 
0046 process.load("Configuration.StandardSequences.GeometryDB_cff")
0047 process.load('CondCore.CondDB.CondDB_cfi')
0048 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0049 from Configuration.AlCa.autoCond import autoCond
0050 process.GlobalTag.globaltag = autoCond['upgrade2021']
0051 
0052 process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
0053                                             rootDDName = cms.string('cms:OCMS'),
0054                                             label = cms.string('Extended'),
0055                                             fromDB = cms.bool(True),
0056                                             appendToDataLabel = cms.string('CMS')
0057 )
0058 
0059 process.CondDB.timetype = cms.untracked.string('runnumber')
0060 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0061 process.PoolDBESSourceGeometry = cms.ESSource("PoolDBESSource",
0062                                       process.CondDB,
0063                                       toGet = cms.VPSet(cms.PSet(record = cms.string('GeometryFileRcd'),tag = cms.string('XMLFILE_Geometry_TagXX_Extended2021_mc')),
0064                                                         cms.PSet(record = cms.string('IdealGeometryRecord'),tag = cms.string('TKRECO_Geometry_TagXX')),
0065                                                         cms.PSet(record = cms.string('PEcalBarrelRcd'),   tag = cms.string('EBRECO_Geometry_TagXX')),
0066                                                         cms.PSet(record = cms.string('PEcalEndcapRcd'),   tag = cms.string('EERECO_Geometry_TagXX')),
0067                                                         cms.PSet(record = cms.string('PEcalPreshowerRcd'),tag = cms.string('EPRECO_Geometry_TagXX')),
0068                                                         cms.PSet(record = cms.string('PHcalRcd'),         tag = cms.string('HCALRECO_Geometry_TagXX')),
0069                                                         cms.PSet(record = cms.string('PCaloTowerRcd'),    tag = cms.string('CTRECO_Geometry_TagXX')),
0070                                                         cms.PSet(record = cms.string('PZdcRcd'),          tag = cms.string('ZDCRECO_Geometry_TagXX')),
0071                                                         cms.PSet(record = cms.string('PCastorRcd'),       tag = cms.string('CASTORRECO_Geometry_TagXX')),
0072                                                         cms.PSet(record = cms.string('CSCRecoGeometryRcd'),tag = cms.string('CSCRECO_Geometry_TagXX')),
0073                                                         cms.PSet(record = cms.string('CSCRecoDigiParametersRcd'),tag = cms.string('CSCRECODIGI_Geometry_TagXX')),
0074                                                         cms.PSet(record = cms.string('DTRecoGeometryRcd'),tag = cms.string('DTRECO_Geometry_TagXX')),
0075                                                         cms.PSet(record = cms.string('RPCRecoGeometryRcd'),tag = cms.string('RPCRECO_Geometry_TagXX'))
0076                                                         )
0077                                       )
0078 
0079 process.es_prefer_geometry = cms.ESPrefer( "PoolDBESSource", "PoolDBESSourceGeometry" )
0080 process.test = cms.EDAnalyzer("DDTestDumpGeometry",
0081                               DDDetector = cms.ESInputTag('','CMS')
0082                               )
0083 
0084 process.p = cms.Path(process.test)