Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-28 03:09:38

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("GeometryWriter")
0004 process.load('CondCore.CondDB.CondDB_cfi')
0005 process.load('Configuration.Geometry.GeometryExtended_cff')
0006 process.load('Geometry.CaloEventSetup.CaloGeometryDBWriter_cfi')
0007 process.load('Geometry.MuonNumbering.muonNumberingInitialization_cfi')
0008 
0009 process.source = cms.Source("EmptyIOVSource",
0010                             lastValue = cms.uint64(1),
0011                             timetype = cms.string('runnumber'),
0012                             firstValue = cms.uint64(1),
0013                             interval = cms.uint64(1)
0014                             )
0015 #this and the outputservice below are set up to do the first insert of GeometryFile
0016 process.XMLGeometryWriter = cms.EDAnalyzer("XMLGeometryBuilder",
0017                                            XMLFileName = cms.untracked.string("./geTagXX.xml"),
0018                                            ZIP = cms.untracked.bool(True)
0019                                            )
0020 
0021 process.TrackerGeometryWriter = cms.EDAnalyzer("PGeometricDetBuilder",fromDD4hep=cms.bool( False ))
0022 process.TrackerParametersWriter = cms.EDAnalyzer("PTrackerParametersDBBuilder", fromDD4hep=cms.bool( False ))
0023 
0024 process.CaloGeometryWriter = cms.EDAnalyzer("PCaloGeometryBuilder")
0025 
0026 process.CSCGeometryWriter = cms.EDAnalyzer("CSCRecoIdealDBLoader")
0027 
0028 process.DTGeometryWriter = cms.EDAnalyzer("DTRecoIdealDBLoader")
0029 
0030 process.RPCGeometryWriter = cms.EDAnalyzer("RPCRecoIdealDBLoader")
0031 
0032 process.CondDB.timetype = cms.untracked.string('runnumber')
0033 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0034 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0035                                           process.CondDB,
0036                                           toPut = cms.VPSet(cms.PSet(record = cms.string('GeometryFileRcd'),tag = cms.string('XMLFILE_Geometry_Extended_TagXX')),
0037                                                             cms.PSet(record = cms.string('IdealGeometryRecord'),tag = cms.string('TKRECO_Geometry_TagXX')),
0038                                                             cms.PSet(record = cms.string('PTrackerParametersRcd'),tag = cms.string('TKParameters_Geometry_TagXX')),
0039                                                             cms.PSet(record = cms.string('PEcalBarrelRcd'),   tag = cms.string('EBRECO_Geometry_TagXX')),
0040                                                             cms.PSet(record = cms.string('PEcalEndcapRcd'),   tag = cms.string('EERECO_Geometry_TagXX')),
0041                                                             cms.PSet(record = cms.string('PEcalPreshowerRcd'),tag = cms.string('EPRECO_Geometry_TagXX')),
0042                                                             cms.PSet(record = cms.string('PHcalRcd'),         tag = cms.string('HCALRECO_Geometry_TagXX')),
0043                                                             cms.PSet(record = cms.string('PCaloTowerRcd'),    tag = cms.string('CTRECO_Geometry_TagXX')),
0044                                                             cms.PSet(record = cms.string('PZdcRcd'),          tag = cms.string('ZDCRECO_Geometry_TagXX')),
0045                                                             cms.PSet(record = cms.string('PCastorRcd'),       tag = cms.string('CASTORRECO_Geometry_TagXX')),
0046                                                             cms.PSet(record = cms.string('CSCRecoGeometryRcd'),tag = cms.string('CSCRECO_Geometry_TagXX')),
0047                                                             cms.PSet(record = cms.string('CSCRecoDigiParametersRcd'),tag = cms.string('CSCRECODIGI_Geometry_TagXX')),
0048                                                             cms.PSet(record = cms.string('DTRecoGeometryRcd'),tag = cms.string('DTRECO_Geometry_TagXX')),
0049                                                             cms.PSet(record = cms.string('RPCRecoGeometryRcd'),tag = cms.string('RPCRECO_Geometry_TagXX'))
0050                                                             )
0051                                           )
0052 
0053 process.maxEvents = cms.untracked.PSet(
0054     input = cms.untracked.int32(1)
0055     )
0056 
0057 process.p1 = cms.Path(process.XMLGeometryWriter+process.TrackerGeometryWriter+process.TrackerParametersWriter+process.CaloGeometryWriter+process.CSCGeometryWriter+process.DTGeometryWriter+process.RPCGeometryWriter)
0058