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";
118 <<
"Problem with key for L1HfRingEtScaleRcd : HF ring Et scale key query failed ";
120 else if( hfRingScaleKeyResults.
numberRows() != 1 ) {
122 <<
"Problem with key for L1HfRingEtScaleRcd : " 123 << (hfRingScaleKeyResults.
numberRows()) <<
" rows were returned when getting HF ring Et scale key";
130 std::vector< std::string > queryStrings ;
131 queryStrings.push_back(
"E_GEV_BIN_LOW_0");
132 queryStrings.push_back(
"E_GEV_BIN_LOW_1");
133 queryStrings.push_back(
"E_GEV_BIN_LOW_2");
134 queryStrings.push_back(
"E_GEV_BIN_LOW_3");
135 queryStrings.push_back(
"E_GEV_BIN_LOW_4");
136 queryStrings.push_back(
"E_GEV_BIN_LOW_5");
137 queryStrings.push_back(
"E_GEV_BIN_LOW_6");
138 queryStrings.push_back(
"E_GEV_BIN_LOW_7");
143 "L1T_SCALE_HF_ET_SUM",
144 "L1T_SCALE_HF_ET_SUM.ID",
145 hfRingScaleKeyResults
151 edm::LogError(
"L1-O2O" ) <<
"Problem with L1HfRingEtScale key : scale query failed." ;
154 edm::LogError(
"L1-O2O" ) <<
"Problem with L1HfRingEtScale key : scale query failed." ;
157 for( std::vector< std::string >::iterator
thresh = queryStrings.begin();
159 float tempScale = 0.;
161 thresholds.push_back(tempScale);
172 "GCT_PHYS_PARAMS.CONFIG_KEY",
176 edm::LogError(
"L1-O2O" ) <<
"Problem with L1JetEtScale key." ;
183 return std::make_unique<L1CaloEtScale>(0xff, 0x7, rgnEtLsb,
thresholds);
L1HfRingEtScaleOnlineProd(const edm::ParameterSet &)
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
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
~L1HfRingEtScaleOnlineProd() override
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
std::unique_ptr< L1CaloEtScale > newObject(const std::string &objectKey) override