32 baseRcd.
get( baseSettings ) ;
35 if (objectKey.empty()) {
36 edm::LogError(
"L1-O2O: L1TMuonEndcapParamsOnlineProd" ) <<
"Key is empty, returning empty L1TMuonEndcapParams";
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 );
43 edm::LogInfo(
"L1-O2O: L1TMuonEndcapParamsOnlineProd" ) <<
"Producing L1TMuonEndcapParams with TSC key = " << tscKey <<
" and RS key = " << rsKey ;
48 std::map<std::string,std::string>
keys =
56 algo_key = keys[
"ALGO"];
70 }
catch ( std::runtime_error &
e ) {
71 edm::LogError(
"L1-O2O: L1TMuonEndcapParamsOnlineProd" ) << e.what();
72 throw std::runtime_error(
"Broken key");
86 std::map<std::string, l1t::Parameter> conf = trgSys.
getParameters(
"EMTF-1");
88 std::string core_fwv = conf[
"core_firmware_version"].getValueAsStr();
90 strptime(core_fwv.c_str(),
"%Y-%m-%d %T", &brokenTime);
91 time_t sinceEpoch = timegm(&brokenTime);
void setConfigured(bool state=true) noexcept
void SetFirmwareVersion(unsigned version)
l1t::OMDSReader m_omdsReader
L1TMuonEndcapParamsOnlineProd(const edm::ParameterSet &)
void readDOMFromString(const std::string &str, xercesc::DOMDocument *&doc)
void SetPtAssignVersion(unsigned version)
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< L1TMuonEndCapParams > newObject(const std::string &objectKey, const L1TMuonEndcapParamsO2ORcd &record) override
L1TMuonEndCapParams * getWriteInstance()
~L1TMuonEndcapParamsOnlineProd(void)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
const std::map< std::string, Parameter > & getParameters(const char *processor) const
void readRootElement(TriggerSystem &aTriggerSystem, const std::string &sysId="")
char data[epos_bytes_allocation]