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.Geometry.GeometryExtended2026D41_cff')
0006 process.load('Geometry.CaloEventSetup.CaloGeometry2026DBWriter_cfi')
0007 process.load('CondTools.Geometry.HcalParametersWriter_cff')
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 
0016 process.CaloGeometryWriter = cms.EDAnalyzer("PCaloGeometryBuilder",
0017                                             EcalE = cms.untracked.bool(False),
0018                                             EcalP = cms.untracked.bool(False),
0019                                             HGCal = cms.untracked.bool(True))
0020 
0021 process.HcalParametersWriter.fromDD4hep = cms.bool(False)
0022 process.CondDB.timetype = cms.untracked.string('runnumber')
0023 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0024 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0025                                           process.CondDB,
0026                                           toPut = cms.VPSet(cms.PSet(record = cms.string('PEcalBarrelRcd'),   tag = cms.string('EBRECO_Geometry_Test01')),
0027                                                             cms.PSet(record = cms.string('PHGCalRcd'),        tag = cms.string('HGCALRECO_Geometry_Test01')),
0028                                                             cms.PSet(record = cms.string('PHcalRcd'),         tag = cms.string('HCALRECO_Geometry_Test01')),
0029                                                             cms.PSet(record = cms.string('HcalParametersRcd'), tag = cms.string('HCALParameters_Geometry_Test01')),
0030                                                             cms.PSet(record = cms.string('PCaloTowerRcd'),    tag = cms.string('CTRECO_Geometry_Test01')),
0031                                                             cms.PSet(record = cms.string('PZdcRcd'),          tag = cms.string('ZDCRECO_Geometry_Test01')),
0032                                                             cms.PSet(record = cms.string('PCastorRcd'),       tag = cms.string('CASTORRECO_Geometry_Test01'))
0033                                                             )
0034                                           )
0035 
0036 process.maxEvents = cms.untracked.PSet(
0037     input = cms.untracked.int32(1)
0038     )
0039 
0040 process.p1 = cms.Path(process.CaloGeometryWriter*process.HcalParametersWriter)