author Stefano ARGIRO author Bill Tanenbaum More...
#include "edm/ProductRegistry.h"
Classes | |
struct | Transients |
Public Types | |
typedef std::map< BranchKey, ConstBranchDescription > | ConstProductList |
typedef std::map< BranchKey, BranchDescription > | ProductList |
Static Public Attributes | |
static ProductTransientIndex const | kInvalidIndex = 0xFFFFFFFF |
Private Member Functions | |
virtual void | addCalled (BranchDescription const &, bool iFromListener) |
bool & | frozen () const |
void | initializeLookupTables () const |
void | setProductProduced (BranchType branchType) const |
void | throwIfFrozen () const |
void | throwIfNotFrozen () const |
Private Attributes | |
ProductList | productList_ |
Transient< Transients > | transients_ |
author Stefano ARGIRO author Bill Tanenbaum
Definition at line 41 of file ProductRegistry.h.
typedef std::map<BranchKey, ConstBranchDescription> edm::ProductRegistry::ConstProductList |
Definition at line 55 of file ProductRegistry.h.
typedef std::map<BranchKey, BranchDescription> edm::ProductRegistry::ProductList |
Definition at line 44 of file ProductRegistry.h.
edm::ProductRegistry::ProductRegistry | ( | ) |
Definition at line 33 of file ProductRegistry.cc.
|
explicit |
Definition at line 50 of file ProductRegistry.cc.
References frozen().
|
inlinevirtual |
Definition at line 53 of file ProductRegistry.h.
|
privatevirtual |
Reimplemented in edm::SignallingProductRegistry.
Definition at line 125 of file ProductRegistry.cc.
Referenced by addProduct().
void edm::ProductRegistry::addProduct | ( | BranchDescription const & | productdesc, |
bool | iFromListener = false |
||
) |
Definition at line 57 of file ProductRegistry.cc.
References addCalled(), edm::errors::Configuration, edm::hlt::Exception, edm::BranchDescription::processName(), edm::BranchDescription::produced(), productList_, runTheMatrix::ret, and throwIfFrozen().
Referenced by edm::ProductRegistryHelper::addToRegistry().
std::vector< BranchDescription const * > edm::ProductRegistry::allBranchDescriptions | ( | ) | const |
Definition at line 142 of file ProductRegistry.cc.
References end, productList(), query::result, and size().
Referenced by edm::ConstProductRegistry::allBranchDescriptions(), and edm::RootFile::dropOnInput().
std::vector< std::string > edm::ProductRegistry::allBranchNames | ( | ) | const |
Definition at line 129 of file ProductRegistry.cc.
References end, productList(), query::result, and size().
Referenced by edm::ConstProductRegistry::allBranchNames().
|
inline |
Definition at line 144 of file ProductRegistry.h.
References transients_.
Referenced by edm::ConstProductRegistry::anyProductProduced(), and edm::RunPrincipal::fillRunPrincipal().
bool edm::ProductRegistry::anyProducts | ( | BranchType const | brType | ) | const |
Definition at line 88 of file ProductRegistry.cc.
References productList_, and throwIfNotFrozen().
|
inline |
Definition at line 96 of file ProductRegistry.h.
References productList_.
Referenced by edm::ProducerBase::registerProducts().
|
inline |
Definition at line 111 of file ProductRegistry.h.
References transients_.
Referenced by edm::Principal::adjustToNewProductRegistry(), and initializeLookupTables().
void edm::ProductRegistry::copyProduct | ( | BranchDescription const & | productdesc | ) |
Definition at line 73 of file ProductRegistry.cc.
References edm::combinable(), edm::BranchDescription::init(), gen::k, edm::BranchDescription::produced(), productList_, and throwIfFrozen().
Referenced by stor::HLTInfo::mergeRegistry(), and updateFromInput().
|
inline |
Definition at line 118 of file ProductRegistry.h.
References transients_.
Referenced by initializeLookupTables().
|
inlineprivate |
Definition at line 157 of file ProductRegistry.h.
References transients_.
Referenced by ProductRegistry(), setFrozen(), throwIfFrozen(), and throwIfNotFrozen().
ProductTransientIndex edm::ProductRegistry::indexFrom | ( | BranchID const & | iID | ) | const |
Definition at line 301 of file ProductRegistry.cc.
References kInvalidIndex, and transients_.
|
private |
Definition at line 225 of file ProductRegistry.cc.
References constProductList(), ExpressReco_HICollisions_FallBack::e, elementLookup(), edm::TransientProductLookupMap::fillFrom(), edm::fillLookup(), i, getHLTprescales::index, edm::is_PtrVector(), edm::is_RefToBaseVector(), edm::is_RefVector(), edm::ConstBranchDescription::processName(), productList_, productLookup(), edm::public_base_classes(), setProductProduced(), transients_, and edm::value_type_of().
Referenced by merge(), and setFrozen().
std::string edm::ProductRegistry::merge | ( | ProductRegistry const & | other, |
std::string const & | fileName, | ||
BranchDescription::MatchMode | parametersMustMatch = BranchDescription::Permissive , |
||
BranchDescription::MatchMode | branchesMustMatch = BranchDescription::Permissive |
||
) |
Definition at line 170 of file ProductRegistry.cc.
References ExpressReco_HICollisions_FallBack::e, i, initializeLookupTables(), j, edm::match(), edm::BranchDescription::Permissive, productList(), productList_, asciidump::s, and edm::BranchDescription::Strict.
Referenced by edm::StreamerInputSource::mergeIntoRegistry(), edm::RootInputFileSequence::nextFile(), and edm::RootInputFileSequence::previousFile().
void edm::ProductRegistry::print | ( | std::ostream & | os | ) | const |
Definition at line 309 of file ProductRegistry.cc.
References ExpressReco_HICollisions_FallBack::e, i, and productList_.
Referenced by edm::operator<<().
|
inline |
Definition at line 145 of file ProductRegistry.h.
References transients_.
|
inline |
Definition at line 72 of file ProductRegistry.h.
References productList_.
Referenced by edm::Principal::adjustToNewProductRegistry(), allBranchDescriptions(), allBranchNames(), stor::HLTInfo::buildClassCache(), stor::HLTInfo::declareStreamers(), edm::fillProductRegistryTransients(), merge(), stor::HLTInfo::mergeRegistry(), edm::operator==(), edm::ConstProductRegistry::productList(), edm::registryIsSubset(), edm::RootFile::RootFile(), edm::Schedule::Schedule(), fwlite::internal::BranchMapReaderStrategyV8::updateFile(), fwlite::internal::BranchMapReaderStrategyV11::updateFile(), fwlite::internal::BranchMapReaderStrategyV17::updateFile(), fwlite::internal::BranchMapReaderStrategyV1::updateMap(), edm::BranchIDListHelper::updateRegistries(), ProvenanceDumper::work_(), and edm::ProvenanceCheckerOutputModule::write().
|
inline |
Definition at line 77 of file ProductRegistry.h.
References productList_, and throwIfFrozen().
Referenced by edm::RootFile::dropOnInput(), and edm::PoolSource::PoolSource().
|
inline |
Definition at line 116 of file ProductRegistry.h.
References transients_.
Referenced by initializeLookupTables().
|
inline |
Definition at line 143 of file ProductRegistry.h.
References revisionDML::branchType(), and transients_.
void edm::ProductRegistry::setFrozen | ( | bool | initializeLookupInfo = true | ) | const |
Definition at line 100 of file ProductRegistry.cc.
References frozen(), and initializeLookupTables().
Referenced by stor::HLTInfo::HLTInfo(), and edm::Schedule::Schedule().
|
inline |
Definition at line 147 of file ProductRegistry.h.
References transients_.
Referenced by edm::BranchIDListHelper::updateRegistries().
|
inlineprivate |
Definition at line 152 of file ProductRegistry.h.
References revisionDML::branchType(), and transients_.
Referenced by initializeLookupTables().
|
inline |
Definition at line 105 of file ProductRegistry.h.
References productList_.
Referenced by allBranchDescriptions(), and allBranchNames().
|
private |
Definition at line 109 of file ProductRegistry.cc.
References edm::hlt::Exception, and frozen().
Referenced by addProduct(), copyProduct(), and productListUpdator().
|
private |
Definition at line 117 of file ProductRegistry.cc.
References edm::hlt::Exception, and frozen().
Referenced by anyProducts().
void edm::ProductRegistry::updateFromInput | ( | ProductList const & | other | ) |
Definition at line 154 of file ProductRegistry.cc.
References copyProduct().
Referenced by edm::StreamerInputSource::mergeIntoRegistry(), and edm::RootInputFileSequence::RootInputFileSequence().
void edm::ProductRegistry::updateFromInput | ( | std::vector< BranchDescription > const & | other | ) |
Definition at line 162 of file ProductRegistry.cc.
References copyProduct().
|
static |
Definition at line 121 of file ProductRegistry.h.
Referenced by edm::Principal::addGroup_(), edm::Principal::adjustIndexesAfterProductRegistryAddition(), edm::Principal::getExistingGroup(), edm::Principal::getGroup(), indexFrom(), and edm::Principal::recombine().
|
private |
Definition at line 164 of file ProductRegistry.h.
Referenced by addProduct(), anyProducts(), callForEachBranch(), copyProduct(), initializeLookupTables(), merge(), print(), productList(), productListUpdator(), and size().
|
mutableprivate |
Definition at line 165 of file ProductRegistry.h.
Referenced by anyProductProduced(), constProductList(), elementLookup(), frozen(), indexFrom(), initializeLookupTables(), producedBranchListIndex(), productLookup(), productProduced(), setProducedBranchListIndex(), and setProductProduced().