#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 134 of file PrincipalGetAdapter.h.
typedef std::vector<BasicHandle> edm::PrincipalGetAdapter::BasicHandleVec |
Definition at line 185 of file PrincipalGetAdapter.h.
PrincipalGetAdapter::PrincipalGetAdapter | ( | Principal const & | pcpl, |
ModuleDescription const & | md, | ||
bool | isComplete | ||
) |
Definition at line 21 of file PrincipalGetAdapter.cc.
PrincipalGetAdapter::~PrincipalGetAdapter | ( | ) |
Definition at line 32 of file PrincipalGetAdapter.cc.
|
delete |
|
private |
Definition at line 173 of file PrincipalGetAdapter.cc.
References edm::Principal::branchType(), and principal_.
Referenced by getByToken_(), and transition().
|
inline |
Definition at line 338 of file PrincipalGetAdapter.h.
BranchDescription const & PrincipalGetAdapter::getBranchDescription | ( | TypeID const & | type, |
std::string const & | productInstanceName | ||
) | const |
Definition at line 278 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 291 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 178 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 185 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 194 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 345 of file PrincipalGetAdapter.h.
References edm::convert_handle(), end, eostools::move(), PROD, edm::es::products(), mps_fire::result, and mps_update::results.
void PrincipalGetAdapter::getManyByType_ | ( | TypeID const & | tid, |
BasicHandleVec & | results, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 241 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 217 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 224 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 299 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 328 of file PrincipalGetAdapter.cc.
References SiStripPI::max, prodBase_, AlCaHLTBitMon_QueryRunRegistry::string, throwUnregisteredPutException(), transition(), and edm::ProductRegistryHelper::typeLabelList().
TypeID const & PrincipalGetAdapter::getTypeIDForPutTokenIndex | ( | EDPutToken::value_type | index | ) | const |
Definition at line 349 of file PrincipalGetAdapter.cc.
References prodBase_, and edm::ProductRegistryHelper::typeLabelList().
|
inline |
Definition at line 160 of file PrincipalGetAdapter.h.
References mps_update::results.
Referenced by edm::OccurrenceForOutput::getByToken(), and transition().
void PrincipalGetAdapter::labelsForToken | ( | EDGetToken const & | iToken, |
ProductLabels & | oLabels | ||
) | const |
Definition at line 131 of file PrincipalGetAdapter.cc.
References consumer_, and edm::EDConsumerBase::labelsForToken().
|
private |
Definition at line 136 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 126 of file PrincipalGetAdapter.cc.
References consumer_, edm::InEvent, and edm::EDConsumerBase::itemsToGetFrom().
Referenced by edm::Event::setConsumer().
|
delete |
|
inline |
Definition at line 175 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 248 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 366 of file PrincipalGetAdapter.cc.
References principal_, and edm::Principal::prodGetter().
std::string const & PrincipalGetAdapter::productInstanceLabel | ( | EDPutToken | iToken | ) | const |
Definition at line 344 of file PrincipalGetAdapter.cc.
References edm::EDPutToken::index(), prodBase_, and edm::ProductRegistryHelper::typeLabelList().
std::vector< edm::ProductResolverIndex > const & PrincipalGetAdapter::putTokenIndexToProductResolverIndex | ( | ) | const |
Definition at line 355 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 360 of file PrincipalGetAdapter.cc.
References prodBase_, and edm::ProductRegistryHelper::recordProvenanceList().
Referenced by edm::Event::commit_aux(), and edm::Event::setProducer().
|
inline |
Definition at line 146 of file PrincipalGetAdapter.h.
Referenced by edm::OccurrenceForOutput::setConsumer(), edm::LuminosityBlock::setConsumer(), and edm::Event::setConsumer().
|
inline |
Definition at line 154 of file PrincipalGetAdapter.h.
Referenced by edm::Run::setProducer(), edm::LuminosityBlock::setProducer(), and edm::Event::setProducerCommon().
|
inline |
Definition at line 150 of file PrincipalGetAdapter.h.
Referenced by edm::LuminosityBlock::setSharedResourcesAcquirer(), and edm::Event::setSharedResourcesAcquirer().
|
private |
Definition at line 159 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 253 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 harvestTrackValidationPlots::str.
Referenced by getBranchDescription(), and getPutTokenIndex().
Transition PrincipalGetAdapter::transition | ( | ) | const |
Definition at line 309 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 267 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), labelsForToken(), makeFailToGetException(), numberOfProductsConsumed(), and throwAmbiguousException().
|
private |
Definition at line 270 of file PrincipalGetAdapter.h.
|
private |
Definition at line 265 of file PrincipalGetAdapter.h.
Referenced by getBranchDescription(), and throwUnregisteredPutException().
|
private |
Definition at line 261 of file PrincipalGetAdapter.h.
Referenced by branchType(), getBranchDescription(), getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), getProductID(), processHistory(), prodGetter(), and throwUnregisteredPutException().
|
private |
Definition at line 269 of file PrincipalGetAdapter.h.
Referenced by getBranchDescription(), getProductID(), getPutTokenIndex(), getTypeIDForPutTokenIndex(), productInstanceLabel(), putTokenIndexToProductResolverIndex(), and recordProvenanceList().
|
private |
Definition at line 268 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getManyByType_(), and getMatchingSequenceByLabel_().