|
static void | prevalidate (ConfigurationDescriptions &) |
|
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
|
using | KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >> |
|
bool | getObjectKey (const L1TMuonOverlapFwVersionO2ORcd &record, std::string &objectKey) |
|
edm::ESConsumesCollectorT< L1TMuonOverlapFwVersionO2ORcd > | 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< L1TMuonOverlapFwVersionO2ORcd, L1TMuonOverlapFwVersion >.
Definition at line 55 of file L1TMuonOverlapFwVersionOnlineProd.cc.
References l1t::TriggerSystem::addProcessor(), mps_setup::append, baseSettings_token, MillePedeFileConverter_cfg::e, l1t::OnlineDBqueryHelper::fetch(), edm::eventsetup::EventSetupRecordImplementation< T >::get(), l1t::TriggerSystem::getParameters(), L1ConfigOnlineProdBaseExt< L1TMuonOverlapFwVersionO2ORcd, L1TMuonOverlapFwVersion >::m_omdsReader, L1TriggerKeyDummy_cfi::objectKey, convertSQLitetoXML_cfg::output, jetsAK4_Puppi_cff::payload, l1t::XmlConfigParser::readDOMFromString(), l1t::XmlConfigParser::readRootElement(), Hcal_FrontierConditions_cff::record, removeAll(), replaceAll(), l1t::TriggerSystem::setConfigured(), AlCaHLTBitMon_QueryRunRegistry::string, fakeOmtfFwVersion_cff::synthDate, and transactionSafe.
62 <<
"Key is empty, returning empty L1TMuonOverlapFwVersion";
64 throw std::runtime_error(
"SummaryForFunctionManager: OMTF | Faulty | Empty objectKey");
67 <<
"returning unmodified prototype of L1TMuonOverlapFwVersion";
68 return std::make_unique<const L1TMuonOverlapFwVersion>(baseSettings);
72 edm::LogInfo(
"L1-O2O: L1TMuonOverlapFwVersionOnlineProd")
73 <<
"Producing L1TMuonOverlapFwVersion for key = " <<
objectKey;
81 }
catch (std::runtime_error&
e) {
82 edm::LogError(
"L1-O2O: L1TMuonOverlapFwVersionOnlineProd") <<
e.what();
84 throw std::runtime_error(
std::string(
"SummaryForFunctionManager: OMTF | Faulty | ") +
e.what());
87 <<
"returning unmodified prototype of L1TMuonOverlapFwVersion";
88 return std::make_unique<const L1TMuonOverlapFwVersion>(baseSettings);
104 hw_fake =
"<system id=\"OMTF\"> </system>";
106 parsedXMLs.
addProcessor(
"processors",
"processors",
"all_crates",
"all_slots");
118 }
catch (std::runtime_error&
e) {
119 edm::LogError(
"L1-O2O: L1TMuonOverlapFwVersionOnlineProd") <<
e.what();
121 throw std::runtime_error(
std::string(
"SummaryForFunctionManager: OMTF | Faulty at parsing XML | ") +
e.what());
124 <<
"returning unmodified prototype of L1TMuonOverlapFwVersion";
125 return std::make_unique<const L1TMuonOverlapFwVersion>(baseSettings);
129 std::map<std::string, l1t::Parameter> conf = parsedXMLs.
getParameters(
"processors");
130 algoV_string = conf[
"algorithmVer"].getValueAsStr();
131 layersV_string = conf[
"layersVer"].getValueAsStr();
132 patternsV_string = conf[
"patternsVer"].getValueAsStr();
133 synthDate = conf[
"synthDate"].getValueAsStr();
135 unsigned algoV, layersV, patternsV;
136 std::stringstream ssalgoV, sslayersV, sspatternsV;
137 ssalgoV << std::hex << algoV_string.c_str();
139 sslayersV << std::hex << layersV_string.c_str();
140 sslayersV >> layersV;
141 sspatternsV << std::hex << patternsV_string.c_str();
142 sspatternsV >> patternsV;
143 auto retval = std::make_unique<const L1TMuonOverlapFwVersion>(algoV, layersV, patternsV,
synthDate);
145 edm::LogInfo(
"L1-O2O: L1TMuonOverlapFwVersionOnlineProd")
146 <<
"SummaryForFunctionManager: OMTF | OK | All looks good";
void setConfigured(bool state=true) noexcept
Log< level::Error, false > LogError
l1t::OMDSReader m_omdsReader
const bool transactionSafe
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
void replaceAll(std::string &str, const std::string &from, const std::string &to)
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="")
void removeAll(std::string &str, const std::string &from, const std::string &to)
void addProcessor(const char *processor, const char *role, const char *crate, const char *slot)
const edm::ESGetToken< L1TMuonOverlapFwVersion, L1TMuonOverlapFwVersionRcd > baseSettings_token