Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:22

0001 # cfg file to test the online producer of L1GtTriggerMaskTechTrigRcd
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 
0023 # key for partition X (default: 0)
0024 partitionNr = cms.int32(0)
0025 
0026 process.load("L1TriggerConfig.L1GtConfigProducers.L1GtRsObjectKeysOnline_cff")
0027 process.l1GtRsObjectKeysOnline.PartitionNumber = partitionNr 
0028 
0029 process.load("L1TriggerConfig.L1GtConfigProducers.l1GtTriggerMaskTechTrigOnline_cfi")
0030 process.l1GtTriggerMaskTechTrigOnline.PartitionNumber = partitionNr 
0031 
0032 process.getter = cms.EDAnalyzer("EventSetupRecordDataGetter",
0033    toGet = cms.VPSet(cms.PSet(
0034    record = cms.string('L1GtTriggerMaskTechTrigRcd'),
0035    data = cms.vstring('L1GtTriggerMask')
0036    )),
0037    verbose = cms.untracked.bool(True)
0038 )
0039 
0040 process.p = cms.Path(process.getter)
0041 
0042 # Message Logger
0043 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0044 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0045 process.MessageLogger.cout.threshold = cms.untracked.string('DEBUG')
0046 process.MessageLogger.debugModules = cms.untracked.vstring('*')