#include <PrincipalGetAdapter.h>
Public Types | |
typedef std::vector< BasicHandle > | BasicHandleVec |
Private Member Functions | |
BranchType const & | branchType () const |
BasicHandle | makeFailToGetException (KindOfType, TypeID const &, EDGetToken) const |
void | throwAmbiguousException (TypeID const &productType, EDGetToken token) const |
void | throwUnregisteredPutException (TypeID const &type, std::string const &productInstanceLabel) const |
Private Attributes | |
EDConsumerBase const * | consumer_ |
bool | isComplete_ |
ModuleDescription const & | md_ |
Principal const & | principal_ |
ProducerBase const * | prodBase_ = 0 |
SharedResourcesAcquirer * | resourcesAcquirer_ |
Definition at line 132 of file PrincipalGetAdapter.h.
typedef std::vector<BasicHandle> edm::PrincipalGetAdapter::BasicHandleVec |
Definition at line 171 of file PrincipalGetAdapter.h.
PrincipalGetAdapter::PrincipalGetAdapter | ( | Principal const & | pcpl, |
ModuleDescription const & | md, | ||
bool | isComplete | ||
) |
Definition at line 22 of file PrincipalGetAdapter.cc.
PrincipalGetAdapter::~PrincipalGetAdapter | ( | ) |
Definition at line 30 of file PrincipalGetAdapter.cc.
|
delete |
|
private |
Definition at line 131 of file PrincipalGetAdapter.cc.
References edm::Principal::branchType(), and principal_.
Referenced by getByToken_(), and transition().
|
inline |
Definition at line 309 of file PrincipalGetAdapter.h.
BranchDescription const & PrincipalGetAdapter::getBranchDescription | ( | TypeID const & | type, |
std::string const & | productInstanceName | ||
) | const |
Definition at line 220 of file PrincipalGetAdapter.cc.
References edm::ProductResolverBase::branchDescription(), edm::Principal::getProductResolverByIndex(), edm::ProductResolverIndexHelper::index(), md_, edm::ModuleDescription::moduleLabel(), principal_, edm::ModuleDescription::processName(), edm::PRODUCT_TYPE, edm::Principal::productLookup(), edm::ProductResolverIndexInvalid, throwUnregisteredPutException(), and UNLIKELY.
BranchDescription const & PrincipalGetAdapter::getBranchDescription | ( | unsigned int | iPutTokenIndex | ) | const |
Definition at line 233 of file PrincipalGetAdapter.cc.
References edm::ProductResolverBase::branchDescription(), edm::Principal::getProductResolverByIndex(), principal_, prodBase_, and edm::ProducerBase::putTokenIndexToProductResolverIndex().
BasicHandle PrincipalGetAdapter::getByLabel_ | ( | TypeID const & | tid, |
InputTag const & | tag, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 133 of file PrincipalGetAdapter.cc.
References consumer_, edm::Principal::getByLabel(), principal_, edm::PRODUCT_TYPE, and resourcesAcquirer_.
Referenced by edm::LuminosityBlock::getByLabelImpl(), edm::Run::getByLabelImpl(), and edm::Event::getByLabelImpl().
BasicHandle PrincipalGetAdapter::getByLabel_ | ( | TypeID const & | tid, |
std::string const & | label, | ||
std::string const & | instance, | ||
std::string const & | process, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 139 of file PrincipalGetAdapter.cc.
References consumer_, edm::Principal::getByLabel(), principal_, edm::PRODUCT_TYPE, and resourcesAcquirer_.
BasicHandle PrincipalGetAdapter::getByToken_ | ( | TypeID const & | id, |
KindOfType | kindOfType, | ||
EDGetToken | token, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 147 of file PrincipalGetAdapter.cc.
References branchType(), consumer_, edm::Principal::getByToken(), h, edm::EDConsumerBase::indexFrom(), edm::BasicHandle::isValid(), makeFailToGetException(), principal_, edm::ProductResolverIndexAndSkipBit::productResolverIndex(), edm::ProductResolverIndexAmbiguous, edm::ProductResolverIndexInvalid, resourcesAcquirer_, edm::ProductResolverIndexAndSkipBit::skipCurrentProcess(), throwAmbiguousException(), and UNLIKELY.
Referenced by edm::OccurrenceForOutput::getByToken().
|
inline |
Definition at line 314 of file PrincipalGetAdapter.h.
References end, eostools::move(), PROD, and edm::es::products().
void PrincipalGetAdapter::getManyByType_ | ( | TypeID const & | tid, |
BasicHandleVec & | results, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 187 of file PrincipalGetAdapter.cc.
References consumer_, edm::Principal::getManyByType(), principal_, and resourcesAcquirer_.
BasicHandle PrincipalGetAdapter::getMatchingSequenceByLabel_ | ( | TypeID const & | typeID, |
InputTag const & | tag, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 172 of file PrincipalGetAdapter.cc.
References consumer_, edm::ELEMENT_TYPE, edm::Principal::getByLabel(), principal_, and resourcesAcquirer_.
BasicHandle PrincipalGetAdapter::getMatchingSequenceByLabel_ | ( | TypeID const & | typeID, |
std::string const & | label, | ||
std::string const & | instance, | ||
std::string const & | process, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 178 of file PrincipalGetAdapter.cc.
References consumer_, edm::ELEMENT_TYPE, edm::Principal::getByLabel(), h, principal_, and resourcesAcquirer_.
ProductID const & PrincipalGetAdapter::getProductID | ( | unsigned int | iPutTokenIndex | ) | const |
Definition at line 240 of file PrincipalGetAdapter.cc.
References edm::Principal::getProductResolverByIndex(), principal_, prodBase_, edm::ProducerBase::putTokenIndexToProductResolverIndex(), and edm::ProductResolverBase::stableProvenance().
EDPutToken::value_type PrincipalGetAdapter::getPutTokenIndex | ( | TypeID const & | type, |
std::string const & | productInstanceName | ||
) | const |
Definition at line 267 of file PrincipalGetAdapter.cc.
References SiStripPI::max, prodBase_, throwUnregisteredPutException(), transition(), and edm::ProductRegistryHelper::typeLabelList().
TypeID const & PrincipalGetAdapter::getTypeIDForPutTokenIndex | ( | EDPutToken::value_type | index | ) | const |
Definition at line 285 of file PrincipalGetAdapter.cc.
References prodBase_, and edm::ProductRegistryHelper::typeLabelList().
|
inline |
Definition at line 151 of file PrincipalGetAdapter.h.
Referenced by edm::OccurrenceForOutput::getByToken(), and transition().
void PrincipalGetAdapter::labelsForToken | ( | EDGetToken const & | iToken, |
ProductLabels & | oLabels | ||
) | const |
Definition at line 84 of file PrincipalGetAdapter.cc.
References consumer_, and edm::EDConsumerBase::labelsForToken().
|
private |
Definition at line 88 of file PrincipalGetAdapter.cc.
References consumer_, cppFunctionSkipper::exception, tablePrinter::labels, edm::EDConsumerBase::labelsForToken(), edm::makeHandleExceptionFactory(), edm::ProductLabels::module, edm::ProductLabels::process, edm::PRODUCT_TYPE, edm::ProductLabels::productInstance, and edm::errors::ProductNotFound.
Referenced by getByToken_().
size_t PrincipalGetAdapter::numberOfProductsConsumed | ( | ) | const |
Definition at line 82 of file PrincipalGetAdapter.cc.
References consumer_, edm::InEvent, and edm::EDConsumerBase::itemsToGetFrom().
Referenced by edm::Event::setConsumer().
|
delete |
|
inline |
Definition at line 163 of file PrincipalGetAdapter.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::LuminosityBlock::commit_(), edm::Run::commit_(), edm::Event::commit_(), edm::Event::eventPrincipal(), edm::OccurrenceForOutput::getAllProvenance(), edm::Event::getAllProvenance(), edm::OccurrenceForOutput::getAllStableProvenance(), edm::Event::getAllStableProvenance(), edm::OccurrenceForOutput::getProvenance(), edm::Event::getProvenance(), edm::LuminosityBlock::luminosityBlockPrincipal(), edm::OccurrenceForOutput::principal(), edm::Event::productGetter(), edm::Run::runPrincipal(), edm::OccurrenceForOutput::size(), edm::Event::size(), and transition().
ProcessHistory const & PrincipalGetAdapter::processHistory | ( | ) | const |
Definition at line 193 of file PrincipalGetAdapter.cc.
References principal_, and edm::Principal::processHistory().
Referenced by edm::OccurrenceForOutput::processHistory(), edm::LuminosityBlock::processHistory(), edm::Run::processHistory(), and edm::Event::processHistory().
EDProductGetter const * PrincipalGetAdapter::prodGetter | ( | ) | const |
Definition at line 297 of file PrincipalGetAdapter.cc.
References principal_, and edm::Principal::prodGetter().
std::string const & PrincipalGetAdapter::productInstanceLabel | ( | EDPutToken | iToken | ) | const |
Definition at line 281 of file PrincipalGetAdapter.cc.
References edm::EDPutToken::index(), prodBase_, and edm::ProductRegistryHelper::typeLabelList().
std::vector< edm::ProductResolverIndex > const & PrincipalGetAdapter::putTokenIndexToProductResolverIndex | ( | ) | const |
Definition at line 289 of file PrincipalGetAdapter.cc.
References prodBase_, and edm::ProducerBase::putTokenIndexToProductResolverIndex().
Referenced by edm::LuminosityBlock::commit_(), edm::Run::commit_(), edm::Event::commit_aux(), edm::Run::setProducer(), edm::LuminosityBlock::setProducer(), and edm::Event::setProducerCommon().
std::vector< bool > const & PrincipalGetAdapter::recordProvenanceList | ( | ) | const |
Definition at line 293 of file PrincipalGetAdapter.cc.
References prodBase_, and edm::ProductRegistryHelper::recordProvenanceList().
Referenced by edm::Event::commit_aux(), and edm::Event::setProducer().
|
inline |
Definition at line 143 of file PrincipalGetAdapter.h.
Referenced by edm::OccurrenceForOutput::setConsumer(), edm::LuminosityBlock::setConsumer(), and edm::Event::setConsumer().
|
inline |
Definition at line 147 of file PrincipalGetAdapter.h.
Referenced by edm::Run::setProducer(), edm::LuminosityBlock::setProducer(), and edm::Event::setProducerCommon().
|
inline |
Definition at line 145 of file PrincipalGetAdapter.h.
Referenced by edm::LuminosityBlock::setSharedResourcesAcquirer(), and edm::Event::setSharedResourcesAcquirer().
|
private |
Definition at line 116 of file PrincipalGetAdapter.cc.
References consumer_, cppFunctionSkipper::exception, tablePrinter::labels, edm::EDConsumerBase::labelsForToken(), edm::ProductLabels::module, edm::ProductLabels::process, and edm::ProductLabels::productInstance.
Referenced by getByToken_().
|
private |
Definition at line 195 of file PrincipalGetAdapter.cc.
References edm::ProductRegistry::allBranchDescriptions(), Exception, edm::TypeID::friendlyClassName(), edm::errors::InsertFailure, md_, edm::ModuleDescription::moduleLabel(), principal_, edm::ModuleDescription::processName(), edm::Principal::productRegistry(), and str.
Referenced by getBranchDescription(), and getPutTokenIndex().
Transition PrincipalGetAdapter::transition | ( | ) | const |
Definition at line 249 of file PrincipalGetAdapter.cc.
References edm::BeginLuminosityBlock, edm::BeginRun, branchType(), edm::EndLuminosityBlock, edm::EndRun, edm::Event, edm::InEvent, edm::InRun, isComplete(), LIKELY, and principal().
Referenced by edm::LuminosityBlock::commit_(), edm::Run::commit_(), and getPutTokenIndex().
|
private |
Definition at line 241 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), labelsForToken(), makeFailToGetException(), numberOfProductsConsumed(), and throwAmbiguousException().
|
private |
Definition at line 244 of file PrincipalGetAdapter.h.
|
private |
Definition at line 239 of file PrincipalGetAdapter.h.
Referenced by getBranchDescription(), and throwUnregisteredPutException().
|
private |
Definition at line 235 of file PrincipalGetAdapter.h.
Referenced by branchType(), getBranchDescription(), getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), getProductID(), processHistory(), prodGetter(), and throwUnregisteredPutException().
|
private |
Definition at line 243 of file PrincipalGetAdapter.h.
Referenced by getBranchDescription(), getProductID(), getPutTokenIndex(), getTypeIDForPutTokenIndex(), productInstanceLabel(), putTokenIndexToProductResolverIndex(), and recordProvenanceList().
|
private |
Definition at line 242 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getManyByType_(), and getMatchingSequenceByLabel_().