Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:05

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("GeometryWriter")
0004 
0005 process.load('CondCore.CondDB.CondDB_cfi')
0006 
0007 # This will read all the little XML files and from
0008 # that fill the DDCompactView. The modules that fill
0009 # the reco part of the database need the DDCompactView.
0010 process.load('Configuration.Geometry.GeometryExtended2024_cff')
0011 process.load('Geometry.MuonNumbering.muonNumberingInitialization_cfi')
0012 process.load("Geometry.MuonNumbering.muonGeometryConstants_cff")
0013 process.load('Geometry.CaloEventSetup.CaloGeometryDBWriter_cfi')
0014 process.load('CondTools.Geometry.HcalParametersWriter_cff')
0015 
0016 process.source = cms.Source("EmptyIOVSource",
0017                             lastValue = cms.uint64(1),
0018                             timetype = cms.string('runnumber'),
0019                             firstValue = cms.uint64(1),
0020                             interval = cms.uint64(1)
0021                             )
0022 
0023 # This reads the big XML file and the only way to fill the
0024 # nonreco part of the database is to read this file.  It
0025 # somewhat duplicates the information read from the little
0026 # XML files, but there is no way to directly build the
0027 # DDCompactView from this.
0028 process.XMLGeometryWriter = cms.EDAnalyzer("XMLGeometryBuilder",
0029                                            XMLFileName = cms.untracked.string("./geSingleBigFile.xml"),
0030                                            ZIP = cms.untracked.bool(True)
0031                                            )
0032 
0033 process.TrackerGeometryWriter = cms.EDAnalyzer("PGeometricDetBuilder",fromDD4hep=cms.bool(False))
0034 process.TrackerParametersWriter = cms.EDAnalyzer("PTrackerParametersDBBuilder",fromDD4hep=cms.bool(False))
0035 
0036 process.CaloGeometryWriter = cms.EDAnalyzer("PCaloGeometryBuilder")
0037 
0038 process.CSCGeometryWriter = cms.EDAnalyzer("CSCRecoIdealDBLoader",fromDD4hep = cms.untracked.bool(False))
0039 
0040 process.DTGeometryWriter = cms.EDAnalyzer("DTRecoIdealDBLoader",fromDD4hep = cms.untracked.bool(False))
0041 
0042 process.RPCGeometryWriter = cms.EDAnalyzer("RPCRecoIdealDBLoader",fromDD4hep = cms.untracked.bool(False))
0043 
0044 process.GEMGeometryWriter = cms.EDAnalyzer("GEMRecoIdealDBLoader")
0045 
0046 process.CondDB.timetype = cms.untracked.string('runnumber')
0047 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0048 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0049                                           process.CondDB,
0050                                           toPut = cms.VPSet(cms.PSet(record = cms.string('GeometryFileRcd'),tag = cms.string('XMLFILE_Geometry_TagXX_Extended2024_mc')),
0051                                                             cms.PSet(record = cms.string('IdealGeometryRecord'),tag = cms.string('TKRECO_Geometry_TagXX')),
0052                                                             cms.PSet(record = cms.string('PTrackerParametersRcd'),tag = cms.string('TKParameters_Geometry_TagXX')),
0053                                                             cms.PSet(record = cms.string('PEcalBarrelRcd'),   tag = cms.string('EBRECO_Geometry_TagXX')),
0054                                                             cms.PSet(record = cms.string('PEcalEndcapRcd'),   tag = cms.string('EERECO_Geometry_TagXX')),
0055                                                             cms.PSet(record = cms.string('PEcalPreshowerRcd'),tag = cms.string('EPRECO_Geometry_TagXX')),
0056                                                             cms.PSet(record = cms.string('PHcalRcd'),         tag = cms.string('HCALRECO_Geometry_TagXX')),
0057                                                             cms.PSet(record = cms.string('HcalParametersRcd'), tag = cms.string('HCALParameters_Geometry_TagXX')),
0058                                                             cms.PSet(record = cms.string('PCaloTowerRcd'),    tag = cms.string('CTRECO_Geometry_TagXX')),
0059                                                             cms.PSet(record = cms.string('PZdcRcd'),          tag = cms.string('ZDCRECO_Geometry_TagXX')),
0060                                                             cms.PSet(record = cms.string('PCastorRcd'),       tag = cms.string('CASTORRECO_Geometry_TagXX')),
0061                                                             cms.PSet(record = cms.string('CSCRecoGeometryRcd'),tag = cms.string('CSCRECO_Geometry_TagXX')),
0062                                                             cms.PSet(record = cms.string('CSCRecoDigiParametersRcd'),tag = cms.string('CSCRECODIGI_Geometry_TagXX')),
0063                                                             cms.PSet(record = cms.string('DTRecoGeometryRcd'),tag = cms.string('DTRECO_Geometry_TagXX')),
0064                                                             cms.PSet(record = cms.string('RPCRecoGeometryRcd'),tag = cms.string('RPCRECO_Geometry_TagXX')),
0065                                                             cms.PSet(record = cms.string('GEMRecoGeometryRcd'),tag = cms.string('GEMRECO_Geometry_TagXX'))
0066                                                         )
0067                                     )
0068 
0069 process.maxEvents = cms.untracked.PSet(
0070     input = cms.untracked.int32(1)
0071     )
0072 
0073 process.p1 = cms.Path(process.XMLGeometryWriter+process.TrackerGeometryWriter+process.TrackerParametersWriter+process.CaloGeometryWriter+process.HcalParametersWriter+process.CSCGeometryWriter+process.DTGeometryWriter+process.RPCGeometryWriter+process.GEMGeometryWriter)