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 L1GtParametersRcd
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 # TSC key
0019 process.load("CondTools.L1Trigger.L1SubsystemKeysOnline_cfi")
0020 process.L1SubsystemKeysOnline.tscKey = cms.string( 'TSC_000610_081121_CRAFT_GTgtstartupbase3tm2v2_GMTstartupdt_GCT_RCT_DTTF_ECAL_HCAL_DT_MI' )
0021 
0022 # Subclass of L1ObjectKeysOnlineProdBase.
0023 process.load("L1TriggerConfig.L1GtConfigProducers.l1GtTscObjectKeysOnline_cfi")
0024 process.l1GtTscObjectKeysOnline.subsystemLabel = cms.string('')
0025 
0026 # Generate dummy L1TriggerKeyList
0027 process.load("CondTools.L1Trigger.L1TriggerKeyListDummy_cff")
0028 
0029 # Get configuration data from OMDS.  This is the subclass of L1ConfigOnlineProdBase.
0030 process.load("L1TriggerConfig.L1GtConfigProducers.l1GtParametersOnline_cfi")
0031 
0032 
0033 process.getter = cms.EDAnalyzer("EventSetupRecordDataGetter",
0034    toGet = cms.VPSet(cms.PSet(
0035    record = cms.string('L1GtParametersRcd'),
0036    data = cms.vstring('L1GtParameters')
0037    )),
0038    verbose = cms.untracked.bool(True)
0039 )
0040 
0041 process.p = cms.Path(process.getter)
0042 
0043 # Message Logger
0044 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0045 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0046 process.MessageLogger.cout.threshold = cms.untracked.string('DEBUG')
0047 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0048