40 virtual boost::shared_ptr< L1CaloEtScale >
newObject(
41 const std::string& objectKey ) ;
78 boost::shared_ptr< L1CaloEtScale >
81 using namespace edm::es;
89 "GCT_PHYS_PARAMS.CONFIG_KEY",
92 std::string scalesKey ;
94 if( scalesKeyResults.queryFailed() ) {
96 <<
"Problem with key for L1JetEtScaleRcd : GCT scales key query failed ";
98 else if( scalesKeyResults.numberRows() != 1 ) {
100 <<
"Problem with key for L1JetEtScaleRcd : "
101 << (scalesKeyResults.numberRows()) <<
" rows were returned when getting GCT scales key";
104 scalesKeyResults.fillVariable( scalesKey );
111 "SC_CENJET_ET_THRESHOLD_FK",
117 std::string jetScaleKey ;
119 if( jetScaleKeyResults.queryFailed() ) {
121 <<
"Problem with key for L1GctJetEtScaleRcd : jet scale key query failed ";
123 else if( jetScaleKeyResults.numberRows() != 1 ) {
125 <<
"Problem with key for L1GctJetEtScaleRcd : "
126 << (jetScaleKeyResults.numberRows()) <<
" rows were returned when getting jet Et scale key";
129 jetScaleKeyResults.fillVariable( jetScaleKey ) ;
133 std::vector< std::string > queryStrings ;
134 queryStrings.push_back(
"ET_GEV_BIN_LOW_0");
135 queryStrings.push_back(
"ET_GEV_BIN_LOW_1");
136 queryStrings.push_back(
"ET_GEV_BIN_LOW_2");
137 queryStrings.push_back(
"ET_GEV_BIN_LOW_3");
138 queryStrings.push_back(
"ET_GEV_BIN_LOW_4");
139 queryStrings.push_back(
"ET_GEV_BIN_LOW_5");
140 queryStrings.push_back(
"ET_GEV_BIN_LOW_6");
141 queryStrings.push_back(
"ET_GEV_BIN_LOW_7");
142 queryStrings.push_back(
"ET_GEV_BIN_LOW_8");
143 queryStrings.push_back(
"ET_GEV_BIN_LOW_9");
144 queryStrings.push_back(
"ET_GEV_BIN_LOW_10");
145 queryStrings.push_back(
"ET_GEV_BIN_LOW_11");
146 queryStrings.push_back(
"ET_GEV_BIN_LOW_12");
147 queryStrings.push_back(
"ET_GEV_BIN_LOW_13");
148 queryStrings.push_back(
"ET_GEV_BIN_LOW_14");
149 queryStrings.push_back(
"ET_GEV_BIN_LOW_15");
150 queryStrings.push_back(
"ET_GEV_BIN_LOW_16");
151 queryStrings.push_back(
"ET_GEV_BIN_LOW_17");
152 queryStrings.push_back(
"ET_GEV_BIN_LOW_18");
153 queryStrings.push_back(
"ET_GEV_BIN_LOW_19");
154 queryStrings.push_back(
"ET_GEV_BIN_LOW_20");
155 queryStrings.push_back(
"ET_GEV_BIN_LOW_21");
156 queryStrings.push_back(
"ET_GEV_BIN_LOW_22");
157 queryStrings.push_back(
"ET_GEV_BIN_LOW_23");
158 queryStrings.push_back(
"ET_GEV_BIN_LOW_24");
159 queryStrings.push_back(
"ET_GEV_BIN_LOW_25");
160 queryStrings.push_back(
"ET_GEV_BIN_LOW_26");
161 queryStrings.push_back(
"ET_GEV_BIN_LOW_27");
162 queryStrings.push_back(
"ET_GEV_BIN_LOW_28");
163 queryStrings.push_back(
"ET_GEV_BIN_LOW_29");
164 queryStrings.push_back(
"ET_GEV_BIN_LOW_30");
165 queryStrings.push_back(
"ET_GEV_BIN_LOW_31");
166 queryStrings.push_back(
"ET_GEV_BIN_LOW_32");
167 queryStrings.push_back(
"ET_GEV_BIN_LOW_33");
168 queryStrings.push_back(
"ET_GEV_BIN_LOW_34");
169 queryStrings.push_back(
"ET_GEV_BIN_LOW_35");
170 queryStrings.push_back(
"ET_GEV_BIN_LOW_36");
171 queryStrings.push_back(
"ET_GEV_BIN_LOW_37");
172 queryStrings.push_back(
"ET_GEV_BIN_LOW_38");
173 queryStrings.push_back(
"ET_GEV_BIN_LOW_39");
174 queryStrings.push_back(
"ET_GEV_BIN_LOW_40");
175 queryStrings.push_back(
"ET_GEV_BIN_LOW_41");
176 queryStrings.push_back(
"ET_GEV_BIN_LOW_42");
177 queryStrings.push_back(
"ET_GEV_BIN_LOW_43");
178 queryStrings.push_back(
"ET_GEV_BIN_LOW_44");
179 queryStrings.push_back(
"ET_GEV_BIN_LOW_45");
180 queryStrings.push_back(
"ET_GEV_BIN_LOW_46");
181 queryStrings.push_back(
"ET_GEV_BIN_LOW_47");
182 queryStrings.push_back(
"ET_GEV_BIN_LOW_48");
183 queryStrings.push_back(
"ET_GEV_BIN_LOW_49");
184 queryStrings.push_back(
"ET_GEV_BIN_LOW_50");
185 queryStrings.push_back(
"ET_GEV_BIN_LOW_51");
186 queryStrings.push_back(
"ET_GEV_BIN_LOW_52");
187 queryStrings.push_back(
"ET_GEV_BIN_LOW_53");
188 queryStrings.push_back(
"ET_GEV_BIN_LOW_54");
189 queryStrings.push_back(
"ET_GEV_BIN_LOW_55");
190 queryStrings.push_back(
"ET_GEV_BIN_LOW_56");
191 queryStrings.push_back(
"ET_GEV_BIN_LOW_57");
192 queryStrings.push_back(
"ET_GEV_BIN_LOW_58");
193 queryStrings.push_back(
"ET_GEV_BIN_LOW_59");
194 queryStrings.push_back(
"ET_GEV_BIN_LOW_60");
195 queryStrings.push_back(
"ET_GEV_BIN_LOW_61");
196 queryStrings.push_back(
"ET_GEV_BIN_LOW_62");
197 queryStrings.push_back(
"ET_GEV_BIN_LOW_63");
202 "L1T_SCALE_CALO_ET_THRESHOLD",
203 "L1T_SCALE_CALO_ET_THRESHOLD.ID",
207 std::vector<double> thresholds;
209 if( scaleResults.queryFailed() ||
210 scaleResults.numberRows() != 1 )
212 edm::LogError(
"L1-O2O" ) <<
"Problem with L1JetEtScale key : when reading scale." ;
215 for( std::vector< std::string >::iterator
thresh = queryStrings.begin();
217 float tempScale = 0.0;
218 scaleResults.fillVariable(*
thresh,tempScale);
219 thresholds.push_back(tempScale);
230 "GCT_PHYS_PARAMS.CONFIG_KEY",
233 if( lsbResults.queryFailed() ) {
234 edm::LogError(
"L1-O2O" ) <<
"Problem with L1JetEtScale key." ;
237 lsbResults.fillVariable(
"GCT_RGN_ET_LSB", rgnEtLsb );
241 return boost::shared_ptr< L1CaloEtScale >(
new L1CaloEtScale( rgnEtLsb, thresholds ) );
const QueryResults singleAttribute(const T &data) const
L1JetEtScaleOnlineProd(const edm::ParameterSet &)
~L1JetEtScaleOnlineProd()
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="") const
l1t::OMDSReader m_omdsReader
virtual boost::shared_ptr< L1CaloEtScale > newObject(const std::string &objectKey)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)