File indexing completed on 2024-04-06 12:03:13
0001 def initL1RSSubsystems( tagBaseVec = [],
0002 L1MuDTTFMasksRcdKey = 'dummy',
0003 L1MuGMTChannelMaskRcdKey = 'dummy',
0004 L1RCTChannelMaskRcdKey = 'dummy',
0005 L1RCTNoisyChannelMaskRcdKey = 'dummy',
0006 L1GctChannelMaskRcdKey = 'dummy',
0007 L1GtPrescaleFactorsAlgoTrigRcdKey = 'dummy',
0008 L1GtPrescaleFactorsTechTrigRcdKey = 'dummy',
0009 L1GtTriggerMaskAlgoTrigRcdKey = 'dummy',
0010 L1GtTriggerMaskTechTrigRcdKey = 'dummy',
0011 L1GtTriggerMaskVetoTechTrigRcdKey = 'dummy',
0012 includeL1RCTNoisyChannelMask = True):
0013
0014 import FWCore.ParameterSet.Config as cms
0015 from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum
0016
0017 if includeL1RCTNoisyChannelMask == True:
0018 initL1RSSubsystems.params = cms.PSet(
0019 recordInfo = cms.VPSet(
0020 cms.PSet(
0021 record = cms.string('L1MuDTTFMasksRcd'),
0022 tag = cms.string('L1MuDTTFMasks_' + tagBaseVec[ L1CondEnum.L1MuDTTFMasks ]),
0023 type = cms.string('L1MuDTTFMasks'),
0024 key = cms.string(L1MuDTTFMasksRcdKey)
0025 ),
0026 cms.PSet(
0027 record = cms.string('L1MuGMTChannelMaskRcd'),
0028 tag = cms.string('L1MuGMTChannelMask_' + tagBaseVec[ L1CondEnum.L1MuGMTChannelMask ]),
0029 type = cms.string('L1MuGMTChannelMask'),
0030 key = cms.string(L1MuGMTChannelMaskRcdKey)
0031 ),
0032 cms.PSet(
0033 record = cms.string('L1RCTChannelMaskRcd'),
0034 tag = cms.string('L1RCTChannelMask_' + tagBaseVec[ L1CondEnum.L1RCTChannelMask ]),
0035 type = cms.string('L1RCTChannelMask'),
0036 key = cms.string(L1RCTChannelMaskRcdKey)
0037 ),
0038 cms.PSet(
0039 record = cms.string('L1RCTNoisyChannelMaskRcd'),
0040 tag = cms.string('L1RCTNoisyChannelMask_' + tagBaseVec[ L1CondEnum.L1RCTNoisyChannelMask ]),
0041 type = cms.string('L1RCTNoisyChannelMask'),
0042 key = cms.string(L1RCTNoisyChannelMaskRcdKey)
0043 ),
0044 cms.PSet(
0045 record = cms.string('L1GctChannelMaskRcd'),
0046 tag = cms.string('L1GctChannelMask_' + tagBaseVec[ L1CondEnum.L1GctChannelMask ]),
0047 type = cms.string('L1GctChannelMask'),
0048 key = cms.string(L1GctChannelMaskRcdKey)
0049 ),
0050 cms.PSet(
0051 record = cms.string('L1GtPrescaleFactorsAlgoTrigRcd'),
0052 tag = cms.string('L1GtPrescaleFactorsAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsAlgoTrig ]),
0053 type = cms.string('L1GtPrescaleFactors'),
0054 key = cms.string(L1GtPrescaleFactorsAlgoTrigRcdKey)
0055 ),
0056 cms.PSet(
0057 record = cms.string('L1GtPrescaleFactorsTechTrigRcd'),
0058 tag = cms.string('L1GtPrescaleFactorsTechTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsTechTrig ]),
0059 type = cms.string('L1GtPrescaleFactors'),
0060 key = cms.string(L1GtPrescaleFactorsTechTrigRcdKey)
0061 ),
0062 cms.PSet(
0063 record = cms.string('L1GtTriggerMaskAlgoTrigRcd'),
0064 tag = cms.string('L1GtTriggerMaskAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskAlgoTrig ]),
0065 type = cms.string('L1GtTriggerMask'),
0066 key = cms.string(L1GtTriggerMaskAlgoTrigRcdKey)
0067 ),
0068 cms.PSet(
0069 record = cms.string('L1GtTriggerMaskTechTrigRcd'),
0070 tag = cms.string('L1GtTriggerMaskTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskTechTrig ]),
0071 type = cms.string('L1GtTriggerMask'),
0072 key = cms.string(L1GtTriggerMaskTechTrigRcdKey)
0073 ),
0074 cms.PSet(
0075 record = cms.string('L1GtTriggerMaskVetoTechTrigRcd'),
0076 tag = cms.string('L1GtTriggerMaskVetoTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskVetoTechTrig ]),
0077 type = cms.string('L1GtTriggerMask'),
0078 key = cms.string(L1GtTriggerMaskVetoTechTrigRcdKey)
0079 ))
0080 )
0081 else:
0082 initL1RSSubsystems.params = cms.PSet(
0083 recordInfo = cms.VPSet(
0084 cms.PSet(
0085 record = cms.string('L1MuDTTFMasksRcd'),
0086 tag = cms.string('L1MuDTTFMasks_' + tagBaseVec[ L1CondEnum.L1MuDTTFMasks ]),
0087 type = cms.string('L1MuDTTFMasks'),
0088 key = cms.string(L1MuDTTFMasksRcdKey)
0089 ),
0090 cms.PSet(
0091 record = cms.string('L1MuGMTChannelMaskRcd'),
0092 tag = cms.string('L1MuGMTChannelMask_' + tagBaseVec[ L1CondEnum.L1MuGMTChannelMask ]),
0093 type = cms.string('L1MuGMTChannelMask'),
0094 key = cms.string(L1MuGMTChannelMaskRcdKey)
0095 ),
0096 cms.PSet(
0097 record = cms.string('L1RCTChannelMaskRcd'),
0098 tag = cms.string('L1RCTChannelMask_' + tagBaseVec[ L1CondEnum.L1RCTChannelMask ]),
0099 type = cms.string('L1RCTChannelMask'),
0100 key = cms.string(L1RCTChannelMaskRcdKey)
0101 ),
0102 cms.PSet(
0103 record = cms.string('L1GctChannelMaskRcd'),
0104 tag = cms.string('L1GctChannelMask_' + tagBaseVec[ L1CondEnum.L1GctChannelMask ]),
0105 type = cms.string('L1GctChannelMask'),
0106 key = cms.string(L1GctChannelMaskRcdKey)
0107 ),
0108 cms.PSet(
0109 record = cms.string('L1GtPrescaleFactorsAlgoTrigRcd'),
0110 tag = cms.string('L1GtPrescaleFactorsAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsAlgoTrig ]),
0111 type = cms.string('L1GtPrescaleFactors'),
0112 key = cms.string(L1GtPrescaleFactorsAlgoTrigRcdKey)
0113 ),
0114 cms.PSet(
0115 record = cms.string('L1GtPrescaleFactorsTechTrigRcd'),
0116 tag = cms.string('L1GtPrescaleFactorsTechTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsTechTrig ]),
0117 type = cms.string('L1GtPrescaleFactors'),
0118 key = cms.string(L1GtPrescaleFactorsTechTrigRcdKey)
0119 ),
0120 cms.PSet(
0121 record = cms.string('L1GtTriggerMaskAlgoTrigRcd'),
0122 tag = cms.string('L1GtTriggerMaskAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskAlgoTrig ]),
0123 type = cms.string('L1GtTriggerMask'),
0124 key = cms.string(L1GtTriggerMaskAlgoTrigRcdKey)
0125 ),
0126 cms.PSet(
0127 record = cms.string('L1GtTriggerMaskTechTrigRcd'),
0128 tag = cms.string('L1GtTriggerMaskTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskTechTrig ]),
0129 type = cms.string('L1GtTriggerMask'),
0130 key = cms.string(L1GtTriggerMaskTechTrigRcdKey)
0131 ),
0132 cms.PSet(
0133 record = cms.string('L1GtTriggerMaskVetoTechTrigRcd'),
0134 tag = cms.string('L1GtTriggerMaskVetoTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskVetoTechTrig ]),
0135 type = cms.string('L1GtTriggerMask'),
0136 key = cms.string(L1GtTriggerMaskVetoTechTrigRcdKey)
0137 ))
0138 )