Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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.L1ScalesProducers.L1MuTriggerScalesOnlineProducer_cfi")
0014 process.load("L1TriggerConfig.L1ScalesProducers.L1MuTriggerPtScaleOnlineProducer_cfi")
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.getter1 = cms.EDAnalyzer("EventSetupRecordDataGetter",
0027    toGet = cms.VPSet(cms.PSet(
0028    record = cms.string('L1MuTriggerPtScaleRcd'),
0029    data = cms.vstring('L1MuTriggerPtScale')
0030    )),
0031    verbose = cms.untracked.bool(True)
0032 )
0033 
0034 process.getter2 = cms.EDAnalyzer("EventSetupRecordDataGetter",
0035    toGet = cms.VPSet(cms.PSet(
0036    record = cms.string('L1MuTriggerScalesRcd'),
0037    data = cms.vstring('L1MuTriggerScales')
0038    )),
0039    verbose = cms.untracked.bool(True)
0040 )
0041 
0042 process.p = cms.Path(process.getter1 + process.getter2)
0043 
0044 
0045 # # from https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideL1ConfigOnlineProd
0046 
0047 # Alternative 1 :
0048 # For a known object key (MyObjectKey):
0049 
0050 # process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0051 # process.L1TriggerKeyDummy.objectKeys = cms.VPSet(
0052 #     cms.PSet(
0053 #         record = cms.string('L1MuTriggerPtScaleRcd'),
0054 #         type = cms.string('L1MuTriggerPtScale'),
0055 #         key = cms.string('L1T_Scales_20080926_startup')
0056 #         ),
0057 
0058 #     cms.PSet(
0059 #         record = cms.string('L1MuTriggerScalesRcd'),
0060 #         type = cms.string('L1MuTriggerScales'),
0061 #         key = cms.string('L1T_Scales_20080926_startup')
0062 #     ),
0063 
0064 # )
0065 
0066 # # Alternative 2:
0067 # # For a known subsystem key (MySubsystemKey):
0068 # # [x] Works!
0069 
0070 process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0071 process.L1TriggerKeyDummy.objectKeys = cms.VPSet()
0072 process.L1TriggerKeyDummy.label = cms.string('SubsystemKeysOnly')
0073 
0074 # xxxKey = csctfKey, dttfKey, rpcKey, gmtKey, rctKey, gctKey, gtKey, or tsp0Key
0075 process.L1TriggerKeyDummy.gmtKey = cms.string('test20080429')
0076 
0077 # Subclass of L1ObjectKeysOnlineProdBase.
0078 process.load("L1TriggerConfig.L1ScalesProducers.L1MuTriggerScaleKeysOnlineProd_cfi")
0079 process.L1MuTriggerScaleKeysOnlineProd.subsystemLabel = cms.string('')
0080 
0081 
0082 # # Alternative 3:
0083 # # For a known TSC key (MyTSCKey):
0084 # # [x] Works!
0085 
0086 # process.load("CondTools.L1Trigger.L1SubsystemKeysOnline_cfi")
0087 # process.L1SubsystemKeysOnline.tscKey = cms.string( 'TSC_CRUZET2_080613_GTmuon_GMTDTRPC5CSC5_CSCclosedwindow_DTTFtopbot_RPC_LUM_GCT_RCTH' )
0088  
0089 
0090 # # Subclass of L1ObjectKeysOnlineProdBase.
0091 # process.load("L1TriggerConfig.GMTConfigProducers.L1MuGMTParametersKeysOnlineProd_cfi")
0092 # process.L1MuGMTParametersKeysOnlineProd.subsystemLabel = cms.string('')
0093 
0094