39 virtual std::shared_ptr< L1CaloEtScale >
newObject(
77 std::shared_ptr< L1CaloEtScale >
88 "GCT_PHYS_PARAMS.CONFIG_KEY",
95 <<
"Problem with key for L1JetEtScaleRcd : GCT scales key query failed ";
97 else if( scalesKeyResults.
numberRows() != 1 ) {
99 <<
"Problem with key for L1JetEtScaleRcd : " 100 << (scalesKeyResults.
numberRows()) <<
" rows were returned when getting GCT scales key";
120 <<
"Problem with key for L1HfRingEtScaleRcd : HF ring Et scale key query failed ";
122 else if( hfRingScaleKeyResults.
numberRows() != 1 ) {
124 <<
"Problem with key for L1HfRingEtScaleRcd : " 125 << (hfRingScaleKeyResults.
numberRows()) <<
" rows were returned when getting HF ring Et scale key";
132 std::vector< std::string > queryStrings ;
133 queryStrings.push_back(
"E_GEV_BIN_LOW_0");
134 queryStrings.push_back(
"E_GEV_BIN_LOW_1");
135 queryStrings.push_back(
"E_GEV_BIN_LOW_2");
136 queryStrings.push_back(
"E_GEV_BIN_LOW_3");
137 queryStrings.push_back(
"E_GEV_BIN_LOW_4");
138 queryStrings.push_back(
"E_GEV_BIN_LOW_5");
139 queryStrings.push_back(
"E_GEV_BIN_LOW_6");
140 queryStrings.push_back(
"E_GEV_BIN_LOW_7");
145 "L1T_SCALE_HF_ET_SUM",
146 "L1T_SCALE_HF_ET_SUM.ID",
147 hfRingScaleKeyResults
150 std::vector<double> thresholds;
153 edm::LogError(
"L1-O2O" ) <<
"Problem with L1HfRingEtScale key : scale query failed." ;
156 edm::LogError(
"L1-O2O" ) <<
"Problem with L1HfRingEtScale key : scale query failed." ;
159 for( std::vector< std::string >::iterator
thresh = queryStrings.begin();
161 float tempScale = 0.;
163 thresholds.push_back(tempScale);
174 "GCT_PHYS_PARAMS.CONFIG_KEY",
178 edm::LogError(
"L1-O2O" ) <<
"Problem with L1JetEtScale key." ;
185 return std::make_shared<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
~L1HfRingEtScaleOnlineProd()
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
virtual std::shared_ptr< L1CaloEtScale > newObject(const std::string &objectKey) override
#define DEFINE_FWK_EVENTSETUP_MODULE(type)