File indexing completed on 2024-11-27 03:17:57
0001
0002
0003 import FWCore.ParameterSet.Config as cms
0004
0005 process = cms.Process("L1ConfigWritePayloadDummy")
0006
0007
0008
0009 useKey = 'ObjectKey'
0010
0011
0012
0013
0014
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
0027
0028 process.load("CondTools.L1Trigger.L1TriggerKeyListDummy_cff")
0029
0030
0031 process.load("L1TriggerConfig.L1GtConfigProducers.l1GtTriggerMenuOnline_cfi")
0032
0033 if (useKey == 'ObjectKey') :
0034 process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0035 process.L1TriggerKeyDummy.objectKeys = cms.VPSet(cms.PSet(
0036 record = cms.string('L1GtTriggerMenuRcd'),
0037 type = cms.string('L1GtTriggerMenu'),
0038 key = cms.string('L1Menu_Commissioning2009_v7/L1T_Scales_20080926_startup/Imp0/0x100f')
0039 ))
0040
0041 elif (useKey == 'SubsystemKey') :
0042 process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0043 process.L1TriggerKeyDummy.objectKeys = cms.VPSet()
0044 process.L1TriggerKeyDummy.label = cms.string('SubsystemKeysOnly')
0045
0046
0047 process.L1TriggerKeyDummy.gtKey = cms.string('gt_2009_test_1')
0048
0049
0050 process.load("L1TriggerConfig.L1GtConfigProducers.l1GtTscObjectKeysOnline_cfi")
0051 process.l1GtTscObjectKeysOnline.systemLabel = cms.string('')
0052
0053 elif (useKey == 'TscKey') :
0054
0055 process.load("CondTools.L1Trigger.L1SubsystemKeysOnline_cfi")
0056
0057 process.L1SubsystemKeysOnline.tscKey = \
0058 cms.string( 'TSC_000990_090723_CRAFT_GTgt200911_GMTsynctf02ro3rpc2_GCT_RCT_DTTF_CSCTF_HCAL_DT_RPC_MI')
0059
0060
0061 process.load("L1TriggerConfig.L1GtConfigProducers.l1GtTscObjectKeysOnline_cfi")
0062 process.l1GtTscObjectKeysOnline.systemLabel = cms.string('')
0063
0064 else :
0065 print('Error: no such key type ', useKey)
0066 sys.exit()
0067
0068
0069
0070 process.getter = cms.EDAnalyzer("EventSetupRecordDataGetter",
0071 toGet = cms.VPSet(cms.PSet(
0072 record = cms.string('L1GtTriggerMenuRcd'),
0073 data = cms.vstring('L1GtTriggerMenu')
0074 )),
0075 verbose = cms.untracked.bool(True)
0076 )
0077
0078 process.p = cms.Path(process.getter)
0079
0080
0081 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0082 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0083 process.MessageLogger.cout.threshold = cms.untracked.string('DEBUG')
0084 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0085