#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_ |
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 | ||
) |
Definition at line 21 of file PrincipalGetAdapter.cc.
PrincipalGetAdapter::~PrincipalGetAdapter | ( | ) |
Definition at line 31 of file PrincipalGetAdapter.cc.
|
delete |
|
private |
Definition at line 172 of file PrincipalGetAdapter.cc.
References edm::Principal::branchType(), and principal_.
Referenced by getByToken_(), and transition().
|
inline |
Definition at line 337 of file PrincipalGetAdapter.h.
BranchDescription const & PrincipalGetAdapter::getBranchDescription | ( | TypeID const & | type, |
std::string const & | productInstanceName | ||
) | const |
Definition at line 277 of file PrincipalGetAdapter.cc.
References edm::ProductResolverBase::branchDescription(), edm::Principal::getProductResolverByIndex(), edm::ProductResolverIndexHelper::index(), diffTreeTool::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 290 of file PrincipalGetAdapter.cc.
References edm::ProductResolverBase::branchDescription(), edm::Principal::getProductResolverByIndex(), diffTreeTool::index, principal_, prodBase_, and edm::ProducerBase::putTokenIndexToProductResolverIndex().
BasicHandle PrincipalGetAdapter::getByLabel_ | ( | TypeID const & | tid, |
InputTag const & | tag, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 177 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 184 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 193 of file PrincipalGetAdapter.cc.
References branchType(), consumer_, edm::Principal::getByToken(), h, diffTreeTool::index, 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 344 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 240 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 216 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 223 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 298 of file PrincipalGetAdapter.cc.
References edm::Principal::getProductResolverByIndex(), diffTreeTool::index, 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 327 of file PrincipalGetAdapter.cc.
References diffTreeTool::index, SiStripPI::max, prodBase_, AlCaHLTBitMon_QueryRunRegistry::string, throwUnregisteredPutException(), transition(), and edm::ProductRegistryHelper::typeLabelList().
TypeID const & PrincipalGetAdapter::getTypeIDForPutTokenIndex | ( | EDPutToken::value_type | index | ) | const |
Definition at line 348 of file PrincipalGetAdapter.cc.
References diffTreeTool::index, prodBase_, and edm::ProductRegistryHelper::typeLabelList().
bool PrincipalGetAdapter::isComplete | ( | ) | const |
Definition at line 370 of file PrincipalGetAdapter.cc.
References edm::Principal::isComplete(), and principal_.
Referenced by edm::OccurrenceForOutput::getByToken().
void PrincipalGetAdapter::labelsForToken | ( | EDGetToken const & | iToken, |
ProductLabels & | oLabels | ||
) | const |
Definition at line 130 of file PrincipalGetAdapter.cc.
References consumer_, and edm::EDConsumerBase::labelsForToken().
|
private |
Definition at line 135 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 125 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 diffTreeTool::index, and 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 247 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 365 of file PrincipalGetAdapter.cc.
References principal_, and edm::Principal::prodGetter().
std::string const & PrincipalGetAdapter::productInstanceLabel | ( | EDPutToken | iToken | ) | const |
Definition at line 343 of file PrincipalGetAdapter.cc.
References edm::EDPutToken::index(), prodBase_, and edm::ProductRegistryHelper::typeLabelList().
std::vector< edm::ProductResolverIndex > const & PrincipalGetAdapter::putTokenIndexToProductResolverIndex | ( | ) | const |
Definition at line 354 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::setProducer().
std::vector< bool > const & PrincipalGetAdapter::recordProvenanceList | ( | ) | const |
Definition at line 359 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.
References mps_update::results.
Referenced by edm::Run::setProducer(), edm::LuminosityBlock::setProducer(), and edm::Event::setProducer().
|
inline |
Definition at line 150 of file PrincipalGetAdapter.h.
Referenced by edm::LuminosityBlock::setSharedResourcesAcquirer(), and edm::Event::setSharedResourcesAcquirer().
|
private |
Definition at line 158 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 252 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 308 of file PrincipalGetAdapter.cc.
References edm::BeginLuminosityBlock, edm::BeginRun, branchType(), edm::EndLuminosityBlock, edm::EndRun, edm::Event, edm::InEvent, edm::InRun, likely, and principal().
Referenced by 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 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(), isComplete(), 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_().