13 #include "xercesc/util/PlatformUtils.hpp" 32 baseRcd.
get( baseSettings ) ;
35 if (objectKey.empty()) {
36 edm::LogError(
"L1-O2O: L1TMuonBarrelParamsOnlineProd" ) <<
"Key is empty, returning empty L1TMuonBarrelParams";
37 throw std::runtime_error(
"Empty objectKey");
40 std::string tscKey = objectKey.substr(0, objectKey.find(
":") );
41 std::string rsKey = objectKey.substr( objectKey.find(
":")+1, std::string::npos );
44 edm::LogInfo(
"L1-O2O: L1TMuonBarrelParamsOnlineProd" ) <<
"Producing L1TMuonBarrelParams with TSC key = " << tscKey <<
" and RS key = " << rsKey ;
48 std::string hw_payload, algo_payload, mp7_payload, amc13_payload;
50 std::map<std::string,std::string>
keys =
56 algo_key = keys[
"ALGO"];
73 std::map<std::string,std::string> rsKeys =
79 mp7_key = rsKeys[
"MP7"];
80 amc13_key = rsKeys[
"AMC13"];
95 }
catch ( std::runtime_error &
e ) {
96 edm::LogError(
"L1-O2O: L1TMuonBarrelParamsOnlineProd" ) << e.what();
97 throw std::runtime_error(
"Broken key");
145 std::shared_ptr< L1TMuonBarrelParams > retval = std::make_shared< L1TMuonBarrelParams>( m_params_helper );
void setConfigured(bool state=true) noexcept
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 get(HolderT &iHolder) const
virtual std::shared_ptr< L1TMuonBarrelParams > newObject(const std::string &objectKey, const L1TMuonBarrelParamsO2ORcd &record) override
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
~L1TMuonBarrelParamsOnlineProd(void)
void readRootElement(TriggerSystem &aTriggerSystem, const std::string &sysId="")
void configFromDB(l1t::TriggerSystem &trgSys)
L1TMuonBarrelParamsOnlineProd(const edm::ParameterSet &)