File indexing completed on 2023-10-25 09:37:57
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("GEMGeometryWriter")
0004 process.load('CondCore.CondDB.CondDB_cfi')
0005 process.load('Configuration.Geometry.GeometryExtended2021_cff')
0006 process.load('Geometry.MuonNumbering.muonNumberingInitialization_cfi')
0007 process.load("Geometry.MuonNumbering.muonGeometryConstants_cff")
0008 process.load('Configuration.StandardSequences.DD4hep_GeometrySim_cff')
0009 process.load('FWCore.MessageService.MessageLogger_cfi')
0010
0011 process.MessageLogger = cms.Service("MessageLogger",
0012 destinations = cms.untracked.vstring('myLog'),
0013 myLog = cms.untracked.PSet(
0014 threshold = cms.untracked.string('INFO'),
0015 )
0016 )
0017
0018 process.source = cms.Source("EmptyIOVSource",
0019 lastValue = cms.uint64(1),
0020 timetype = cms.string('runnumber'),
0021 firstValue = cms.uint64(1),
0022 interval = cms.uint64(1)
0023 )
0024
0025 process.GEMGeometryWriter = cms.EDAnalyzer("GEMRecoIdealDBLoader")
0026
0027 process.CondDB.timetype = cms.untracked.string('runnumber')
0028 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0029 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0030 process.CondDB,
0031 toPut = cms.VPSet(cms.PSet(record = cms.string('GEMRecoGeometryRcd'),tag = cms.string('GEMRECO_Geometry_Test01'))
0032 )
0033 )
0034
0035 process.maxEvents = cms.untracked.PSet(
0036 input = cms.untracked.int32(1)
0037 )
0038
0039 process.p1 = cms.Path(process.GEMGeometryWriter)