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 import sys
0004 import os
0005 
0006 # arguments
0007 if (len(sys.argv)>1) :
0008     key=str(sys.argv[2])
0009 else :
0010     key='Default'
0011 
0012 # CMSSW config
0013 process = cms.Process("L1ConfigWritePayloadDummy")
0014 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0015 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0016 process.MessageLogger.cout.threshold = cms.untracked.string('DEBUG')
0017 process.MessageLogger.debugModules = cms.untracked.vstring('l1GctConfigDump')
0018 
0019 # Generate dummy L1TriggerKeyList
0020 process.load("CondTools.L1Trigger.L1TriggerKeyListDummy_cff")
0021 
0022 # get 
0023 process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0024 process.L1TriggerKeyDummy.objectKeys = cms.VPSet()
0025 process.L1TriggerKeyDummy.label = cms.string('SubsystemKeysOnly')
0026 
0027 # xxxKey = csctfKey, dttfKey, rpcKey, gmtKey, rctKey, gctKey, gtKey, or tsp0Key
0028 process.L1TriggerKeyDummy.gctKey = cms.string(key)
0029 
0030 # Subclass of L1ObjectKeysOnlineProdBase.
0031 process.load("L1TriggerConfig.GctConfigProducers.L1GctTSCObjectKeysOnline_cfi")
0032 process.L1GctTSCObjectKeysOnline.subsystemLabel = cms.string('')
0033 
0034 # Get configuration data from OMDS.  This is the subclass of L1ConfigOnlineProdBase.
0035 process.load("L1TriggerConfig.GctConfigProducers.L1GctJetFinderParamsOnline_cfi")
0036 process.load("L1TriggerConfig.L1ScalesProducers.L1JetEtScaleOnline_cfi")
0037 process.load("L1TriggerConfig.L1ScalesProducers.L1HfRingEtScaleOnline_cfi")
0038 process.load("L1TriggerConfig.L1ScalesProducers.L1HtMissScaleOnline_cfi")
0039 
0040 #process.load("L1TriggerConfig.GctConfigProducers.L1GctChannelMaskOnline_cfi")
0041 #process.L1TriggerKeyDummy.objectKeys = cms.VPSet(cms.PSet(
0042 #    record = cms.string('L1GctChannelMaskRcd'),
0043 #        type = cms.string('L1GctChannelMask'),
0044 #        key = cms.string('Default')
0045 #    ))
0046 
0047 
0048 process.maxEvents = cms.untracked.PSet(
0049     input = cms.untracked.int32(1)
0050 )
0051 process.source = cms.Source("EmptyIOVSource",
0052     timetype = cms.string('runnumber'),
0053     firstValue = cms.uint64(1),
0054     lastValue = cms.uint64(1),
0055     interval = cms.uint64(1)
0056 )
0057 
0058 process.load('L1TriggerConfig/GctConfigProducers.l1GctConfigDump_cfi')
0059 process.getter1 = cms.EDAnalyzer("EventSetupRecordDataGetter",
0060    toGet = cms.VPSet(cms.PSet(
0061    record = cms.string('L1GctChannelMaskRcd'),
0062    data = cms.vstring('L1GctChannelMask')
0063    )),
0064    verbose = cms.untracked.bool(True)
0065 )
0066 
0067 process.p = cms.Path(
0068     process.getter1
0069     +process.l1GctConfigDump
0070 )