|
static void | prevalidate (ConfigurationDescriptions &) |
|
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
|
using | KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >> |
|
bool | getObjectKey (const L1TMuonGlobalParamsO2ORcd &record, std::string &objectKey) |
|
edm::ESConsumesCollectorT< L1TMuonGlobalParamsO2ORcd > | 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< L1TMuonGlobalParamsO2ORcd, L1TMuonGlobalParams >.
Definition at line 32 of file L1TMuonGlobalParamsOnlineProd.cc.
References mps_setup::append, baseSettings_token, cast_to_L1TMuonGlobalParams(), MillePedeFileConverter_cfg::e, l1t::OnlineDBqueryHelper::fetch(), edm::eventsetup::EventSetupRecordImplementation< T >::get(), submitPVResolutionJobs::key, relativeConstraints::keys, L1TMuonGlobalParamsHelper::loadFromOnline(), L1ConfigOnlineProdBaseExt< L1TMuonGlobalParamsO2ORcd, L1TMuonGlobalParams >::m_omdsReader, convertSQLitetoXML_cfg::output, l1t::XmlConfigParser::readDOMFromString(), l1t::XmlConfigParser::readRootElement(), AlCaHarvesting_cff::record, l1t::TriggerSystem::setConfigured(), AlCaHLTBitMon_QueryRunRegistry::string, and transactionSafe.
37 if (objectKey.empty()) {
38 edm::LogError(
"L1-O2O: L1TMuonGlobalParamsOnlineProd") <<
"Key is empty";
40 throw std::runtime_error(
"SummaryForFunctionManager: uGMT | Faulty | Empty objectKey");
42 edm::LogError(
"L1-O2O: L1TMuonGlobalParams") <<
"returning unmodified prototype of L1TMuonGlobalParams";
43 return std::make_unique<const L1TMuonGlobalParams>(baseSettings);
47 std::string tscKey = objectKey.substr(0, objectKey.find(
':'));
48 std::string rsKey = objectKey.substr(objectKey.find(
':') + 1, std::string::npos);
51 <<
"Producing L1TMuonGlobalParams with TSC key =" << tscKey <<
" and RS key = " << rsKey;
55 std::map<std::string, std::string> rs_payloads, algo_payloads;
57 std::map<std::string, std::string>
keys =
59 algo_key =
keys[
"ALGO"];
64 std::map<std::string, std::string> rsKeys =
67 std::map<std::string, std::string> algoKeys =
70 for (
auto &
key : rsKeys)
71 rs_payloads[
key.second] =
74 for (
auto &
key : algoKeys)
75 algo_payloads[
key.second] =
77 }
catch (std::runtime_error &
e) {
78 edm::LogError(
"L1-O2O: L1TMuonGlobalParamsOnlineProd") <<
e.what();
80 throw std::runtime_error(
"SummaryForFunctionManager: uGMT | Faulty | Broken key");
82 edm::LogError(
"L1-O2O: L1TMuonGlobalParamsOnlineProd") <<
"returning unmodified prototype of L1TMuonGlobalParams";
83 return std::make_unique<const L1TMuonGlobalParams>(baseSettings);
93 for (
auto &conf : rs_payloads) {
98 for (
auto &conf : algo_payloads) {
114 for (
auto &conf : algo_payloads) {
118 for (
auto &conf : rs_payloads) {
123 }
catch (std::runtime_error &
e) {
124 edm::LogError(
"L1-O2O: L1TMuonGlobalParamsOnlineProd") <<
e.what();
126 throw std::runtime_error(
"SummaryForFunctionManager: uGMT | Faulty | Cannot parse XMLs");
128 edm::LogError(
"L1-O2O: L1TMuonGlobalParamsOnlineProd") <<
"returning unmodified prototype of L1TMuonGlobalParams";
129 return std::make_unique<const L1TMuonGlobalParams>(baseSettings);
135 m_params_helper.loadFromOnline(trgSys);
136 }
catch (std::runtime_error &
e) {
137 edm::LogError(
"L1-O2O: L1TMuonGlobalParamsOnlineProd") <<
e.what();
139 throw std::runtime_error(
"SummaryForFunctionManager: uGMT | Faulty | Cannot run helper");
141 edm::LogError(
"L1-O2O: L1TMuonGlobalParamsOnlineProd") <<
"returning unmodified prototype of L1TMuonGlobalParams";
142 return std::make_unique<const L1TMuonGlobalParams>(baseSettings);
149 <<
"SummaryForFunctionManager: uGMT | OK | All looks good";
const L1TMuonGlobalParams & cast_to_L1TMuonGlobalParams(const L1TMuonGlobalParams_PUBLIC &x)
void setConfigured(bool state=true) noexcept
const edm::ESGetToken< L1TMuonGlobalParams, L1TMuonGlobalParamsRcd > baseSettings_token
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)
key
prepare the HTCondor submission files and eventually submit them
Log< level::Info, false > LogInfo
void readRootElement(TriggerSystem &aTriggerSystem, const std::string &sysId="")
const bool transactionSafe