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("ProcessOne")
0004 
0005 process.source = cms.Source("EmptyIOVSource",
0006     timetype = cms.string('runnumber'),
0007     firstValue = cms.uint64(1),
0008     lastValue = cms.uint64(1),
0009     interval = cms.uint64(1)
0010 )
0011 #Database output service
0012 
0013 process.load("CondCore.CondDB.CondDB_cfi")
0014 # input database (in this case local sqlite file)
0015 process.CondDB.connect = 'sqlite_file:CTPPSPixel_DAQMapping_AnalysisMask.db'
0016 ##process.CondDB.connect = 'sqlite_file:test.db'
0017 
0018 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0019     process.CondDB,
0020     DumpStat=cms.untracked.bool(True),
0021     toGet = cms.VPSet(
0022       cms.PSet(
0023         record = cms.string('CTPPSPixelDAQMappingRcd'),
0024         tag = cms.string("PixelDAQMapping"),
0025         label = cms.untracked.string("RPix")
0026       ),
0027       cms.PSet(
0028         record = cms.string('CTPPSPixelAnalysisMaskRcd'),
0029         tag = cms.string("PixelAnalysisMask"),
0030         label = cms.untracked.string("RPix")
0031       )
0032     )
0033 )
0034 
0035 
0036 
0037 process.readSqlite = cms.EDAnalyzer("CTPPSPixelDAQMappingAnalyzer",
0038     cms.PSet(
0039         analysismaskiov = cms.uint64(1),
0040         daqmappingiov = cms.uint64(1),
0041         label  = cms.untracked.string("RPix")
0042     )
0043 )
0044 
0045 process.p = cms.Path(process.readSqlite)