39 virtual boost::shared_ptr< L1CaloEtScale >
newObject(
77 boost::shared_ptr< L1CaloEtScale >
80 using namespace edm::es;
88 "GCT_PHYS_PARAMS.CONFIG_KEY",
93 if( scalesKeyResults.queryFailed() ) {
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";
103 scalesKeyResults.fillVariable( scalesKey );
118 if( hfRingScaleKeyResults.queryFailed() ) {
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";
128 hfRingScaleKeyResults.fillVariable( hfRingScaleKey ) ;
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
152 if( scaleResults.queryFailed() ) {
153 edm::LogError(
"L1-O2O" ) <<
"Problem with L1HfRingEtScale key : scale query failed." ;
155 else if ( scaleResults.numberRows() != 1 ) {
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.;
162 scaleResults.fillVariable(*
thresh,tempScale);
174 "GCT_PHYS_PARAMS.CONFIG_KEY",
177 if( lsbResults.queryFailed() ) {
178 edm::LogError(
"L1-O2O" ) <<
"Problem with L1JetEtScale key." ;
181 lsbResults.fillVariable(
"GCT_RGN_ET_LSB", rgnEtLsb );
L1HfRingEtScaleOnlineProd(const edm::ParameterSet &)
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="") const
l1t::OMDSReader m_omdsReader
virtual boost::shared_ptr< L1CaloEtScale > newObject(const std::string &objectKey) override
#define DEFINE_FWK_EVENTSETUP_MODULE(type)