|
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > | KeyedProxies |
|
typedef std::vector< EventSetupRecordKey > | Keys |
|
typedef std::map< EventSetupRecordKey, KeyedProxies > | RecordProxies |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
bool | getObjectKey (const L1TMuonGlobalParamsO2ORcd &record, std::shared_ptr< L1TMuonGlobalParams > data, std::string &objectKey) |
|
template<typename T > |
void | setWhatProduced (T *iThis, const es::Label &iLabel=es::Label()) |
|
template<typename T > |
void | setWhatProduced (T *iThis, const char *iLabel) |
|
template<typename T > |
void | setWhatProduced (T *iThis, const std::string &iLabel) |
|
template<typename T , typename TDecorator > |
void | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label()) |
|
template<typename T , typename TReturn , typename TRecord > |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label()) |
|
template<typename T , typename TReturn , typename TRecord , typename TArg > |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label()) |
|
template<class TFactory > |
void | registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
|
virtual void | registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string()) |
|
virtual void | registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) |
| override DataProxyProvider method More...
|
|
void | eraseAll (const EventSetupRecordKey &iRecordKey) |
| deletes all the Proxies in aStream More...
|
|
void | invalidateProxies (const EventSetupRecordKey &iRecordKey) |
|
template<class T > |
void | usingRecord () |
|
void | usingRecordWithKey (const EventSetupRecordKey &) |
|
bool | m_copyFromCondDB |
|
cond::persistency::Session | m_dbSession |
|
bool | m_forceGeneration |
|
l1t::OMDSReader | m_omdsReader |
|
Implements L1ConfigOnlineProdBaseExt< L1TMuonGlobalParamsO2ORcd, L1TMuonGlobalParams >.
Definition at line 26 of file L1TMuonGlobalParamsOnlineProd.cc.
References mps_alisetup::append, cast_to_L1TMuonGlobalParams(), DEFINE_FWK_EVENTSETUP_MODULE, MillePedeFileConverter_cfg::e, l1t::OnlineDBqueryHelper::fetch(), edm::eventsetup::EventSetupRecord::get(), crabWrapper::key, relativeConstraints::keys, L1TMuonGlobalParamsHelper::loadFromOnline(), L1ConfigOnlineProdBaseExt< L1TMuonGlobalParamsO2ORcd, L1TMuonGlobalParams >::m_omdsReader, convertSQLitetoXML_cfg::output, l1t::XmlConfigParser::readDOMFromString(), l1t::XmlConfigParser::readRootElement(), l1t::TriggerSystem::setConfigured(), and AlCaHLTBitMon_QueryRunRegistry::string.
31 baseRcd.
get( baseSettings ) ;
33 if( objectKey.empty() ){
34 edm::LogError(
"L1-O2O: L1TMuonGlobalParamsOnlineProd" ) <<
"Key is empty";
35 throw std::runtime_error(
"Empty objectKey");
38 std::string tscKey = objectKey.substr(0, objectKey.find(
":") );
39 std::string rsKey = objectKey.substr( objectKey.find(
":")+1, std::string::npos );
41 edm::LogInfo(
"L1-O2O: L1TMuonGlobalParamsOnlineProd" ) <<
"Producing L1TMuonGlobalParams with TSC key =" << tscKey <<
" and RS key = " << rsKey ;
45 std::map<std::string,std::string> rs_payloads, algo_payloads;
47 std::map<std::string,std::string>
keys =
53 algo_key = keys[
"ALGO"];
62 std::map<std::string,std::string> rsKeys =
69 std::map<std::string,std::string> algoKeys =
76 for(
auto &
key : rsKeys)
77 rs_payloads[
key.second ] =
84 for(
auto &
key : algoKeys)
85 algo_payloads[
key.second ] =
91 }
catch ( std::runtime_error &
e ) {
92 edm::LogError(
"L1-O2O: L1TMuonGlobalParamsOnlineProd" ) << e.what();
93 throw std::runtime_error(
"Broken key");
103 for(
auto &conf : rs_payloads){
108 for(
auto &conf : algo_payloads){
123 for(
auto &conf : algo_payloads){
127 for(
auto &conf : rs_payloads){
134 m_params_helper.loadFromOnline(trgSys);
136 std::shared_ptr< L1TMuonGlobalParams > retval = std::make_shared< L1TMuonGlobalParams >(
cast_to_L1TMuonGlobalParams(m_params_helper) );
const L1TMuonGlobalParams & cast_to_L1TMuonGlobalParams(const L1TMuonGlobalParams_PUBLIC &x)
void setConfigured(bool state=true) noexcept
l1t::OMDSReader m_omdsReader
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)
void get(HolderT &iHolder) const
void readRootElement(TriggerSystem &aTriggerSystem, const std::string &sysId="")