|
static void | prevalidate (ConfigurationDescriptions &) |
|
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
|
using | KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >> |
|
bool | getObjectKey (const L1TMuonEndCapParamsO2ORcd &record, std::string &objectKey) |
|
edm::ESConsumesCollectorT< L1TMuonEndCapParamsO2ORcd > | wrappedSetWhatProduced (const edm::ParameterSet &) |
|
ESConsumesInfo * | consumesInfoPushBackNew () |
|
unsigned int | consumesInfoSize () const |
|
template<typename CallbackT , typename TList , typename TRecord > |
void | registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel) |
|
template<typename CallbackT , typename TRecord > |
void | registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &) |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const es::Label &iLabel={}) |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const char *iLabel) |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const std::string &iLabel) |
|
template<typename T , typename TDecorator > |
auto | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={}) |
|
template<typename T , typename TReturn , typename TRecord > |
auto | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={}) |
|
template<typename T , typename TReturn , typename TRecord , typename TDecorator > |
auto | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={}) |
|
template<typename TFunc > |
auto | setWhatProduced (TFunc &&func, const es::Label &iLabel={}) |
|
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator > |
ESConsumesCollectorT< TRecord > | setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={}) |
|
void | usesResources (std::vector< std::string > const &) |
|
template<class TFactory > |
void | registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
|
virtual void | registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string()) |
|
KeyedResolversVector | registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override |
|
template<class T > |
void | usingRecord () |
|
void | usingRecordWithKey (const EventSetupRecordKey &key) |
|
bool | m_copyFromCondDB |
|
cond::persistency::Session | m_dbSession |
|
bool | m_forceGeneration |
|
l1t::OMDSReader | m_omdsReader |
|
Implements L1ConfigOnlineProdBaseExt< L1TMuonEndCapParamsO2ORcd, L1TMuonEndCapParams >.
Definition at line 33 of file L1TMuonEndCapParamsOnlineProd.cc.
References mps_setup::append, baseSettings_token, MillePedeFileConverter_cfg::e, l1t::OnlineDBqueryHelper::fetch(), edm::eventsetup::EventSetupRecordImplementation< T >::get(), l1t::TriggerSystem::getParameters(), relativeConstraints::keys, L1ConfigOnlineProdBaseExt< L1TMuonEndCapParamsO2ORcd, L1TMuonEndCapParams >::m_omdsReader, convertSQLitetoXML_cfg::output, l1t::XmlConfigParser::readDOMFromString(), l1t::XmlConfigParser::readRootElement(), AlCaHarvesting_cff::record, l1t::TriggerSystem::setConfigured(), AlCaHLTBitMon_QueryRunRegistry::string, and transactionSafe.
38 if (objectKey.empty()) {
39 edm::LogError(
"L1-O2O: L1TMuonEndCapParamsOnlineProd") <<
"Key is empty";
41 throw std::runtime_error(
"SummaryForFunctionManager: EMTF | Faulty | Empty objectKey");
43 edm::LogError(
"L1-O2O: L1TMuonEndCapParamsOnlineProd") <<
"returning unmodified prototype of L1TMuonEndCapParams";
44 return std::make_unique<const L1TMuonEndCapParams>(baseSettings);
48 std::string tscKey = objectKey.substr(0, objectKey.find(
':'));
49 std::string rsKey = objectKey.substr(objectKey.find(
':') + 1, std::string::npos);
52 <<
"Producing L1TMuonEndCapParams with TSC key = " << tscKey <<
" and RS key = " << rsKey;
57 std::map<std::string, std::string>
keys =
61 algo_key =
keys[
"ALGO"];
67 }
catch (std::runtime_error&
e) {
68 edm::LogError(
"L1-O2O: L1TMuonEndCapParamsOnlineProd") <<
e.what();
70 throw std::runtime_error(
"SummaryForFunctionManager: EMTF | Faulty | Broken key");
72 edm::LogError(
"L1-O2O: L1TMuonEndCapParamsOnlineProd") <<
"returning unmodified prototype of L1TMuonEndCapParams";
73 return std::make_unique<const L1TMuonEndCapParams>(baseSettings);
100 }
catch (std::runtime_error&
e) {
101 edm::LogError(
"L1-O2O: L1TMuonEndCapParamsOnlineProd") <<
e.what();
103 throw std::runtime_error(
"SummaryForFunctionManager: EMTF | Faulty | Cannot parse XMLs");
105 edm::LogError(
"L1-O2O: L1TMuonEndCapParamsOnlineProd") <<
"returning unmodified prototype of L1TMuonEndCapParams";
106 return std::make_unique<const L1TMuonEndCapParams>(baseSettings);
111 std::map<std::string, l1t::Parameter> conf = trgSys.
getParameters(
"EMTFp1");
114 std::string core_fwv = conf[
"core_firmware_version"].getValueAsStr();
116 strptime(core_fwv.c_str(),
"%Y-%m-%d %T", &brokenTime);
117 time_t fw_sinceEpoch = timegm(&brokenTime);
123 auto retval = std::make_unique<L1TMuonEndCapParams>();
125 retval->firmwareVersion_ = fw_sinceEpoch;
126 retval->PtAssignVersion_ = conf[
"pt_lut_version"].getValue<
unsigned int>();
127 retval->PhiMatchWindowSt1_ = 1;
130 <<
"SummaryForFunctionManager: EMTF | OK | All looks good";
void setConfigured(bool state=true) noexcept
Log< level::Error, false > LogError
l1t::OMDSReader m_omdsReader
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
void readDOMFromString(const std::string &str, xercesc::DOMDocument *&doc)
const std::map< std::string, Parameter > & getParameters(const char *processor) const
const bool transactionSafe
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)
Log< level::Info, false > LogInfo
void readRootElement(TriggerSystem &aTriggerSystem, const std::string &sysId="")
const edm::ESGetToken< L1TMuonEndCapParams, L1TMuonEndCapParamsRcd > baseSettings_token