4 import FWCore.ParameterSet.Config
as cms
5 from CondTools.L1Trigger.L1CondEnum_cfi
import L1CondEnum
7 if len( tagBaseVec ) == 0:
8 from CondTools.L1Trigger.L1UniformTags_cfi
import initL1UniformTags
10 tagBaseVec = initL1UniformTags.tagBaseVec
12 initL1Subsystems.params = cms.PSet(
13 recordInfo = cms.VPSet(
15 record = cms.string(
'L1JetEtScaleRcd'),
16 tag = cms.string(
'L1JetEtScale_' + tagBaseVec[ L1CondEnum.L1JetEtScale ]),
17 type = cms.string(
'L1CaloEtScale'),
18 key = cms.string(objectKey)
21 record = cms.string(
'L1EmEtScaleRcd'),
22 tag = cms.string(
'L1EmEtScale_' + tagBaseVec[ L1CondEnum.L1EmEtScale ]),
23 type = cms.string(
'L1CaloEtScale'),
24 key = cms.string(objectKey)
27 record = cms.string(
'L1MuTriggerScalesRcd'),
28 tag = cms.string(
'L1MuTriggerScales_' + tagBaseVec[ L1CondEnum.L1MuTriggerScales ]),
29 type = cms.string(
'L1MuTriggerScales'),
30 key = cms.string(objectKey)
33 record = cms.string(
'L1MuTriggerPtScaleRcd'),
34 tag = cms.string(
'L1MuTriggerPtScale_' + tagBaseVec[ L1CondEnum.L1MuTriggerPtScale ]),
35 type = cms.string(
'L1MuTriggerPtScale'),
36 key = cms.string(objectKey)
39 record = cms.string(
'L1MuGMTScalesRcd'),
40 tag = cms.string(
'L1MuGMTScales_' + tagBaseVec[ L1CondEnum.L1MuGMTScales ]),
41 type = cms.string(
'L1MuGMTScales'),
42 key = cms.string(objectKey)
45 record = cms.string(
'L1MuCSCTFConfigurationRcd'),
46 tag = cms.string(
'L1MuCSCTFConfiguration_' + tagBaseVec[ L1CondEnum.L1MuCSCTFConfiguration ]),
47 type = cms.string(
'L1MuCSCTFConfiguration'),
48 key = cms.string(objectKey)
51 record = cms.string(
'L1MuCSCTFAlignmentRcd'),
52 tag = cms.string(
'L1MuCSCTFAlignment_' + tagBaseVec[ L1CondEnum.L1MuCSCTFAlignment ]),
53 type = cms.string(
'L1MuCSCTFAlignment'),
54 key = cms.string(objectKey)
57 record = cms.string(
'L1MuCSCPtLutRcd'),
58 tag = cms.string(
'L1MuCSCPtLut_' + tagBaseVec[ L1CondEnum.L1MuCSCPtLut ]),
59 type = cms.string(
'L1MuCSCPtLut'),
60 key = cms.string(objectKey)
63 record = cms.string(
'L1MuDTEtaPatternLutRcd'),
64 tag = cms.string(
'L1MuDTEtaPatternLut_' + tagBaseVec[ L1CondEnum.L1MuDTEtaPatternLut ]),
65 type = cms.string(
'L1MuDTEtaPatternLut'),
66 key = cms.string(objectKey)
69 record = cms.string(
'L1MuDTExtLutRcd'),
70 tag = cms.string(
'L1MuDTExtLut_' + tagBaseVec[ L1CondEnum.L1MuDTExtLut ]),
71 type = cms.string(
'L1MuDTExtLut'),
72 key = cms.string(objectKey)
75 record = cms.string(
'L1MuDTPhiLutRcd'),
76 tag = cms.string(
'L1MuDTPhiLut_' + tagBaseVec[ L1CondEnum.L1MuDTPhiLut ]),
77 type = cms.string(
'L1MuDTPhiLut'),
78 key = cms.string(objectKey)
81 record = cms.string(
'L1MuDTPtaLutRcd'),
82 tag = cms.string(
'L1MuDTPtaLut_' + tagBaseVec[ L1CondEnum.L1MuDTPtaLut ]),
83 type = cms.string(
'L1MuDTPtaLut'),
84 key = cms.string(objectKey)
87 record = cms.string(
'L1MuDTQualPatternLutRcd'),
88 tag = cms.string(
'L1MuDTQualPatternLut_' + tagBaseVec[ L1CondEnum.L1MuDTQualPatternLut ]),
89 type = cms.string(
'L1MuDTQualPatternLut'),
90 key = cms.string(objectKey)
93 record = cms.string(
'L1MuDTTFParametersRcd'),
94 tag = cms.string(
'L1MuDTTFParameters_' + tagBaseVec[ L1CondEnum.L1MuDTTFParameters ]),
95 type = cms.string(
'L1MuDTTFParameters'),
96 key = cms.string(objectKey)
99 record = cms.string(
'L1RPCConfigRcd'),
100 tag = cms.string(
'L1RPCConfig_' + tagBaseVec[ L1CondEnum.L1RPCConfig ]),
101 type = cms.string(
'L1RPCConfig'),
102 key = cms.string(objectKey)
105 record = cms.string(
'L1MuGMTParametersRcd'),
106 tag = cms.string(
'L1MuGMTParameters_' + tagBaseVec[ L1CondEnum.L1MuGMTParameters ]),
107 type = cms.string(
'L1MuGMTParameters'),
108 key = cms.string(objectKey)
111 record = cms.string(
'L1MuGMTChannelMaskRcd'),
112 tag = cms.string(
'L1MuGMTChannelMask_' + tagBaseVec[ L1CondEnum.L1MuGMTChannelMask ]),
113 type = cms.string(
'L1MuGMTChannelMask'),
114 key = cms.string(objectKey)
117 record = cms.string(
'L1RCTParametersRcd'),
118 tag = cms.string(
'L1RCTParameters_' + tagBaseVec[ L1CondEnum.L1RCTParameters ]),
119 type = cms.string(
'L1RCTParameters'),
120 key = cms.string(objectKey)
123 record = cms.string(
'L1RCTChannelMaskRcd'),
124 tag = cms.string(
'L1RCTChannelMask_' + tagBaseVec[ L1CondEnum.L1RCTChannelMask ]),
125 type = cms.string(
'L1RCTChannelMask'),
126 key = cms.string(objectKey)
129 record = cms.string(
'L1CaloEcalScaleRcd'),
130 tag = cms.string(
'L1CaloEcalScale_' + tagBaseVec[ L1CondEnum.L1CaloEcalScale ]),
131 type = cms.string(
'L1CaloEcalScale'),
132 key = cms.string(objectKey)
135 record = cms.string(
'L1CaloHcalScaleRcd'),
136 tag = cms.string(
'L1CaloHcalScale_' + tagBaseVec[ L1CondEnum.L1CaloHcalScale ]),
137 type = cms.string(
'L1CaloHcalScale'),
138 key = cms.string(objectKey)
141 record = cms.string(
'L1GctChannelMaskRcd'),
142 tag = cms.string(
'L1GctChannelMask_' + tagBaseVec[ L1CondEnum.L1GctChannelMask ]),
143 type = cms.string(
'L1GctChannelMask'),
144 key = cms.string(objectKey)
147 record = cms.string(
'L1GctHfLutSetupRcd'),
148 tag = cms.string(
'L1GctHfLutSetup_' + tagBaseVec[ L1CondEnum.L1GctHfLutSetup ]),
149 type = cms.string(
'L1GctHfLutSetup'),
150 key = cms.string(objectKey)
153 record = cms.string(
'L1GctJetFinderParamsRcd'),
154 tag = cms.string(
'L1GctJetFinderParams_' + tagBaseVec[ L1CondEnum.L1GctJetFinderParams ]),
155 type = cms.string(
'L1GctJetFinderParams'),
156 key = cms.string(objectKey)
159 record = cms.string(
'L1GtBoardMapsRcd'),
160 tag = cms.string(
'L1GtBoardMaps_' + tagBaseVec[ L1CondEnum.L1GtBoardMaps ]),
161 type = cms.string(
'L1GtBoardMaps'),
162 key = cms.string(objectKey)
165 record = cms.string(
'L1GtParametersRcd'),
166 tag = cms.string(
'L1GtParameters_' + tagBaseVec[ L1CondEnum.L1GtParameters ]),
167 type = cms.string(
'L1GtParameters'),
168 key = cms.string(objectKey)
171 record = cms.string(
'L1GtPrescaleFactorsAlgoTrigRcd'),
172 tag = cms.string(
'L1GtPrescaleFactorsAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsAlgoTrig ]),
173 type = cms.string(
'L1GtPrescaleFactors'),
174 key = cms.string(objectKey)
177 record = cms.string(
'L1GtPrescaleFactorsTechTrigRcd'),
178 tag = cms.string(
'L1GtPrescaleFactorsTechTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsTechTrig ]),
179 type = cms.string(
'L1GtPrescaleFactors'),
180 key = cms.string(objectKey)
183 record = cms.string(
'L1GtStableParametersRcd'),
184 tag = cms.string(
'L1GtStableParameters_' + tagBaseVec[ L1CondEnum.L1GtStableParameters ]),
185 type = cms.string(
'L1GtStableParameters'),
186 key = cms.string(objectKey)
189 record = cms.string(
'L1GtTriggerMaskAlgoTrigRcd'),
190 tag = cms.string(
'L1GtTriggerMaskAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskAlgoTrig ]),
191 type = cms.string(
'L1GtTriggerMask'),
192 key = cms.string(objectKey)
195 record = cms.string(
'L1GtTriggerMaskTechTrigRcd'),
196 tag = cms.string(
'L1GtTriggerMaskTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskTechTrig ]),
197 type = cms.string(
'L1GtTriggerMask'),
198 key = cms.string(objectKey)
201 record = cms.string(
'L1GtTriggerMaskVetoAlgoTrigRcd'),
202 tag = cms.string(
'L1GtTriggerMaskVetoAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskVetoAlgoTrig ]),
203 type = cms.string(
'L1GtTriggerMask'),
204 key = cms.string(objectKey)
207 record = cms.string(
'L1GtTriggerMaskVetoTechTrigRcd'),
208 tag = cms.string(
'L1GtTriggerMaskVetoTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskVetoTechTrig ]),
209 type = cms.string(
'L1GtTriggerMask'),
210 key = cms.string(objectKey)
213 record = cms.string(
'L1GtTriggerMenuRcd'),
214 tag = cms.string(
'L1GtTriggerMenu_' + tagBaseVec[ L1CondEnum.L1GtTriggerMenu ]),
215 type = cms.string(
'L1GtTriggerMenu'),
216 key = cms.string(objectKey)
219 record = cms.string(
'L1GtPsbSetupRcd'),
220 tag = cms.string(
'L1GtPsbSetup_' + tagBaseVec[ L1CondEnum.L1GtPsbSetup ]),
221 type = cms.string(
'L1GtPsbSetup'),
222 key = cms.string(objectKey)
225 record = cms.string(
'L1CaloGeometryRecord'),
226 tag = cms.string(
'L1CaloGeometry_' + tagBaseVec[ L1CondEnum.L1CaloGeometry ]),
227 type = cms.string(
'L1CaloGeometry'),
228 key = cms.string(objectKey)
def initL1Subsystems(tagBaseVec=[], objectKey='dummy')