Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("retrieveCTPPSBeamParametersTest")
0004 
0005 # Load CondDB service
0006 process.load("CondCore.CondDB.CondDB_cfi")
0007 
0008 # input database (in this case the local sqlite file)
0009 process.CondDB.connect = 'sqlite_file:CTPPSBeamParameters.db'
0010 
0011 process.MessageLogger = cms.Service("MessageLogger",
0012     cerr = cms.untracked.PSet(
0013         enable = cms.untracked.bool(False)
0014     ),
0015     cout = cms.untracked.PSet(
0016         enable = cms.untracked.bool(True),
0017         threshold = cms.untracked.string('INFO')
0018     )
0019 )
0020 
0021 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0022     process.CondDB,
0023     DumpStat=cms.untracked.bool(True),
0024     toGet = cms.VPSet(cms.PSet(
0025         record = cms.string('CTPPSBeamParametersRcd'),
0026         tag = cms.string("CTPPSBeamParameters_v1")
0027     )),
0028 )
0029 
0030 process.get = cms.EDAnalyzer("RetrieveCTPPSBeamParameters",
0031     verbose = cms.untracked.bool(True)
0032 )
0033 
0034 # A data source must always be defined. We don't need it, so here's a dummy one.
0035 process.source = cms.Source("EmptyIOVSource",
0036     timetype = cms.string('runnumber'),
0037     firstValue = cms.uint64(3),
0038     lastValue = cms.uint64(3),
0039     interval = cms.uint64(1)
0040     #timetype = cms.string('timestamp'),
0041     #firstValue = cms.uint64(6542600000000000000),
0042     #lastValue = cms.uint64(6542700000000000000),
0043     #interval = cms.uint64(100000000000000)
0044     # timetype = cms.string('lumiid'),
0045 )
0046 
0047 process.path = cms.Path(process.get)