71 "GCT_PHYS_PARAMS.CONFIG_KEY",
77 edm::LogError(
"L1-O2O") <<
"Problem with key for L1JetEtScaleRcd : GCT scales key query failed ";
78 }
else if (scalesKeyResults.
numberRows() != 1) {
80 <<
" rows were returned when getting GCT scales key";
92 edm::LogError(
"L1-O2O") <<
"Problem with key for L1HfRingEtScaleRcd : HF ring Et scale key query failed ";
93 }
else if (hfRingScaleKeyResults.
numberRows() != 1) {
95 <<
" rows were returned when getting HF ring Et scale key";
101 std::vector<std::string> queryStrings;
102 queryStrings.push_back(
"E_GEV_BIN_LOW_0");
103 queryStrings.push_back(
"E_GEV_BIN_LOW_1");
104 queryStrings.push_back(
"E_GEV_BIN_LOW_2");
105 queryStrings.push_back(
"E_GEV_BIN_LOW_3");
106 queryStrings.push_back(
"E_GEV_BIN_LOW_4");
107 queryStrings.push_back(
"E_GEV_BIN_LOW_5");
108 queryStrings.push_back(
"E_GEV_BIN_LOW_6");
109 queryStrings.push_back(
"E_GEV_BIN_LOW_7");
112 queryStrings,
"CMS_GT",
"L1T_SCALE_HF_ET_SUM",
"L1T_SCALE_HF_ET_SUM.ID", hfRingScaleKeyResults);
117 edm::LogError(
"L1-O2O") <<
"Problem with L1HfRingEtScale key : scale query failed.";
119 edm::LogError(
"L1-O2O") <<
"Problem with L1HfRingEtScale key : scale query failed.";
121 for (std::vector<std::string>::iterator
thresh = queryStrings.begin();
thresh != queryStrings.end(); ++
thresh) {
122 float tempScale = 0.;
129 double rgnEtLsb = 0.;
134 "GCT_PHYS_PARAMS.CONFIG_KEY",
144 return std::make_unique<L1CaloEtScale>(0xff, 0x7, rgnEtLsb,
thresholds);
L1HfRingEtScaleOnlineProd(const edm::ParameterSet &)
const QueryResults singleAttribute(const T &data) const
Log< level::Error, false > LogError
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="")
bool fillVariable(const std::string &columnName, T &outputVariable) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
l1t::OMDSReader m_omdsReader
~L1HfRingEtScaleOnlineProd() override
std::unique_ptr< L1CaloEtScale > newObject(const std::string &objectKey) override