Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
0004 
0005 process = cms.Process("GeometryTest", Run3_dd4hep)
0006 
0007 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0008 process.load('CondCore.CondDB.CondDB_cfi')
0009 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0010 from Configuration.AlCa.GlobalTag import GlobalTag
0011 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgrade2021', '')
0012 
0013 process.load('FWCore.MessageLogger.MessageLogger_cfi')
0014 if 'MessageLogger' in process.__dict__:
0015     process.MessageLogger.CaloGeom=dict()
0016 
0017 process.source = cms.Source("EmptySource")
0018 
0019 process.maxEvents = cms.untracked.PSet(
0020     input = cms.untracked.int32(4)
0021 )
0022 
0023 process.CondDB.timetype = cms.untracked.string('runnumber')
0024 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0025 process.PoolDBESSourceGeometry = cms.ESSource("PoolDBESSource",
0026                                               process.CondDB,
0027                                               toGet = cms.VPSet(cms.PSet(record = cms.string('PEcalBarrelRcd'),          tag = cms.string('EBRECO_Geometry_TagXX')),
0028                                                                 cms.PSet(record = cms.string('PEcalEndcapRcd'),          tag = cms.string('EERECO_Geometry_TagXX')),
0029                                                                 cms.PSet(record = cms.string('PEcalPreshowerRcd'),       tag = cms.string('EPRECO_Geometry_TagXX')),
0030                                                                 cms.PSet(record = cms.string('PHcalRcd'),                tag = cms.string('HCALRECO_Geometry_TagXX')),
0031                                                                 cms.PSet(record = cms.string('PCaloTowerRcd'),           tag = cms.string('CTRECO_Geometry_TagXX')),
0032                                                                 cms.PSet(record = cms.string('PZdcRcd'),                 tag = cms.string('ZDCRECO_Geometry_TagXX')),
0033                                                                 cms.PSet(record = cms.string('PCastorRcd'),              tag = cms.string('CASTORRECO_Geometry_TagXX')),
0034                                                                 cms.PSet(record = cms.string('CSCRecoGeometryRcd'),      tag = cms.string('CSCRECO_Geometry_TagXX')),
0035                                                                 cms.PSet(record = cms.string('CSCRecoDigiParametersRcd'),tag = cms.string('CSCRECODIGI_Geometry_TagXX')),
0036                                                                 cms.PSet(record = cms.string('DTRecoGeometryRcd'),       tag = cms.string('DTRECO_Geometry_TagXX')),
0037                                                                 cms.PSet(record = cms.string('IdealGeometryRecord'),     tag = cms.string('TKRECO_Geometry_TagXX')),
0038                                                                 cms.PSet(record = cms.string('PZdcRcd'),                 tag = cms.string('ZDCRECO_Geometry_TagXX')),
0039                                                                 cms.PSet(record = cms.string('RPCRecoGeometryRcd'),      tag = cms.string('RPCRECO_Geometry_TagXX'))
0040                                                                 )
0041                                               )
0042 
0043 process.es_prefer_geometry = cms.ESPrefer( "PoolDBESSource", "PoolDBESSourceGeometry" )
0044 
0045 process.etta = cms.EDAnalyzer("DumpEcalTrigTowerMapping")
0046 
0047 process.ctgw = cms.EDAnalyzer("TestEcalGetWindow")
0048 
0049 process.cga = cms.EDAnalyzer("CaloGeometryAnalyzer",
0050                              fullEcalDump = cms.untracked.bool(True)
0051                              )
0052 
0053 process.mfa = cms.EDAnalyzer("testMagneticField")
0054 
0055 process.TFileService = cms.Service("TFileService",
0056                                    fileName = cms.string('calogeom.root')
0057                                    )
0058 
0059 # process.p1 = cms.Path(process.etta*process.ctgw*process.cga*process.mfa)
0060 process.p1 = cms.Path(process.etta*process.ctgw*process.cga)
0061 # FIXME Restore magnetic field test. Code has to be added to read field record