text: import FWCore.ParameterSet.Config as cms
  
  process = cms.Process("CaloGeometryWriter")
  process.load('CondCore.CondDB.CondDB_cfi')
  process.load('Configuration.StandardSequences.GeometryExtended_cff')
  process.load('Geometry.CaloEventSetup.CaloGeometryDBWriter_cfi')
  process.load('CondTools.Geometry.HcalParametersWriter_cff')
  process.source = cms.Source("EmptyIOVSource",
                              lastValue = cms.uint64(1),
                              timetype = cms.string('runnumber'),
                              firstValue = cms.uint64(1),
                              interval = cms.uint64(1)
                              )
  
  process.CaloGeometryWriter = cms.EDAnalyzer("PCaloGeometryBuilder")
  
  process.HcalParametersWriter.fromDD4hep = cms.bool(False)
  process.CondDB.timetype = cms.untracked.string('runnumber')
  process.CondDB.connect = cms.string('sqlite_file:myfile.db')
  process.PoolDBOutputService = cms.Service("PoolDBOutputService",
                                            process.CondDB,
                                            toPut = cms.VPSet(cms.PSet(record = cms.string('PEcalBarrelRcd'),   tag = cms.string('EBRECO_Geometry_Test01')),
                                                              cms.PSet(record = cms.string('PEcalEndcapRcd'),   tag = cms.string('EERECO_Geometry_Test01')),
                                                              cms.PSet(record = cms.string('PEcalPreshowerRcd'),tag = cms.string('EPRECO_Geometry_Test01')),
                                                              cms.PSet(record = cms.string('PHcalRcd'),         tag = cms.string('HCALRECO_Geometry_Test01')),
                                                              cms.PSet(record = cms.string('HcalParametersRcd'), tag = cms.string('HCALParameters_Geometry_Test01')),
                                                              cms.PSet(record = cms.string('PCaloTowerRcd'),    tag = cms.string('CTRECO_Geometry_Test01')),
                                                              cms.PSet(record = cms.string('PZdcRcd'),          tag = cms.string('ZDCRECO_Geometry_Test01')),
                                                              cms.PSet(record = cms.string('PCastorRcd'),       tag = cms.string('CASTORRECO_Geometry_Test01'))
                                                              )
                                            )
  
  process.maxEvents = cms.untracked.PSet(
      input = cms.untracked.int32(1)
      )
  
  process.p1 = cms.Path(process.CaloGeometryWriter*process.HcalParametersWriter)
  