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