CMS 3D CMS Logo

L1RSSubsystemParams_cfi.py
Go to the documentation of this file.
1 def initL1RSSubsystems( tagBaseVec = [],
2  L1MuDTTFMasksRcdKey = 'dummy',
3  L1MuGMTChannelMaskRcdKey = 'dummy',
4  L1RCTChannelMaskRcdKey = 'dummy',
5  L1RCTNoisyChannelMaskRcdKey = 'dummy',
6  L1GctChannelMaskRcdKey = 'dummy',
7  L1GtPrescaleFactorsAlgoTrigRcdKey = 'dummy',
8  L1GtPrescaleFactorsTechTrigRcdKey = 'dummy',
9  L1GtTriggerMaskAlgoTrigRcdKey = 'dummy',
10  L1GtTriggerMaskTechTrigRcdKey = 'dummy',
11  L1GtTriggerMaskVetoTechTrigRcdKey = 'dummy',
12  includeL1RCTNoisyChannelMask = True):
13 
14  import FWCore.ParameterSet.Config as cms
15  from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum
16 
17  if includeL1RCTNoisyChannelMask == True:
18  initL1RSSubsystems.params = cms.PSet(
19  recordInfo = cms.VPSet(
20  cms.PSet(
21  record = cms.string('L1MuDTTFMasksRcd'),
22  tag = cms.string('L1MuDTTFMasks_' + tagBaseVec[ L1CondEnum.L1MuDTTFMasks ]),
23  type = cms.string('L1MuDTTFMasks'),
24  key = cms.string(L1MuDTTFMasksRcdKey)
25  ),
26  cms.PSet(
27  record = cms.string('L1MuGMTChannelMaskRcd'),
28  tag = cms.string('L1MuGMTChannelMask_' + tagBaseVec[ L1CondEnum.L1MuGMTChannelMask ]),
29  type = cms.string('L1MuGMTChannelMask'),
30  key = cms.string(L1MuGMTChannelMaskRcdKey)
31  ),
32  cms.PSet(
33  record = cms.string('L1RCTChannelMaskRcd'),
34  tag = cms.string('L1RCTChannelMask_' + tagBaseVec[ L1CondEnum.L1RCTChannelMask ]),
35  type = cms.string('L1RCTChannelMask'),
36  key = cms.string(L1RCTChannelMaskRcdKey)
37  ),
38  cms.PSet(
39  record = cms.string('L1RCTNoisyChannelMaskRcd'),
40  tag = cms.string('L1RCTNoisyChannelMask_' + tagBaseVec[ L1CondEnum.L1RCTNoisyChannelMask ]),
41  type = cms.string('L1RCTNoisyChannelMask'),
42  key = cms.string(L1RCTNoisyChannelMaskRcdKey)
43  ),
44  cms.PSet(
45  record = cms.string('L1GctChannelMaskRcd'),
46  tag = cms.string('L1GctChannelMask_' + tagBaseVec[ L1CondEnum.L1GctChannelMask ]),
47  type = cms.string('L1GctChannelMask'),
48  key = cms.string(L1GctChannelMaskRcdKey)
49  ),
50  cms.PSet(
51  record = cms.string('L1GtPrescaleFactorsAlgoTrigRcd'),
52  tag = cms.string('L1GtPrescaleFactorsAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsAlgoTrig ]),
53  type = cms.string('L1GtPrescaleFactors'),
54  key = cms.string(L1GtPrescaleFactorsAlgoTrigRcdKey)
55  ),
56  cms.PSet(
57  record = cms.string('L1GtPrescaleFactorsTechTrigRcd'),
58  tag = cms.string('L1GtPrescaleFactorsTechTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsTechTrig ]),
59  type = cms.string('L1GtPrescaleFactors'),
60  key = cms.string(L1GtPrescaleFactorsTechTrigRcdKey)
61  ),
62  cms.PSet(
63  record = cms.string('L1GtTriggerMaskAlgoTrigRcd'),
64  tag = cms.string('L1GtTriggerMaskAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskAlgoTrig ]),
65  type = cms.string('L1GtTriggerMask'),
66  key = cms.string(L1GtTriggerMaskAlgoTrigRcdKey)
67  ),
68  cms.PSet(
69  record = cms.string('L1GtTriggerMaskTechTrigRcd'),
70  tag = cms.string('L1GtTriggerMaskTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskTechTrig ]),
71  type = cms.string('L1GtTriggerMask'),
72  key = cms.string(L1GtTriggerMaskTechTrigRcdKey)
73  ),
74  cms.PSet(
75  record = cms.string('L1GtTriggerMaskVetoTechTrigRcd'),
76  tag = cms.string('L1GtTriggerMaskVetoTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskVetoTechTrig ]),
77  type = cms.string('L1GtTriggerMask'),
78  key = cms.string(L1GtTriggerMaskVetoTechTrigRcdKey)
79  ))
80  )
81  else:
82  initL1RSSubsystems.params = cms.PSet(
83  recordInfo = cms.VPSet(
84  cms.PSet(
85  record = cms.string('L1MuDTTFMasksRcd'),
86  tag = cms.string('L1MuDTTFMasks_' + tagBaseVec[ L1CondEnum.L1MuDTTFMasks ]),
87  type = cms.string('L1MuDTTFMasks'),
88  key = cms.string(L1MuDTTFMasksRcdKey)
89  ),
90  cms.PSet(
91  record = cms.string('L1MuGMTChannelMaskRcd'),
92  tag = cms.string('L1MuGMTChannelMask_' + tagBaseVec[ L1CondEnum.L1MuGMTChannelMask ]),
93  type = cms.string('L1MuGMTChannelMask'),
94  key = cms.string(L1MuGMTChannelMaskRcdKey)
95  ),
96  cms.PSet(
97  record = cms.string('L1RCTChannelMaskRcd'),
98  tag = cms.string('L1RCTChannelMask_' + tagBaseVec[ L1CondEnum.L1RCTChannelMask ]),
99  type = cms.string('L1RCTChannelMask'),
100  key = cms.string(L1RCTChannelMaskRcdKey)
101  ),
102  cms.PSet(
103  record = cms.string('L1GctChannelMaskRcd'),
104  tag = cms.string('L1GctChannelMask_' + tagBaseVec[ L1CondEnum.L1GctChannelMask ]),
105  type = cms.string('L1GctChannelMask'),
106  key = cms.string(L1GctChannelMaskRcdKey)
107  ),
108  cms.PSet(
109  record = cms.string('L1GtPrescaleFactorsAlgoTrigRcd'),
110  tag = cms.string('L1GtPrescaleFactorsAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsAlgoTrig ]),
111  type = cms.string('L1GtPrescaleFactors'),
112  key = cms.string(L1GtPrescaleFactorsAlgoTrigRcdKey)
113  ),
114  cms.PSet(
115  record = cms.string('L1GtPrescaleFactorsTechTrigRcd'),
116  tag = cms.string('L1GtPrescaleFactorsTechTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsTechTrig ]),
117  type = cms.string('L1GtPrescaleFactors'),
118  key = cms.string(L1GtPrescaleFactorsTechTrigRcdKey)
119  ),
120  cms.PSet(
121  record = cms.string('L1GtTriggerMaskAlgoTrigRcd'),
122  tag = cms.string('L1GtTriggerMaskAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskAlgoTrig ]),
123  type = cms.string('L1GtTriggerMask'),
124  key = cms.string(L1GtTriggerMaskAlgoTrigRcdKey)
125  ),
126  cms.PSet(
127  record = cms.string('L1GtTriggerMaskTechTrigRcd'),
128  tag = cms.string('L1GtTriggerMaskTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskTechTrig ]),
129  type = cms.string('L1GtTriggerMask'),
130  key = cms.string(L1GtTriggerMaskTechTrigRcdKey)
131  ),
132  cms.PSet(
133  record = cms.string('L1GtTriggerMaskVetoTechTrigRcd'),
134  tag = cms.string('L1GtTriggerMaskVetoTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskVetoTechTrig ]),
135  type = cms.string('L1GtTriggerMask'),
136  key = cms.string(L1GtTriggerMaskVetoTechTrigRcdKey)
137  ))
138  )
def initL1RSSubsystems(tagBaseVec=[], L1MuDTTFMasksRcdKey='dummy', L1MuGMTChannelMaskRcdKey='dummy', L1RCTChannelMaskRcdKey='dummy', L1RCTNoisyChannelMaskRcdKey='dummy', L1GctChannelMaskRcdKey='dummy', L1GtPrescaleFactorsAlgoTrigRcdKey='dummy', L1GtPrescaleFactorsTechTrigRcdKey='dummy', L1GtTriggerMaskAlgoTrigRcdKey='dummy', L1GtTriggerMaskTechTrigRcdKey='dummy', L1GtTriggerMaskVetoTechTrigRcdKey='dummy', includeL1RCTNoisyChannelMask=True)