39 std::unique_ptr< L1CaloEtScale >
newObject(
77 std::unique_ptr< L1CaloEtScale >
86 "GCT_PHYS_PARAMS.CONFIG_KEY",
93 <<
"Problem with key for L1HtMissScaleRcd : GCT scales key query failed ";
95 else if( scalesKeyResults.
numberRows() != 1 ) {
97 <<
"Problem with key for L1HtMissScaleRcd : " 98 << (scalesKeyResults.
numberRows()) <<
" rows were returned when getting GCT scales key";
104 edm::LogInfo(
"L1-O2O") <<
"L1 scales key : " << scalesKey << std::endl;
119 <<
"Problem with key for L1HtMissEtScaleRcd : HtMiss scale key query failed ";
121 else if( htmScaleKeyResults.
numberRows() != 1 ) {
123 <<
"Problem with key for L1HtMissScaleRcd : " 124 << (htmScaleKeyResults.
numberRows()) <<
" rows were returned when getting HtMiss scale key";
130 edm::LogInfo(
"L1-O2O") <<
"L1HtMiss scale key : " << htmScaleKey << std::endl;
133 std::vector< std::string > queryStrings ;
134 queryStrings.push_back(
"E_GEV_BIN_LOW_0");
135 queryStrings.push_back(
"E_GEV_BIN_LOW_1");
136 queryStrings.push_back(
"E_GEV_BIN_LOW_2");
137 queryStrings.push_back(
"E_GEV_BIN_LOW_3");
138 queryStrings.push_back(
"E_GEV_BIN_LOW_4");
139 queryStrings.push_back(
"E_GEV_BIN_LOW_5");
140 queryStrings.push_back(
"E_GEV_BIN_LOW_6");
141 queryStrings.push_back(
"E_GEV_BIN_LOW_7");
142 queryStrings.push_back(
"E_GEV_BIN_LOW_8");
143 queryStrings.push_back(
"E_GEV_BIN_LOW_9");
144 queryStrings.push_back(
"E_GEV_BIN_LOW_10");
145 queryStrings.push_back(
"E_GEV_BIN_LOW_11");
146 queryStrings.push_back(
"E_GEV_BIN_LOW_12");
147 queryStrings.push_back(
"E_GEV_BIN_LOW_13");
148 queryStrings.push_back(
"E_GEV_BIN_LOW_14");
149 queryStrings.push_back(
"E_GEV_BIN_LOW_15");
150 queryStrings.push_back(
"E_GEV_BIN_LOW_16");
151 queryStrings.push_back(
"E_GEV_BIN_LOW_17");
152 queryStrings.push_back(
"E_GEV_BIN_LOW_18");
153 queryStrings.push_back(
"E_GEV_BIN_LOW_19");
154 queryStrings.push_back(
"E_GEV_BIN_LOW_20");
155 queryStrings.push_back(
"E_GEV_BIN_LOW_21");
156 queryStrings.push_back(
"E_GEV_BIN_LOW_22");
157 queryStrings.push_back(
"E_GEV_BIN_LOW_23");
158 queryStrings.push_back(
"E_GEV_BIN_LOW_24");
159 queryStrings.push_back(
"E_GEV_BIN_LOW_25");
160 queryStrings.push_back(
"E_GEV_BIN_LOW_26");
161 queryStrings.push_back(
"E_GEV_BIN_LOW_27");
162 queryStrings.push_back(
"E_GEV_BIN_LOW_28");
163 queryStrings.push_back(
"E_GEV_BIN_LOW_29");
164 queryStrings.push_back(
"E_GEV_BIN_LOW_30");
165 queryStrings.push_back(
"E_GEV_BIN_LOW_31");
166 queryStrings.push_back(
"E_GEV_BIN_LOW_32");
167 queryStrings.push_back(
"E_GEV_BIN_LOW_33");
168 queryStrings.push_back(
"E_GEV_BIN_LOW_34");
169 queryStrings.push_back(
"E_GEV_BIN_LOW_35");
170 queryStrings.push_back(
"E_GEV_BIN_LOW_36");
171 queryStrings.push_back(
"E_GEV_BIN_LOW_37");
172 queryStrings.push_back(
"E_GEV_BIN_LOW_38");
173 queryStrings.push_back(
"E_GEV_BIN_LOW_39");
174 queryStrings.push_back(
"E_GEV_BIN_LOW_40");
175 queryStrings.push_back(
"E_GEV_BIN_LOW_41");
176 queryStrings.push_back(
"E_GEV_BIN_LOW_42");
177 queryStrings.push_back(
"E_GEV_BIN_LOW_43");
178 queryStrings.push_back(
"E_GEV_BIN_LOW_44");
179 queryStrings.push_back(
"E_GEV_BIN_LOW_45");
180 queryStrings.push_back(
"E_GEV_BIN_LOW_46");
181 queryStrings.push_back(
"E_GEV_BIN_LOW_47");
182 queryStrings.push_back(
"E_GEV_BIN_LOW_48");
183 queryStrings.push_back(
"E_GEV_BIN_LOW_49");
184 queryStrings.push_back(
"E_GEV_BIN_LOW_50");
185 queryStrings.push_back(
"E_GEV_BIN_LOW_51");
186 queryStrings.push_back(
"E_GEV_BIN_LOW_52");
187 queryStrings.push_back(
"E_GEV_BIN_LOW_53");
188 queryStrings.push_back(
"E_GEV_BIN_LOW_54");
189 queryStrings.push_back(
"E_GEV_BIN_LOW_55");
190 queryStrings.push_back(
"E_GEV_BIN_LOW_56");
191 queryStrings.push_back(
"E_GEV_BIN_LOW_57");
192 queryStrings.push_back(
"E_GEV_BIN_LOW_58");
193 queryStrings.push_back(
"E_GEV_BIN_LOW_59");
194 queryStrings.push_back(
"E_GEV_BIN_LOW_60");
195 queryStrings.push_back(
"E_GEV_BIN_LOW_61");
196 queryStrings.push_back(
"E_GEV_BIN_LOW_62");
197 queryStrings.push_back(
"E_GEV_BIN_LOW_63");
198 queryStrings.push_back(
"E_GEV_BIN_LOW_64");
199 queryStrings.push_back(
"E_GEV_BIN_LOW_65");
200 queryStrings.push_back(
"E_GEV_BIN_LOW_66");
201 queryStrings.push_back(
"E_GEV_BIN_LOW_67");
202 queryStrings.push_back(
"E_GEV_BIN_LOW_68");
203 queryStrings.push_back(
"E_GEV_BIN_LOW_69");
204 queryStrings.push_back(
"E_GEV_BIN_LOW_70");
205 queryStrings.push_back(
"E_GEV_BIN_LOW_71");
206 queryStrings.push_back(
"E_GEV_BIN_LOW_72");
207 queryStrings.push_back(
"E_GEV_BIN_LOW_73");
208 queryStrings.push_back(
"E_GEV_BIN_LOW_74");
209 queryStrings.push_back(
"E_GEV_BIN_LOW_75");
210 queryStrings.push_back(
"E_GEV_BIN_LOW_76");
211 queryStrings.push_back(
"E_GEV_BIN_LOW_77");
212 queryStrings.push_back(
"E_GEV_BIN_LOW_78");
213 queryStrings.push_back(
"E_GEV_BIN_LOW_79");
214 queryStrings.push_back(
"E_GEV_BIN_LOW_80");
215 queryStrings.push_back(
"E_GEV_BIN_LOW_81");
216 queryStrings.push_back(
"E_GEV_BIN_LOW_82");
217 queryStrings.push_back(
"E_GEV_BIN_LOW_83");
218 queryStrings.push_back(
"E_GEV_BIN_LOW_84");
219 queryStrings.push_back(
"E_GEV_BIN_LOW_85");
220 queryStrings.push_back(
"E_GEV_BIN_LOW_86");
221 queryStrings.push_back(
"E_GEV_BIN_LOW_87");
222 queryStrings.push_back(
"E_GEV_BIN_LOW_88");
223 queryStrings.push_back(
"E_GEV_BIN_LOW_89");
224 queryStrings.push_back(
"E_GEV_BIN_LOW_90");
225 queryStrings.push_back(
"E_GEV_BIN_LOW_91");
226 queryStrings.push_back(
"E_GEV_BIN_LOW_92");
227 queryStrings.push_back(
"E_GEV_BIN_LOW_93");
228 queryStrings.push_back(
"E_GEV_BIN_LOW_94");
229 queryStrings.push_back(
"E_GEV_BIN_LOW_95");
230 queryStrings.push_back(
"E_GEV_BIN_LOW_96");
231 queryStrings.push_back(
"E_GEV_BIN_LOW_97");
232 queryStrings.push_back(
"E_GEV_BIN_LOW_98");
233 queryStrings.push_back(
"E_GEV_BIN_LOW_99");
234 queryStrings.push_back(
"E_GEV_BIN_LOW_100");
235 queryStrings.push_back(
"E_GEV_BIN_LOW_101");
236 queryStrings.push_back(
"E_GEV_BIN_LOW_102");
237 queryStrings.push_back(
"E_GEV_BIN_LOW_103");
238 queryStrings.push_back(
"E_GEV_BIN_LOW_104");
239 queryStrings.push_back(
"E_GEV_BIN_LOW_105");
240 queryStrings.push_back(
"E_GEV_BIN_LOW_106");
241 queryStrings.push_back(
"E_GEV_BIN_LOW_107");
242 queryStrings.push_back(
"E_GEV_BIN_LOW_108");
243 queryStrings.push_back(
"E_GEV_BIN_LOW_109");
244 queryStrings.push_back(
"E_GEV_BIN_LOW_110");
245 queryStrings.push_back(
"E_GEV_BIN_LOW_111");
246 queryStrings.push_back(
"E_GEV_BIN_LOW_112");
247 queryStrings.push_back(
"E_GEV_BIN_LOW_113");
248 queryStrings.push_back(
"E_GEV_BIN_LOW_114");
249 queryStrings.push_back(
"E_GEV_BIN_LOW_115");
250 queryStrings.push_back(
"E_GEV_BIN_LOW_116");
251 queryStrings.push_back(
"E_GEV_BIN_LOW_117");
252 queryStrings.push_back(
"E_GEV_BIN_LOW_118");
253 queryStrings.push_back(
"E_GEV_BIN_LOW_119");
254 queryStrings.push_back(
"E_GEV_BIN_LOW_120");
255 queryStrings.push_back(
"E_GEV_BIN_LOW_121");
256 queryStrings.push_back(
"E_GEV_BIN_LOW_122");
257 queryStrings.push_back(
"E_GEV_BIN_LOW_123");
258 queryStrings.push_back(
"E_GEV_BIN_LOW_124");
259 queryStrings.push_back(
"E_GEV_BIN_LOW_125");
260 queryStrings.push_back(
"E_GEV_BIN_LOW_126");
261 queryStrings.push_back(
"E_GEV_BIN_LOW_127");
266 "L1T_SCALE_HTM_ENERGY",
267 "L1T_SCALE_HTM_ENERGY.ID",
278 edm::LogError(
"L1-O2O" ) <<
"Problem with L1HtMissScale key : when reading scale." ;
281 for( std::vector< std::string >::iterator
thresh = queryStrings.begin();
283 float tempScale = 0.;
285 thresholds.push_back(tempScale);
296 "GCT_PHYS_PARAMS.CONFIG_KEY",
300 edm::LogError(
"L1-O2O" ) <<
"Problem with L1HtMissScale key." ;
307 return std::make_unique<L1CaloEtScale>( 0, 0x7f, rgnEtLsb,
thresholds );
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
L1HtMissScaleOnlineProd(const edm::ParameterSet &)
const QueryResults basicQuery(const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="")
l1t::OMDSReader m_omdsReader
std::unique_ptr< L1CaloEtScale > newObject(const std::string &objectKey) override
~L1HtMissScaleOnlineProd() override
#define DEFINE_FWK_EVENTSETUP_MODULE(type)