Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:08

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