Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:12

0001 # cfg file to test the online producer of L1GtPrescaleFactorsAlgoTrigRcd
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("L1ConfigWritePayloadDummy")
0006 
0007 # number of events and source
0008 process.maxEvents = cms.untracked.PSet(
0009     input = cms.untracked.int32(1)
0010 )
0011 process.source = cms.Source("EmptyIOVSource",
0012     timetype = cms.string('runnumber'),
0013     firstValue = cms.uint64(1),
0014     lastValue = cms.uint64(1),
0015     interval = cms.uint64(1)
0016 )
0017 
0018 # Generate dummy L1TriggerKeyList
0019 process.load("CondTools.L1Trigger.L1TriggerKeyListDummy_cff")
0020 
0021 # Get configuration data from OMDS.  This is the subclass of L1ConfigOnlineProdBase.
0022 # key for partition X (default: 0) - prescale factors are not partition dependent
0023 process.load("L1TriggerConfig.L1GtConfigProducers.L1GtRsObjectKeysOnline_cff")
0024 #process.l1GtRsObjectKeysOnline.PartitionNumber = cms.int32(0)
0025 
0026 process.load("L1TriggerConfig.L1GtConfigProducers.l1GtPrescaleFactorsAlgoTrigOnline_cfi")
0027 
0028 process.getter = cms.EDAnalyzer("EventSetupRecordDataGetter",
0029    toGet = cms.VPSet(cms.PSet(
0030    record = cms.string('L1GtPrescaleFactorsAlgoTrigRcd'),
0031    data = cms.vstring('L1GtPrescaleFactors')
0032    )),
0033    verbose = cms.untracked.bool(True)
0034 )
0035 
0036 process.p = cms.Path(process.getter)
0037 
0038 # Message Logger
0039 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0040 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0041 process.MessageLogger.cout.threshold = cms.untracked.string('DEBUG')
0042 process.MessageLogger.debugModules = cms.untracked.vstring('*')