69 if (!rctKey.empty()) {
70 std::string paremKey, scaleKey, ecalScaleKey, hcalScaleKey;
85 "PAREM_CONF.PAREM_KEY",
93 edm::LogError(
"L1-O2O") <<
"Problem with rct_conf.ecal_conf.";
98 ecalScaleKey =
"NULL";
101 if (ecalKey ==
"NULL")
102 ecalScaleKey =
"NULL";
103 else if (ecalKey ==
"IDENTITY")
104 ecalScaleKey =
"IDENTITY";
108 "ECAL_LUT_CONFIG_ID",
"CMS_RCT",
"ECAL_SCALE_KEY",
"ECAL_SCALE_KEY.ECAL_TAG", ecalKeyResults);
113 edm::LogError(
"L1-O2O") <<
"bad results from lut_config_id.";
116 int ecalScaleTemp = -1;
120 std::stringstream
ss;
122 ecalScaleKey =
ss.str();
131 edm::LogError(
"L1-O2O") <<
"Problem with rct_conf.hcal_conf.";
136 hcalScaleKey =
"NULL";
141 pL1TriggerKey->add(
"L1RCTParametersRcd",
"L1RCTParameters", paremKey);
142 pL1TriggerKey->add(
"L1EmEtScaleRcd",
"L1CaloEtScale", scaleKey);
143 pL1TriggerKey->add(
"L1CaloEcalScaleRcd",
"L1CaloEcalScale", ecalScaleKey);
144 pL1TriggerKey->add(
"L1CaloHcalScaleRcd",
"L1CaloHcalScale", hcalScaleKey);
const QueryResults singleAttribute(const T &data) const
std::unique_ptr< L1TriggerKey >::pointer FillType
l1t::OMDSReader m_omdsReader
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)
~RCTObjectKeysOnlineProd() override
RCTObjectKeysOnlineProd(const edm::ParameterSet &)
void fillObjectKeys(FillType pL1TriggerKey) override