Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-28 03:09:37

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('test')
0004 
0005 
0006 process.source = cms.Source("EmptyIOVSource",
0007     timetype = cms.string('runnumber'),
0008     firstValue = cms.uint64(1),
0009     lastValue = cms.uint64(1),
0010     interval = cms.uint64(1)
0011 )
0012 
0013 #process.maxEvents = cms.untracked.PSet(
0014     #input = cms.untracked.int32(1)
0015 #)
0016 
0017 # load a mapping
0018 process.load("CalibPPS.ESProducers.CTPPSPixelDAQMappingESSourceXML_cfi")
0019 
0020 #Database output service
0021 process.load("CondCore.CondDB.CondDB_cfi")
0022 # output database (in this case local sqlite file)
0023 process.CondDB.connect = 'sqlite_file:CTPPSPixel_DAQMapping_AnalysisMask.db'
0024 
0025 
0026 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0027     process.CondDB,
0028     timetype = cms.untracked.string('runnumber'),
0029     toPut = cms.VPSet(
0030     cms.PSet(
0031         record = cms.string('CTPPSPixelDAQMappingRcd'),
0032         tag = cms.string('PixelDAQMapping'),
0033         label = cms.string('RPix')
0034     )
0035   )
0036 )
0037 
0038 
0039 # print the mapping and analysis mask
0040 process.writeCTPPSPixelDAQMapping = cms.EDAnalyzer("WriteCTPPSPixelDAQMapping",
0041     cms.PSet(
0042         daqmappingiov = cms.uint64(1),
0043         record = cms.string("CTPPSPixelDAQMappingRcd"),
0044         label = cms.string("RPix")
0045     )
0046 )
0047 
0048 process.path = cms.Path(
0049   process.writeCTPPSPixelDAQMapping
0050 )