File indexing completed on 2024-04-06 12:03:05
0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
0003
0004 process = cms.Process("GeometryWriter", Run3_dd4hep)
0005
0006 from Configuration.ProcessModifiers.dd4hep_cff import dd4hep
0007
0008 process.load('CondCore.CondDB.CondDB_cfi')
0009
0010 process.load('Configuration.Geometry.GeometryDD4hepExtended2024_cff')
0011 process.load('Geometry.CaloEventSetup.CaloGeometryDBWriter_cfi')
0012 process.load('CondTools.Geometry.HcalParametersWriter_cff')
0013 process.load("Geometry.MuonNumbering.muonGeometryConstants_cff")
0014
0015 process.CaloGeometryBuilder = cms.ESProducer("CaloGeometryBuilder",
0016 SelectedCalos = cms.vstring(
0017 'HCAL',
0018 'ZDC',
0019 'EcalBarrel',
0020 'EcalEndcap',
0021 'EcalPreshower',
0022 'TOWER'
0023 )
0024 )
0025
0026 process.source = cms.Source("EmptyIOVSource",
0027 lastValue = cms.uint64(1),
0028 timetype = cms.string('runnumber'),
0029 firstValue = cms.uint64(1),
0030 interval = cms.uint64(1)
0031 )
0032
0033
0034
0035 process.XMLGeometryWriter = cms.EDAnalyzer("XMLGeometryBuilder",
0036 XMLFileName = cms.untracked.string("./geSingleBigFile.xml"),
0037 ZIP = cms.untracked.bool(True)
0038 )
0039
0040 process.TrackerGeometryWriter = cms.EDAnalyzer("PGeometricDetBuilder",fromDD4hep=cms.bool(True))
0041 process.TrackerParametersWriter = cms.EDAnalyzer("PTrackerParametersDBBuilder",fromDD4hep=cms.bool(True))
0042
0043 process.CaloGeometryWriter = cms.EDAnalyzer("PCaloGeometryBuilder",fromDD4hep = cms.untracked.bool(True))
0044
0045 process.CSCGeometryWriter = cms.EDAnalyzer("CSCRecoIdealDBLoader",fromDD4hep = cms.untracked.bool(True))
0046
0047 process.DTGeometryWriter = cms.EDAnalyzer("DTRecoIdealDBLoader",fromDD4hep = cms.untracked.bool(True))
0048
0049 process.RPCGeometryWriter = cms.EDAnalyzer("RPCRecoIdealDBLoader",fromDD4hep = cms.untracked.bool(True))
0050
0051 process.GEMGeometryWriter = cms.EDAnalyzer("GEMRecoIdealDBLoader",fromDD4hep = cms.untracked.bool(True))
0052
0053 process.CondDB.timetype = cms.untracked.string('runnumber')
0054 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0055 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0056 process.CondDB,
0057 toPut = cms.VPSet(cms.PSet(record = cms.string('GeometryFileRcd'),tag = cms.string('XMLFILE_Geometry_TagXX_Extended2024_mc')),
0058 cms.PSet(record = cms.string('IdealGeometryRecord'),tag = cms.string('TKRECO_Geometry_TagXX')),
0059 cms.PSet(record = cms.string('PTrackerParametersRcd'),tag = cms.string('TKParameters_Geometry_TagXX')),
0060 cms.PSet(record = cms.string('PEcalBarrelRcd'), tag = cms.string('EBRECO_Geometry_TagXX')),
0061 cms.PSet(record = cms.string('PEcalEndcapRcd'), tag = cms.string('EERECO_Geometry_TagXX')),
0062 cms.PSet(record = cms.string('PEcalPreshowerRcd'),tag = cms.string('EPRECO_Geometry_TagXX')),
0063 cms.PSet(record = cms.string('PHcalRcd'), tag = cms.string('HCALRECO_Geometry_TagXX')),
0064 cms.PSet(record = cms.string('HcalParametersRcd'), tag = cms.string('HCALParameters_Geometry_TagXX')),
0065 cms.PSet(record = cms.string('PCaloTowerRcd'), tag = cms.string('CTRECO_Geometry_TagXX')),
0066 cms.PSet(record = cms.string('PZdcRcd'), tag = cms.string('ZDCRECO_Geometry_TagXX')),
0067 cms.PSet(record = cms.string('PCastorRcd'), tag = cms.string('CASTORRECO_Geometry_TagXX')),
0068 cms.PSet(record = cms.string('CSCRecoGeometryRcd'),tag = cms.string('CSCRECO_Geometry_TagXX')),
0069 cms.PSet(record = cms.string('CSCRecoDigiParametersRcd'),tag = cms.string('CSCRECODIGI_Geometry_TagXX')),
0070 cms.PSet(record = cms.string('DTRecoGeometryRcd'),tag = cms.string('DTRECO_Geometry_TagXX')),
0071 cms.PSet(record = cms.string('RPCRecoGeometryRcd'),tag = cms.string('RPCRECO_Geometry_TagXX')),
0072 cms.PSet(record = cms.string('GEMRecoGeometryRcd'),tag = cms.string('GEMRECO_Geometry_TagXX'))
0073 )
0074 )
0075
0076 process.maxEvents = cms.untracked.PSet(
0077 input = cms.untracked.int32(1)
0078 )
0079
0080 process.p1 = cms.Path(process.XMLGeometryWriter+process.TrackerGeometryWriter+process.TrackerParametersWriter+process.CaloGeometryWriter+process.HcalParametersWriter+process.CSCGeometryWriter+process.DTGeometryWriter+process.RPCGeometryWriter+process.GEMGeometryWriter)