31 baseRcd.
get( baseSettings ) ;
33 if( objectKey.empty() ){
34 edm::LogError(
"L1-O2O: L1TMuonGlobalParamsOnlineProd" ) <<
"Key is empty";
35 throw std::runtime_error(
"Empty objectKey");
38 std::string tscKey = objectKey.substr(0, objectKey.find(
":") );
39 std::string rsKey = objectKey.substr( objectKey.find(
":")+1, std::string::npos );
41 edm::LogInfo(
"L1-O2O: L1TMuonGlobalParamsOnlineProd" ) <<
"Producing L1TMuonGlobalParams with TSC key =" << tscKey <<
" and RS key = " << rsKey ;
45 std::map<std::string,std::string> rs_payloads, algo_payloads;
47 std::map<std::string,std::string>
keys =
53 algo_key = keys[
"ALGO"];
62 std::map<std::string,std::string> rsKeys =
69 std::map<std::string,std::string> algoKeys =
76 for(
auto &
key : rsKeys)
77 rs_payloads[
key.second ] =
84 for(
auto &
key : algoKeys)
85 algo_payloads[
key.second ] =
91 }
catch ( std::runtime_error &
e ) {
92 edm::LogError(
"L1-O2O: L1TMuonGlobalParamsOnlineProd" ) << e.what();
93 throw std::runtime_error(
"Broken key");
103 for(
auto &conf : rs_payloads){
108 for(
auto &conf : algo_payloads){
123 for(
auto &conf : algo_payloads){
127 for(
auto &conf : rs_payloads){
136 std::shared_ptr< L1TMuonGlobalParams > retval = std::make_shared< L1TMuonGlobalParams >(
cast_to_L1TMuonGlobalParams(m_params_helper) );
const L1TMuonGlobalParams & cast_to_L1TMuonGlobalParams(const L1TMuonGlobalParams_PUBLIC &x)
void setConfigured(bool state=true) noexcept
virtual std::shared_ptr< L1TMuonGlobalParams > newObject(const std::string &objectKey, const L1TMuonGlobalParamsO2ORcd &record) override
l1t::OMDSReader m_omdsReader
void readDOMFromString(const std::string &str, xercesc::DOMDocument *&doc)
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)
void loadFromOnline(l1t::TriggerSystem &trgSys, const std::string &processorId="")
void get(HolderT &iHolder) const
~L1TMuonGlobalParamsOnlineProd(void)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void readRootElement(TriggerSystem &aTriggerSystem, const std::string &sysId="")
L1TMuonGlobalParamsOnlineProd(const edm::ParameterSet &)