Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-06 04:13:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CaloGeometryWriter")
0004 process.load('CondCore.CondDB.CondDB_cfi')
0005 process.load('Configuration.StandardSequences.GeometryExtended_cff')
0006 process.load('Geometry.CaloEventSetup.CaloGeometryDBWriter_cfi')
0007 process.load('CondTools.Geometry.HcalParametersWriter_cff')
0008 process.source = cms.Source("EmptyIOVSource",
0009                             lastValue = cms.uint64(1),
0010                             timetype = cms.string('runnumber'),
0011                             firstValue = cms.uint64(1),
0012                             interval = cms.uint64(1)
0013                             )
0014 
0015 process.CaloGeometryWriter = cms.EDAnalyzer("PCaloGeometryBuilder")
0016 
0017 process.HcalParametersWriter.fromDD4hep = cms.bool(False)
0018 process.CondDB.timetype = cms.untracked.string('runnumber')
0019 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0020 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0021                                           process.CondDB,
0022                                           toPut = cms.VPSet(cms.PSet(record = cms.string('PEcalBarrelRcd'),   tag = cms.string('EBRECO_Geometry_Test01')),
0023                                                             cms.PSet(record = cms.string('PEcalEndcapRcd'),   tag = cms.string('EERECO_Geometry_Test01')),
0024                                                             cms.PSet(record = cms.string('PEcalPreshowerRcd'),tag = cms.string('EPRECO_Geometry_Test01')),
0025                                                             cms.PSet(record = cms.string('PHcalRcd'),         tag = cms.string('HCALRECO_Geometry_Test01')),
0026                                                             cms.PSet(record = cms.string('HcalParametersRcd'), tag = cms.string('HCALParameters_Geometry_Test01')),
0027                                                             cms.PSet(record = cms.string('PCaloTowerRcd'),    tag = cms.string('CTRECO_Geometry_Test01')),
0028                                                             cms.PSet(record = cms.string('PZdcRcd'),          tag = cms.string('ZDCRECO_Geometry_Test01')),
0029                                                             cms.PSet(record = cms.string('PCastorRcd'),       tag = cms.string('CASTORRECO_Geometry_Test01'))
0030                                                             )
0031                                           )
0032 
0033 process.maxEvents = cms.untracked.PSet(
0034     input = cms.untracked.int32(1)
0035     )
0036 
0037 process.p1 = cms.Path(process.CaloGeometryWriter*process.HcalParametersWriter)