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
0008
0009
0010 process.load('Configuration.Geometry.GeometryExtended2015_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
0023
0024
0025
0026
0027 process.XMLGeometryWriter = cms.EDAnalyzer("XMLGeometryBuilder",
0028 XMLFileName = cms.untracked.string('./geSingleBigFile.xml'),
0029 ZIP = cms.untracked.bool(True)
0030 )
0031 process.TrackerGeometricDetESModule = cms.ESProducer( "TrackerGeometricDetESModule",
0032 fromDDD = cms.bool( True )
0033 )
0034
0035 process.TrackerGeometryWriter = cms.EDAnalyzer("PGeometricDetBuilder",fromDD4hep=cms.bool(False))
0036 process.TrackerParametersWriter = cms.EDAnalyzer("PTrackerParametersDBBuilder",fromDD4hep=cms.bool(False))
0037
0038 process.CaloGeometryWriter = cms.EDAnalyzer("PCaloGeometryBuilder")
0039
0040 process.CSCGeometryWriter = cms.EDAnalyzer("CSCRecoIdealDBLoader")
0041
0042 process.DTGeometryWriter = cms.EDAnalyzer("DTRecoIdealDBLoader")
0043
0044 process.RPCGeometryWriter = cms.EDAnalyzer("RPCRecoIdealDBLoader")
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_Extended2015_mc')),
0051 cms.PSet(record = cms.string('IdealGeometryRecord'),tag = cms.string('TKRECO_Geometry2015_TagXX')),
0052 cms.PSet(record = cms.string('PTrackerParametersRcd'),tag = cms.string('TKParameters_Geometry2015_TagXX')),
0053 cms.PSet(record = cms.string('PEcalBarrelRcd'), tag = cms.string('EBRECO_Geometry2015_TagXX')),
0054 cms.PSet(record = cms.string('PEcalEndcapRcd'), tag = cms.string('EERECO_Geometry2015_TagXX')),
0055 cms.PSet(record = cms.string('PEcalPreshowerRcd'),tag = cms.string('EPRECO_Geometry2015_TagXX')),
0056 cms.PSet(record = cms.string('PHcalRcd'), tag = cms.string('HCALRECO_Geometry2015_TagXX')),
0057 cms.PSet(record = cms.string('HcalParametersRcd'), tag = cms.string('HCALParameters_Geometry2015_TagXX')),
0058 cms.PSet(record = cms.string('PCaloTowerRcd'), tag = cms.string('CTRECO_Geometry2015_TagXX')),
0059 cms.PSet(record = cms.string('PZdcRcd'), tag = cms.string('ZDCRECO_Geometry2015_TagXX')),
0060 cms.PSet(record = cms.string('PCastorRcd'), tag = cms.string('CASTORRECO_Geometry2015_TagXX')),
0061 cms.PSet(record = cms.string('CSCRecoGeometryRcd'),tag = cms.string('CSCRECO_Geometry2015_TagXX')),
0062 cms.PSet(record = cms.string('CSCRecoDigiParametersRcd'),tag = cms.string('CSCRECODIGI_Geometry2015_TagXX')),
0063 cms.PSet(record = cms.string('DTRecoGeometryRcd'),tag = cms.string('DTRECO_Geometry2015_TagXX')),
0064 cms.PSet(record = cms.string('RPCRecoGeometryRcd'),tag = cms.string('RPCRECO_Geometry2015_TagXX'))
0065 )
0066 )
0067
0068 process.maxEvents = cms.untracked.PSet(
0069 input = cms.untracked.int32(1)
0070 )
0071
0072 process.p1 = cms.Path(process.XMLGeometryWriter+process.TrackerGeometryWriter+process.TrackerParametersWriter+process.CaloGeometryWriter+process.HcalParametersWriter+process.CSCGeometryWriter+process.DTGeometryWriter+process.RPCGeometryWriter)