Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("L1ConfigWritePayloadDummy")
0004 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0005 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0006 process.MessageLogger.cout.threshold = cms.untracked.string('INFO')
0007 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0008 
0009 # Generate dummy L1TriggerKeyList
0010 process.load("CondTools.L1Trigger.L1TriggerKeyListDummy_cff")
0011 
0012 # Get configuration data from OMDS.  This is the subclass of L1ConfigOnlineProdBase.
0013 process.load("L1TriggerConfig.GMTConfigProducers.L1MuGMTParametersOnlineProducer_cfi")
0014 process.L1MuGMTParametersOnlineProducer.ignoreVersionMismatch = True
0015 
0016 process.maxEvents = cms.untracked.PSet(
0017     input = cms.untracked.int32(1)
0018 )
0019 process.source = cms.Source("EmptyIOVSource",
0020     timetype = cms.string('runnumber'),
0021     firstValue = cms.uint64(1),
0022     lastValue = cms.uint64(1),
0023     interval = cms.uint64(1)
0024 )
0025 
0026 process.getter = cms.EDAnalyzer("EventSetupRecordDataGetter",
0027    toGet = cms.VPSet(cms.PSet(
0028    record = cms.string('L1MuGMTParametersRcd'),
0029    data = cms.vstring('L1MuGMTParameters')
0030    )),
0031    verbose = cms.untracked.bool(True)
0032 )
0033 
0034 process.p = cms.Path(process.getter)
0035 
0036 
0037 # # from https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideL1ConfigOnlineProd
0038 
0039 # Alternative 1 :
0040 # For a known object key (MyObjectKey):
0041 
0042 process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0043 process.L1TriggerKeyDummy.objectKeys = cms.VPSet(cms.PSet(
0044         record = cms.string('L1MuGMTParametersRcd'),
0045         type = cms.string('L1MuGMTParameters'),
0046         key = cms.string('default1')
0047 ))
0048 
0049 # # Alternative 2:
0050 # # For a known subsystem key (MySubsystemKey):
0051 # # [x] Works!
0052 
0053 # process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0054 # process.L1TriggerKeyDummy.objectKeys = cms.VPSet()
0055 # process.L1TriggerKeyDummy.label = cms.string('SubsystemKeysOnly')
0056 
0057 # # xxxKey = csctfKey, dttfKey, rpcKey, gmtKey, rctKey, gctKey, gtKey, or tsp0Key
0058 # process.L1TriggerKeyDummy.gmtKey = cms.string('cruzet_dt_csc5_rpc5')
0059 
0060 # # Subclass of L1ObjectKeysOnlineProdBase.
0061 # process.load("L1TriggerConfig.GMTConfigProducers.L1MuGMTParametersKeysOnlineProd_cfi")
0062 # process.L1MuGMTParametersKeysOnlineProd.subsystemLabel = cms.string('')
0063 
0064 
0065 # # Alternative 3:
0066 # # For a known TSC key (MyTSCKey):
0067 # # [x] Works!
0068 
0069 # process.load("CondTools.L1Trigger.L1SubsystemKeysOnline_cfi")
0070 # process.L1SubsystemKeysOnline.tscKey = cms.string( 'TSC_CRUZET2_080613_GTmuon_GMTDTRPC5CSC5_CSCclosedwindow_DTTFtopbot_RPC_LUM_GCT_RCTH' )
0071  
0072 
0073 # # Subclass of L1ObjectKeysOnlineProdBase.
0074 # process.load("L1TriggerConfig.GMTConfigProducers.L1MuGMTParametersKeysOnlineProd_cfi")
0075 # process.L1MuGMTParametersKeysOnlineProd.subsystemLabel = cms.string('')
0076 
0077