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 );
117 std::string hfRingScaleKey ;
119 if( hfRingScaleKeyResults.queryFailed() ) {
121 <<
"Problem with key for L1HfRingEtScaleRcd : HF ring Et scale key query failed ";
123 else if( hfRingScaleKeyResults.numberRows() != 1 ) {
125 <<
"Problem with key for L1HfRingEtScaleRcd : "
126 << (hfRingScaleKeyResults.numberRows()) <<
" rows were returned when getting HF ring Et scale key";
129 hfRingScaleKeyResults.fillVariable( hfRingScaleKey ) ;
133 std::vector< std::string > queryStrings ;
134 queryStrings.push_back(
"E_GEV_BIN_LOW_0");
135 queryStrings.push_back(
"E_GEV_BIN_LOW_1");
136 queryStrings.push_back(
"E_GEV_BIN_LOW_2");
137 queryStrings.push_back(
"E_GEV_BIN_LOW_3");
138 queryStrings.push_back(
"E_GEV_BIN_LOW_4");
139 queryStrings.push_back(
"E_GEV_BIN_LOW_5");
140 queryStrings.push_back(
"E_GEV_BIN_LOW_6");
141 queryStrings.push_back(
"E_GEV_BIN_LOW_7");
146 "L1T_SCALE_HF_ET_SUM",
147 "L1T_SCALE_HF_ET_SUM.ID",
148 hfRingScaleKeyResults
151 std::vector<double> thresholds;
153 if( scaleResults.queryFailed() ) {
154 edm::LogError(
"L1-O2O" ) <<
"Problem with L1HfRingEtScale key : scale query failed." ;
156 else if ( scaleResults.numberRows() != 1 ) {
157 edm::LogError(
"L1-O2O" ) <<
"Problem with L1HfRingEtScale key : scale query failed." ;
160 for( std::vector< std::string >::iterator
thresh = queryStrings.begin();
162 float tempScale = 0.;
163 scaleResults.fillVariable(*
thresh,tempScale);
164 thresholds.push_back(tempScale);
175 "GCT_PHYS_PARAMS.CONFIG_KEY",
178 if( lsbResults.queryFailed() ) {
179 edm::LogError(
"L1-O2O" ) <<
"Problem with L1JetEtScale key." ;
182 lsbResults.fillVariable(
"GCT_RGN_ET_LSB", rgnEtLsb );
186 return boost::shared_ptr< L1CaloEtScale >(
new L1CaloEtScale(0xff, 0x7, rgnEtLsb, thresholds ) );
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
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
virtual boost::shared_ptr< L1CaloEtScale > newObject(const std::string &objectKey)