69 std::vector<std::string> queryStrings;
70 queryStrings.push_back(
"ET_GEV_BIN_LOW_0");
71 queryStrings.push_back(
"ET_GEV_BIN_LOW_1");
72 queryStrings.push_back(
"ET_GEV_BIN_LOW_2");
73 queryStrings.push_back(
"ET_GEV_BIN_LOW_3");
74 queryStrings.push_back(
"ET_GEV_BIN_LOW_4");
75 queryStrings.push_back(
"ET_GEV_BIN_LOW_5");
76 queryStrings.push_back(
"ET_GEV_BIN_LOW_6");
77 queryStrings.push_back(
"ET_GEV_BIN_LOW_7");
78 queryStrings.push_back(
"ET_GEV_BIN_LOW_8");
79 queryStrings.push_back(
"ET_GEV_BIN_LOW_9");
80 queryStrings.push_back(
"ET_GEV_BIN_LOW_10");
81 queryStrings.push_back(
"ET_GEV_BIN_LOW_11");
82 queryStrings.push_back(
"ET_GEV_BIN_LOW_12");
83 queryStrings.push_back(
"ET_GEV_BIN_LOW_13");
84 queryStrings.push_back(
"ET_GEV_BIN_LOW_14");
85 queryStrings.push_back(
"ET_GEV_BIN_LOW_15");
86 queryStrings.push_back(
"ET_GEV_BIN_LOW_16");
87 queryStrings.push_back(
"ET_GEV_BIN_LOW_17");
88 queryStrings.push_back(
"ET_GEV_BIN_LOW_18");
89 queryStrings.push_back(
"ET_GEV_BIN_LOW_19");
90 queryStrings.push_back(
"ET_GEV_BIN_LOW_20");
91 queryStrings.push_back(
"ET_GEV_BIN_LOW_21");
92 queryStrings.push_back(
"ET_GEV_BIN_LOW_22");
93 queryStrings.push_back(
"ET_GEV_BIN_LOW_23");
94 queryStrings.push_back(
"ET_GEV_BIN_LOW_24");
95 queryStrings.push_back(
"ET_GEV_BIN_LOW_25");
96 queryStrings.push_back(
"ET_GEV_BIN_LOW_26");
97 queryStrings.push_back(
"ET_GEV_BIN_LOW_27");
98 queryStrings.push_back(
"ET_GEV_BIN_LOW_28");
99 queryStrings.push_back(
"ET_GEV_BIN_LOW_29");
100 queryStrings.push_back(
"ET_GEV_BIN_LOW_30");
101 queryStrings.push_back(
"ET_GEV_BIN_LOW_31");
102 queryStrings.push_back(
"ET_GEV_BIN_LOW_32");
103 queryStrings.push_back(
"ET_GEV_BIN_LOW_33");
104 queryStrings.push_back(
"ET_GEV_BIN_LOW_34");
105 queryStrings.push_back(
"ET_GEV_BIN_LOW_35");
106 queryStrings.push_back(
"ET_GEV_BIN_LOW_36");
107 queryStrings.push_back(
"ET_GEV_BIN_LOW_37");
108 queryStrings.push_back(
"ET_GEV_BIN_LOW_38");
109 queryStrings.push_back(
"ET_GEV_BIN_LOW_39");
110 queryStrings.push_back(
"ET_GEV_BIN_LOW_40");
111 queryStrings.push_back(
"ET_GEV_BIN_LOW_41");
112 queryStrings.push_back(
"ET_GEV_BIN_LOW_42");
113 queryStrings.push_back(
"ET_GEV_BIN_LOW_43");
114 queryStrings.push_back(
"ET_GEV_BIN_LOW_44");
115 queryStrings.push_back(
"ET_GEV_BIN_LOW_45");
116 queryStrings.push_back(
"ET_GEV_BIN_LOW_46");
117 queryStrings.push_back(
"ET_GEV_BIN_LOW_47");
118 queryStrings.push_back(
"ET_GEV_BIN_LOW_48");
119 queryStrings.push_back(
"ET_GEV_BIN_LOW_49");
120 queryStrings.push_back(
"ET_GEV_BIN_LOW_50");
121 queryStrings.push_back(
"ET_GEV_BIN_LOW_51");
122 queryStrings.push_back(
"ET_GEV_BIN_LOW_52");
123 queryStrings.push_back(
"ET_GEV_BIN_LOW_53");
124 queryStrings.push_back(
"ET_GEV_BIN_LOW_54");
125 queryStrings.push_back(
"ET_GEV_BIN_LOW_55");
126 queryStrings.push_back(
"ET_GEV_BIN_LOW_56");
127 queryStrings.push_back(
"ET_GEV_BIN_LOW_57");
128 queryStrings.push_back(
"ET_GEV_BIN_LOW_58");
129 queryStrings.push_back(
"ET_GEV_BIN_LOW_59");
130 queryStrings.push_back(
"ET_GEV_BIN_LOW_60");
131 queryStrings.push_back(
"ET_GEV_BIN_LOW_61");
132 queryStrings.push_back(
"ET_GEV_BIN_LOW_62");
133 queryStrings.push_back(
"ET_GEV_BIN_LOW_63");
140 "L1T_SCALE_CALO_ET_THRESHOLD",
141 "L1T_SCALE_CALO_ET_THRESHOLD.ID",
143 "L1T_SCALE_CALO_ET_THRESHOLD_ID",
"CMS_RCT",
"L1CALOEMETTHRESH",
"L1CALOEMETTHRESH.NAME", scaleKeyResults));
148 return std::unique_ptr<L1CaloEtScale>();
150 std::vector<double> m_thresholds;
152 for (std::vector<std::string>::iterator
thresh = queryStrings.begin();
thresh != queryStrings.end(); ++
thresh) {
153 float tempScale = 0.0;
155 m_thresholds.push_back(tempScale);
159 m_omdsReader.
basicQuery(
"INPUTLSB",
"CMS_RCT",
"L1CALOEMETTHRESH",
"L1CALOEMETTHRESH.NAME", scaleKeyResults);
163 return std::unique_ptr<L1CaloEtScale>();
175 return std::make_unique<L1CaloEtScale>(m_lsb, m_thresholds);
const QueryResults singleAttribute(const T &data) const
~L1EmEtScaleOnlineProd() override
Log< level::Error, false > LogError
std::unique_ptr< L1CaloEtScale > newObject(const std::string &objectKey) override
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
L1EmEtScaleOnlineProd(const edm::ParameterSet &)