39 std::unique_ptr< L1CaloEtScale >
newObject(
77 std::unique_ptr< L1CaloEtScale >
86 "GCT_PHYS_PARAMS.CONFIG_KEY",
93 <<
"Problem with key for L1JetEtScaleRcd : GCT scales key query failed ";
95 else if( scalesKeyResults.
numberRows() != 1 ) {
97 <<
"Problem with key for L1JetEtScaleRcd : " 98 << (scalesKeyResults.
numberRows()) <<
" rows were returned when getting GCT scales key";
108 "SC_CENJET_ET_THRESHOLD_FK",
118 <<
"Problem with key for L1GctJetEtScaleRcd : jet scale key query failed ";
120 else if( jetScaleKeyResults.
numberRows() != 1 ) {
122 <<
"Problem with key for L1GctJetEtScaleRcd : " 123 << (jetScaleKeyResults.
numberRows()) <<
" rows were returned when getting jet Et scale key";
130 std::vector< std::string > queryStrings ;
131 queryStrings.push_back(
"ET_GEV_BIN_LOW_0");
132 queryStrings.push_back(
"ET_GEV_BIN_LOW_1");
133 queryStrings.push_back(
"ET_GEV_BIN_LOW_2");
134 queryStrings.push_back(
"ET_GEV_BIN_LOW_3");
135 queryStrings.push_back(
"ET_GEV_BIN_LOW_4");
136 queryStrings.push_back(
"ET_GEV_BIN_LOW_5");
137 queryStrings.push_back(
"ET_GEV_BIN_LOW_6");
138 queryStrings.push_back(
"ET_GEV_BIN_LOW_7");
139 queryStrings.push_back(
"ET_GEV_BIN_LOW_8");
140 queryStrings.push_back(
"ET_GEV_BIN_LOW_9");
141 queryStrings.push_back(
"ET_GEV_BIN_LOW_10");
142 queryStrings.push_back(
"ET_GEV_BIN_LOW_11");
143 queryStrings.push_back(
"ET_GEV_BIN_LOW_12");
144 queryStrings.push_back(
"ET_GEV_BIN_LOW_13");
145 queryStrings.push_back(
"ET_GEV_BIN_LOW_14");
146 queryStrings.push_back(
"ET_GEV_BIN_LOW_15");
147 queryStrings.push_back(
"ET_GEV_BIN_LOW_16");
148 queryStrings.push_back(
"ET_GEV_BIN_LOW_17");
149 queryStrings.push_back(
"ET_GEV_BIN_LOW_18");
150 queryStrings.push_back(
"ET_GEV_BIN_LOW_19");
151 queryStrings.push_back(
"ET_GEV_BIN_LOW_20");
152 queryStrings.push_back(
"ET_GEV_BIN_LOW_21");
153 queryStrings.push_back(
"ET_GEV_BIN_LOW_22");
154 queryStrings.push_back(
"ET_GEV_BIN_LOW_23");
155 queryStrings.push_back(
"ET_GEV_BIN_LOW_24");
156 queryStrings.push_back(
"ET_GEV_BIN_LOW_25");
157 queryStrings.push_back(
"ET_GEV_BIN_LOW_26");
158 queryStrings.push_back(
"ET_GEV_BIN_LOW_27");
159 queryStrings.push_back(
"ET_GEV_BIN_LOW_28");
160 queryStrings.push_back(
"ET_GEV_BIN_LOW_29");
161 queryStrings.push_back(
"ET_GEV_BIN_LOW_30");
162 queryStrings.push_back(
"ET_GEV_BIN_LOW_31");
163 queryStrings.push_back(
"ET_GEV_BIN_LOW_32");
164 queryStrings.push_back(
"ET_GEV_BIN_LOW_33");
165 queryStrings.push_back(
"ET_GEV_BIN_LOW_34");
166 queryStrings.push_back(
"ET_GEV_BIN_LOW_35");
167 queryStrings.push_back(
"ET_GEV_BIN_LOW_36");
168 queryStrings.push_back(
"ET_GEV_BIN_LOW_37");
169 queryStrings.push_back(
"ET_GEV_BIN_LOW_38");
170 queryStrings.push_back(
"ET_GEV_BIN_LOW_39");
171 queryStrings.push_back(
"ET_GEV_BIN_LOW_40");
172 queryStrings.push_back(
"ET_GEV_BIN_LOW_41");
173 queryStrings.push_back(
"ET_GEV_BIN_LOW_42");
174 queryStrings.push_back(
"ET_GEV_BIN_LOW_43");
175 queryStrings.push_back(
"ET_GEV_BIN_LOW_44");
176 queryStrings.push_back(
"ET_GEV_BIN_LOW_45");
177 queryStrings.push_back(
"ET_GEV_BIN_LOW_46");
178 queryStrings.push_back(
"ET_GEV_BIN_LOW_47");
179 queryStrings.push_back(
"ET_GEV_BIN_LOW_48");
180 queryStrings.push_back(
"ET_GEV_BIN_LOW_49");
181 queryStrings.push_back(
"ET_GEV_BIN_LOW_50");
182 queryStrings.push_back(
"ET_GEV_BIN_LOW_51");
183 queryStrings.push_back(
"ET_GEV_BIN_LOW_52");
184 queryStrings.push_back(
"ET_GEV_BIN_LOW_53");
185 queryStrings.push_back(
"ET_GEV_BIN_LOW_54");
186 queryStrings.push_back(
"ET_GEV_BIN_LOW_55");
187 queryStrings.push_back(
"ET_GEV_BIN_LOW_56");
188 queryStrings.push_back(
"ET_GEV_BIN_LOW_57");
189 queryStrings.push_back(
"ET_GEV_BIN_LOW_58");
190 queryStrings.push_back(
"ET_GEV_BIN_LOW_59");
191 queryStrings.push_back(
"ET_GEV_BIN_LOW_60");
192 queryStrings.push_back(
"ET_GEV_BIN_LOW_61");
193 queryStrings.push_back(
"ET_GEV_BIN_LOW_62");
194 queryStrings.push_back(
"ET_GEV_BIN_LOW_63");
199 "L1T_SCALE_CALO_ET_THRESHOLD",
200 "L1T_SCALE_CALO_ET_THRESHOLD.ID",
209 edm::LogError(
"L1-O2O" ) <<
"Problem with L1JetEtScale key : when reading scale." ;
212 for( std::vector< std::string >::iterator
thresh = queryStrings.begin();
214 float tempScale = 0.0;
216 thresholds.push_back(tempScale);
227 "GCT_PHYS_PARAMS.CONFIG_KEY",
231 edm::LogError(
"L1-O2O" ) <<
"Problem with L1JetEtScale key." ;
238 return std::make_unique<L1CaloEtScale>( rgnEtLsb,
thresholds );
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
L1JetEtScaleOnlineProd(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
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
~L1JetEtScaleOnlineProd() override