25 std::string tscKey = OMTFKey.substr(0, OMTFKey.find(
':'));
31 std::map<std::string, std::string>
keys =
33 algo_key =
keys[
"ALGO"];
34 infra_key =
keys[
"INFRA"];
36 }
catch (std::runtime_error&
e) {
37 edm::LogError(
"L1-O2O L1TMuonOverlapObjectKeysOnlineProd") <<
"Cannot get OMTF_KEYS ";
40 throw std::runtime_error(
"SummaryForFunctionManager: OMTF | Faulty | Broken key");
43 <<
"forcing L1TMuonOverlapFwVersion key to be = 'OMTF_INFRA_EMPTY' with baseline settings";
44 pL1TriggerKey->
add(
"L1TMuonOverlapFwVersionO2ORcd",
"L1TMuonOverlapFwVersion",
"OMTF_INFRA_EMPTY");
46 <<
"forcing L1TMuonOverlapParams key to be = 'OMTF_ALGO_EMPTY' (known to exist)";
47 pL1TriggerKey->
add(
"L1TMuonOverlapParamsO2ORcd",
"L1TMuonOverlapParams",
"OMTF_ALGO_EMPTY");
52 pL1TriggerKey->
add(
"L1TMuonOverlapFwVersionO2ORcd",
"L1TMuonOverlapFwVersion", infra_key);
54 pL1TriggerKey->
add(
"L1TMuonOverlapParamsO2ORcd",
"L1TMuonOverlapParams", algo_key);
const std::string & subsystemKey(L1Subsystems subsystem) const
T getParameter(std::string const &) const
void fillObjectKeys(L1TriggerKeyExt *pL1TriggerKey) override
~L1TMuonOverlapObjectKeysOnlineProd(void) override=default
void add(const std::string &record, const std::string &type, const std::string &key)
L1TMuonOverlapObjectKeysOnlineProd(const edm::ParameterSet &)
Log< level::Error, false > LogError
static std::map< std::string, std::string > fetch(const std::vector< std::string > &queryColumns, const std::string &table, const std::string &key, l1t::OMDSReader &m_omdsReader)
l1t::OMDSReader m_omdsReader
#define DEFINE_FWK_EVENTSETUP_MODULE(type)