File indexing completed on 2024-04-06 12:02:44
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("writeCTPPSBeamParameters")
0004
0005
0006 process.load("CondCore.CondDB.CondDB_cfi")
0007
0008
0009 process.CondDB.connect = 'sqlite_file:CTPPSBeamParameters.db'
0010
0011
0012 process.source = cms.Source("EmptyIOVSource",
0013 timetype = cms.string('runnumber'),
0014
0015 firstValue = cms.uint64(1),
0016 lastValue = cms.uint64(1),
0017 interval = cms.uint64(1)
0018 )
0019
0020
0021 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0022 process.CondDB,
0023
0024
0025 timetype = cms.untracked.string('lumiid'),
0026 toPut = cms.VPSet(cms.PSet(
0027 record = cms.string('CTPPSBeamParametersRcd'),
0028 tag = cms.string('CTPPSBeamParameters_v1')
0029 ))
0030 )
0031
0032 process.parameters_maker = cms.EDAnalyzer("WriteCTPPSBeamParameters",
0033 record = cms.string('CTPPSBeamParametersRcd'),
0034 loggingOn= cms.untracked.bool(True),
0035 SinceAppendMode=cms.bool(True),
0036 Source=cms.PSet(
0037 IOVRun=cms.untracked.uint32(1)
0038 )
0039 )
0040
0041 process.path = cms.Path(process.parameters_maker)