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_ |
Transients | transient_ |
author Stefano ARGIRO author Bill Tanenbaum
Definition at line 40 of file ProductRegistry.h.
typedef std::map<BranchKey, ConstBranchDescription> edm::ProductRegistry::ConstProductList |
Definition at line 54 of file ProductRegistry.h.
typedef std::map<BranchKey, BranchDescription> edm::ProductRegistry::ProductList |
Definition at line 43 of file ProductRegistry.h.
edm::ProductRegistry::ProductRegistry | ( | ) |
Definition at line 34 of file ProductRegistry.cc.
|
explicit |
Definition at line 65 of file ProductRegistry.cc.
References frozen().
|
inlinevirtual |
Definition at line 52 of file ProductRegistry.h.
|
privatevirtual |
Reimplemented in edm::SignallingProductRegistry.
Definition at line 140 of file ProductRegistry.cc.
Referenced by addProduct().
void edm::ProductRegistry::addProduct | ( | BranchDescription const & | productdesc, |
bool | iFromListener = false |
||
) |
Definition at line 72 of file ProductRegistry.cc.
References addCalled(), edm::errors::Configuration, edm::hlt::Exception, edm::BranchDescription::processName(), edm::BranchDescription::produced(), productList_, run_regression::ret, and throwIfFrozen().
Referenced by edm::ProductRegistryHelper::addToRegistry().
std::vector< BranchDescription const * > edm::ProductRegistry::allBranchDescriptions | ( | ) | const |
Definition at line 157 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 144 of file ProductRegistry.cc.
References end, productList(), query::result, and size().
Referenced by edm::ConstProductRegistry::allBranchNames().
|
inline |
Definition at line 124 of file ProductRegistry.h.
References edm::ProductRegistry::Transients::anyProductProduced_, and transient_.
Referenced by edm::ConstProductRegistry::anyProductProduced(), edm::Schedule::Schedule(), and edm::SubProcess::write().
bool edm::ProductRegistry::anyProducts | ( | BranchType const | brType | ) | const |
Definition at line 103 of file ProductRegistry.cc.
References productList_, and throwIfNotFrozen().
|
inline |
Definition at line 95 of file ProductRegistry.h.
References productList_.
Referenced by edm::ProducerBase::registerProducts().
|
inline |
Definition at line 110 of file ProductRegistry.h.
References edm::ProductRegistry::Transients::constProductList_, and transient_.
Referenced by edm::Principal::adjustToNewProductRegistry(), and initializeLookupTables().
void edm::ProductRegistry::copyProduct | ( | BranchDescription const & | productdesc | ) |
Definition at line 88 of file ProductRegistry.cc.
References edm::combinable(), edm::BranchDescription::init(), gen::k, edm::BranchDescription::produced(), productList_, and throwIfFrozen().
Referenced by edm::DaqProvenanceHelper::daqInit(), edm::RootFile::RootFile(), and updateFromInput().
|
inline |
Definition at line 117 of file ProductRegistry.h.
References edm::ProductRegistry::Transients::elementLookup_, and transient_.
Referenced by initializeLookupTables().
|
inlineprivate |
Definition at line 166 of file ProductRegistry.h.
References edm::ProductRegistry::Transients::frozen_, and transient_.
Referenced by ProductRegistry(), setFrozen(), throwIfFrozen(), and throwIfNotFrozen().
ProductTransientIndex edm::ProductRegistry::indexFrom | ( | BranchID const & | iID | ) | const |
Definition at line 319 of file ProductRegistry.cc.
References edm::ProductRegistry::Transients::branchIDToIndex_, kInvalidIndex, and transient_.
|
private |
Definition at line 240 of file ProductRegistry.cc.
References edm::ProductRegistry::Transients::branchIDToIndex_, constProductList(), edm::copy_all(), alignCSCRings::e, elementLookup(), edm::TransientProductLookupMap::fillFrom(), edm::fillLookup(), edm::foundTypes(), i, getHLTprescales::index, edm::is_PtrVector(), edm::is_RefToBaseVector(), edm::is_RefVector(), missingDictionaries(), edm::missingTypes(), edm::ConstBranchDescription::processName(), productList_, productLookup(), edm::public_base_classes(), setProductProduced(), transient_, edm::value_type_of(), and edm::wrappedClassName().
Referenced by merge(), and setFrozen().
|
inline |
Definition at line 135 of file ProductRegistry.h.
References edm::ProductRegistry::Transients::reset(), and transient_.
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 185 of file ProductRegistry.cc.
References alignCSCRings::e, i, initializeLookupTables(), j, edm::match(), edm::BranchDescription::Permissive, productList(), productList_, alignCSCRings::s, and edm::BranchDescription::Strict.
Referenced by edm::StreamerInputSource::mergeIntoRegistry(), edm::RootInputFileSequence::nextFile(), and edm::RootInputFileSequence::previousFile().
|
inline |
Definition at line 131 of file ProductRegistry.h.
References edm::ProductRegistry::Transients::missingDictionaries_, and transient_.
Referenced by initializeLookupTables().
void edm::ProductRegistry::print | ( | std::ostream & | os | ) | const |
Definition at line 327 of file ProductRegistry.cc.
References alignCSCRings::e, i, and productList_.
Referenced by edm::operator<<().
|
inline |
Definition at line 125 of file ProductRegistry.h.
References edm::ProductRegistry::Transients::producedBranchListIndex_, and transient_.
|
inline |
Definition at line 71 of file ProductRegistry.h.
References productList_.
Referenced by edm::Principal::adjustToNewProductRegistry(), allBranchDescriptions(), allBranchNames(), edm::fillProductRegistryTransients(), merge(), 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 76 of file ProductRegistry.h.
References productList_, and throwIfFrozen().
Referenced by edm::RootFile::dropOnInput(), edm::PoolSource::PoolSource(), and edm::RootFile::RootFile().
|
inline |
Definition at line 115 of file ProductRegistry.h.
References edm::ProductRegistry::Transients::productLookup_, and transient_.
Referenced by initializeLookupTables().
|
inline |
Definition at line 123 of file ProductRegistry.h.
References revisionDML::branchType(), edm::ProductRegistry::Transients::productProduced_, and transient_.
void edm::ProductRegistry::setFrozen | ( | bool | initializeLookupInfo = true | ) | const |
Definition at line 115 of file ProductRegistry.cc.
References frozen(), and initializeLookupTables().
Referenced by edm::Schedule::Schedule().
|
inline |
Definition at line 127 of file ProductRegistry.h.
References edm::ProductRegistry::Transients::producedBranchListIndex_, and transient_.
Referenced by edm::BranchIDListHelper::updateRegistries().
|
inlineprivate |
Definition at line 161 of file ProductRegistry.h.
References edm::ProductRegistry::Transients::anyProductProduced_, revisionDML::branchType(), edm::ProductRegistry::Transients::productProduced_, and transient_.
Referenced by initializeLookupTables().
|
inline |
Definition at line 104 of file ProductRegistry.h.
References productList_.
Referenced by allBranchDescriptions(), and allBranchNames().
|
private |
Definition at line 124 of file ProductRegistry.cc.
References edm::hlt::Exception, and frozen().
Referenced by addProduct(), copyProduct(), and productListUpdator().
|
private |
Definition at line 132 of file ProductRegistry.cc.
References edm::hlt::Exception, and frozen().
Referenced by anyProducts().
void edm::ProductRegistry::updateFromInput | ( | ProductList const & | other | ) |
Definition at line 169 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 177 of file ProductRegistry.cc.
References copyProduct().
|
static |
Definition at line 120 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 173 of file ProductRegistry.h.
Referenced by addProduct(), anyProducts(), callForEachBranch(), copyProduct(), initializeLookupTables(), merge(), print(), productList(), productListUpdator(), and size().
|
mutableprivate |
Definition at line 174 of file ProductRegistry.h.
Referenced by anyProductProduced(), constProductList(), elementLookup(), frozen(), indexFrom(), initializeLookupTables(), initializeTransients(), missingDictionaries(), producedBranchListIndex(), productLookup(), productProduced(), setProducedBranchListIndex(), and setProductProduced().