|
static void | prevalidate (ConfigurationDescriptions &) |
|
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
|
using | KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >> |
|
bool | getObjectKey (const L1TMuonBarrelParamsO2ORcd &record, std::string &objectKey) |
|
edm::ESConsumesCollectorT< L1TMuonBarrelParamsO2ORcd > | 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< L1TMuonBarrelParamsO2ORcd, L1TMuonBarrelParams >.
Definition at line 34 of file L1TMuonBarrelParamsOnlineProd.cc.
References mps_setup::append, baseSettings_token, L1TMuonBarrelParamsHelper::configFromDB(), MillePedeFileConverter_cfg::e, l1t::OnlineDBqueryHelper::fetch(), edm::eventsetup::EventSetupRecordImplementation< T >::get(), relativeConstraints::keys, L1ConfigOnlineProdBaseExt< L1TMuonBarrelParamsO2ORcd, L1TMuonBarrelParams >::m_omdsReader, convertSQLitetoXML_cfg::output, l1t::XmlConfigParser::readDOMFromString(), l1t::XmlConfigParser::readRootElement(), AlCaHarvesting_cff::record, l1t::TriggerSystem::setConfigured(), AlCaHLTBitMon_QueryRunRegistry::string, and transactionSafe.
39 if (objectKey.empty()) {
40 edm::LogError(
"L1-O2O: L1TMuonBarrelParamsOnlineProd") <<
"Key is empty, returning empty L1TMuonBarrelParams";
42 throw std::runtime_error(
"SummaryForFunctionManager: BMTF | Faulty | Empty objectKey");
44 edm::LogError(
"L1-O2O: L1TMuonBarrelParamsOnlineProd") <<
"returning unmodified prototype of L1TMuonBarrelParams";
45 return std::make_unique<const L1TMuonBarrelParams>(baseSettings);
49 std::string tscKey = objectKey.substr(0, objectKey.find(
':'));
50 std::string rsKey = objectKey.substr(objectKey.find(
':') + 1, std::string::npos);
53 <<
"Producing L1TMuonBarrelParams with TSC key = " << tscKey <<
" and RS key = " << rsKey;
57 std::string hw_payload, algo_payload, mp7_payload, amc13_payload;
59 std::map<std::string, std::string>
keys =
61 algo_key =
keys[
"ALGO"];
68 std::map<std::string, std::string> rsKeys =
70 mp7_key = rsKeys[
"MP7"];
71 amc13_key = rsKeys[
"AMC13"];
76 }
catch (std::runtime_error&
e) {
77 edm::LogError(
"L1-O2O: L1TMuonBarrelParamsOnlineProd") <<
e.what();
79 throw std::runtime_error(
std::string(
"SummaryForFunctionManager: BMTF | Faulty | ") +
e.what());
81 edm::LogError(
"L1-O2O: L1TMuonBarrelParamsOnlineProd") <<
"returning unmodified prototype of L1TMuonBarrelParams";
82 return std::make_unique<const L1TMuonBarrelParams>(baseSettings);
128 }
catch (std::runtime_error&
e) {
129 edm::LogError(
"L1-O2O: L1TMuonBarrelParamsOnlineProd") <<
e.what();
131 throw std::runtime_error(
std::string(
"SummaryForFunctionManager: BMTF | Faulty | ") +
e.what());
133 edm::LogError(
"L1-O2O: L1TMuonBarrelParamsOnlineProd") <<
"returning unmodified prototype of L1TMuonBarrelParams";
134 return std::make_unique<const L1TMuonBarrelParams>(baseSettings);
140 m_params_helper.configFromDB(parsedXMLs);
141 }
catch (std::runtime_error&
e) {
142 edm::LogError(
"L1-O2O: L1TMuonBarrelParamsOnlineProd") <<
e.what();
144 throw std::runtime_error(
std::string(
"SummaryForFunctionManager: BMTF | Faulty | ") +
e.what());
146 edm::LogError(
"L1-O2O: L1TMuonBarrelParamsOnlineProd") <<
"returning unmodified prototype of L1TMuonBarrelParams";
147 return std::make_unique<const L1TMuonBarrelParams>(baseSettings);
151 auto retval = std::make_unique<const L1TMuonBarrelParams>(m_params_helper);
154 <<
"SummaryForFunctionManager: BMTF | 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)
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
const edm::ESGetToken< L1TMuonBarrelParams, L1TMuonBarrelParamsRcd > baseSettings_token
void readRootElement(TriggerSystem &aTriggerSystem, const std::string &sysId="")
const bool transactionSafe