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");
98 std::map<std::string, l1t::Parameter> conf = trgSys.
getParameters(
"EMTF-1");
100 std::string core_fwv = conf[
"core_firmware_version"].getValueAsStr();
102 strptime(core_fwv.c_str(),
"%Y-%m-%d %T", &brokenTime);
103 time_t fw_sinceEpoch = timegm(&brokenTime);
105 std::string pclut_v = conf[
"pc_lut_version"].getValueAsStr();
106 strptime(pclut_v.c_str(),
"%Y-%m-%d", &brokenTime);
107 time_t pclut_sinceEpoch = timegm(&brokenTime);
void setConfigured(bool state=true) noexcept
void SetFirmwareVersion(unsigned version)
std::shared_ptr< L1TMuonEndCapParams > newObject(const std::string &objectKey, const L1TMuonEndCapParamsO2ORcd &record) override
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
void SetPrimConvVersion(unsigned version)
L1TMuonEndCapParams * getWriteInstance()
#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]
~L1TMuonEndCapParamsOnlineProd(void) override