#include <Registry.h>
Classes | |
struct | key_hash |
Public Types | |
typedef map_type::const_iterator | const_iterator |
typedef edm::ParameterSetID | key_type |
typedef oneapi::tbb::concurrent_unordered_map< key_type, value_type, key_hash > | map_type |
typedef std::map< ParameterSetID, ParameterSetBlob > | regmap_type |
typedef edm::ParameterSet | value_type |
Public Member Functions | |
const_iterator | begin () const |
void | clear () |
Not thread safe. More... | |
bool | empty () const |
const_iterator | end () const |
void | fillMap (regmap_type &fillme) const |
bool | getMapped (key_type const &k, value_type &result) const |
value_type const * | getMapped (key_type const &k) const |
bool | insertMapped (value_type const &v, bool forceUpdate=false) |
void | print (std::ostream &os) const |
size_t | size () const |
Static Public Member Functions | |
static Registry * | instance () |
Private Attributes | |
map_type | m_map |
Definition at line 26 of file Registry.h.
typedef map_type::const_iterator edm::pset::Registry::const_iterator |
Definition at line 61 of file Registry.h.
Definition at line 28 of file Registry.h.
typedef oneapi::tbb::concurrent_unordered_map<key_type, value_type, key_hash> edm::pset::Registry::map_type |
Definition at line 60 of file Registry.h.
typedef std::map<ParameterSetID, ParameterSetBlob> edm::pset::Registry::regmap_type |
Fill the given map with the persistent form of each ParameterSet in the registry.
Definition at line 73 of file Registry.h.
Definition at line 29 of file Registry.h.
|
inline |
Definition at line 63 of file Registry.h.
References m_map.
Referenced by HLTConfigProvider::init(), and DQMRootOutputModule::startEndFile().
void edm::pset::Registry::clear | ( | void | ) |
Not thread safe.
Definition at line 40 of file Registry.cc.
References m_map.
Referenced by edm::EventProcessor::~EventProcessor().
|
inline |
|
inline |
Definition at line 65 of file Registry.h.
References m_map.
Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), HLTConfigProvider::init(), and DQMRootOutputModule::startEndFile().
void edm::pset::Registry::fillMap | ( | regmap_type & | fillme | ) | const |
Definition at line 42 of file Registry.cc.
References B2GTnPMonitor_cfi::item, and m_map.
Referenced by ParameterSetBlobProducer::globalBeginRunProduce(), and edm::StreamSerializer::serializeRegistry().
bool edm::pset::Registry::getMapped | ( | key_type const & | k, |
value_type & | result | ||
) | const |
Retrieve the value_type object with the given key. If we return 'true', then 'result' carries the value_type object. If we return 'false, no matching key was found, and the value of 'result' is undefined.
Definition at line 17 of file Registry.cc.
References newFWLiteAna::found, dqmdumpme::k, m_map, and mps_fire::result.
Referenced by CompareToObjectMapRecord::analyze(), TrackingMonitor::analyze(), edm::EventContentAnalyzer::analyze(), TrackingMonitor::bookHistograms(), gen::BaseHadronizer::generateLHE(), getHLTConfigData(), edm::Event::getProcessParameterSet(), edm::getProducerParameterSet(), edm::service::TriggerNamesService::getTrigPaths(), HLTConfigProvider::init(), edm::StreamSchedule::initializeEarlyDelete(), edm::parameterSet(), edm::EventBase::parameterSetForID_(), edm::ScheduleInfo::parametersForModule(), TriggerOutputBranches::triggerNames(), edm::EventBase::triggerNames_(), ProvenanceDumper::work_(), and edm::AsciiOutputModule::write().
Registry::value_type const * edm::pset::Registry::getMapped | ( | key_type const & | k | ) | const |
Retrieve a pointer to the value_type object with the given key. If there is no object associated with the given key 0 is returned.
Definition at line 26 of file Registry.cc.
References newFWLiteAna::found, dqmdumpme::k, and m_map.
bool edm::pset::Registry::insertMapped | ( | value_type const & | v, |
bool | forceUpdate = false |
||
) |
Insert the given value_type object into the registry. If there was already a value_type object with the same key, we don't change it. This should be OK, since it should have the same contents if the key is the same. Return 'true' if we really added the new value_type object, and 'false' if the value_type object was already present.
Definition at line 32 of file Registry.cc.
References m_map, and findQualityFiles::v.
Referenced by edm::StreamerInputSource::deserializeAndMergeWithRegistry(), fwlite::Event::fillParameterSetRegistry(), edm::Maker::makeModule(), edm::ParameterSetConverter::noConvertParameterSets(), FWFileEntry::openFile(), edm::ParameterSet::registerFromString(), edm::ParameterSet::registerIt(), edm::RootFile::RootFile(), TFWLiteSelectorBasic::setupNewFile(), and ProvenanceDumper::work_().
|
static |
Definition at line 12 of file Registry.cc.
References CMS_THREAD_SAFE.
Referenced by CompareToObjectMapRecord::analyze(), TrackingMonitor::analyze(), edm::EventContentAnalyzer::analyze(), TrackingMonitor::bookHistograms(), edm::StreamerInputSource::deserializeAndMergeWithRegistry(), edm::edmModuleTypeEnum(), DependencyGraph::edmModuleTypeEnum(), edm::fillParameterSetBranch(), fwlite::Event::fillParameterSetRegistry(), gen::BaseHadronizer::generateLHE(), HLTConfigProvider::getDataFrom(), getHLTConfigData(), egHLT::trigTools::getMinNrObjsRequiredByFilter(), edm::getParameterSet(), edm::Event::getProcessParameterSet(), edm::getProducerParameterSet(), edm::service::TriggerNamesService::getTrigPaths(), ParameterSetBlobProducer::globalBeginRunProduce(), HLTConfigProvider::init(), edm::StreamSchedule::initializeEarlyDelete(), edm::Maker::makeModule(), edm::ParameterSetConverter::noConvertParameterSets(), FWFileEntry::openFile(), edm::parameterSet(), edm::EventBase::parameterSetForID_(), edm::ScheduleInfo::parametersForModule(), edm::ParameterSet::registerFromString(), edm::ParameterSet::registerIt(), edm::RootFile::RootFile(), edm::StreamSerializer::serializeRegistry(), TFWLiteSelectorBasic::setupNewFile(), DQMRootOutputModule::startEndFile(), TriggerOutputBranches::triggerNames(), edm::EventBase::triggerNames_(), ProvenanceDumper::work_(), edm::AsciiOutputModule::write(), and edm::EventProcessor::~EventProcessor().
void edm::pset::Registry::print | ( | std::ostream & | os | ) | const |
|
inline |
Definition at line 69 of file Registry.h.
References m_map.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and print().
|
private |
Definition at line 79 of file Registry.h.
Referenced by begin(), clear(), empty(), end(), fillMap(), getMapped(), insertMapped(), and size().