#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_ = nullptr |
SharedResourcesAcquirer * | resourcesAcquirer_ |
Definition at line 131 of file PrincipalGetAdapter.h.
typedef std::vector<BasicHandle> edm::PrincipalGetAdapter::BasicHandleVec |
Definition at line 169 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 128 of file PrincipalGetAdapter.cc.
References edm::Principal::branchType(), and principal_.
Referenced by getByToken_(), and transition().
|
inline |
Definition at line 308 of file PrincipalGetAdapter.h.
References isComplete().
Referenced by edm::LuminosityBlock::getByLabel(), edm::Run::getByLabel(), edm::OccurrenceForOutput::getByToken(), edm::LuminosityBlock::getByToken(), edm::Run::getByToken(), edm::OccurrenceForOutput::getHandle(), edm::LuminosityBlock::getHandle(), and edm::Run::getHandle().
BranchDescription const & PrincipalGetAdapter::getBranchDescription | ( | TypeID const & | type, |
std::string const & | productInstanceName | ||
) | const |
Definition at line 211 of file PrincipalGetAdapter.cc.
References cms::cuda::assert(), 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 224 of file PrincipalGetAdapter.cc.
References cms::cuda::assert(), 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 130 of file PrincipalGetAdapter.cc.
References consumer_, edm::Principal::getByLabel(), principal_, edm::PRODUCT_TYPE, resourcesAcquirer_, and makeGlobalPositionRcd_cfg::tag.
Referenced by edm::LuminosityBlock::getByLabel(), edm::Run::getByLabel(), edm::Event::getByLabel(), 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 136 of file PrincipalGetAdapter.cc.
References consumer_, edm::Principal::getByLabel(), instance, label, principal_, LaserDQM_cfg::process, edm::PRODUCT_TYPE, and resourcesAcquirer_.
BasicHandle PrincipalGetAdapter::getByToken_ | ( | TypeID const & | id, |
KindOfType | kindOfType, | ||
EDGetToken | token, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 144 of file PrincipalGetAdapter.cc.
References branchType(), consumer_, edm::Principal::getByToken(), h, edm::EDConsumerBase::indexFrom(), makeFailToGetException(), principal_, edm::ProductResolverIndexAndSkipBit::productResolverIndex(), edm::ProductResolverIndexAmbiguous, edm::ProductResolverIndexInvalid, resourcesAcquirer_, edm::ProductResolverIndexAndSkipBit::skipCurrentProcess(), throwAmbiguousException(), unpackBuffers-CaloStage2::token, and UNLIKELY.
Referenced by edm::ProcessBlock::getByToken(), edm::OccurrenceForOutput::getByToken(), edm::Run::getByToken(), edm::LuminosityBlock::getByToken(), edm::Event::getByToken(), edm::Event::getByTokenImpl(), edm::ProcessBlock::getHandle(), edm::OccurrenceForOutput::getHandle(), edm::LuminosityBlock::getHandle(), edm::Run::getHandle(), and edm::Event::getHandle().
|
inline |
Definition at line 143 of file PrincipalGetAdapter.h.
References consumer_.
Referenced by edm::Event::fillLuminosityBlock(), and edm::LuminosityBlock::fillRun().
BasicHandle PrincipalGetAdapter::getMatchingSequenceByLabel_ | ( | TypeID const & | typeID, |
InputTag const & | tag, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 169 of file PrincipalGetAdapter.cc.
References consumer_, edm::ELEMENT_TYPE, edm::Principal::getByLabel(), principal_, resourcesAcquirer_, and makeGlobalPositionRcd_cfg::tag.
Referenced by edm::Event::getByLabel().
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 175 of file PrincipalGetAdapter.cc.
References consumer_, edm::ELEMENT_TYPE, edm::Principal::getByLabel(), h, instance, label, principal_, LaserDQM_cfg::process, and resourcesAcquirer_.
ProductID const & PrincipalGetAdapter::getProductID | ( | unsigned int | iPutTokenIndex | ) | const |
Definition at line 231 of file PrincipalGetAdapter.cc.
References cms::cuda::assert(), edm::Principal::getProductResolverByIndex(), principal_, prodBase_, edm::ProducerBase::putTokenIndexToProductResolverIndex(), and edm::ProductResolverBase::stableProvenance().
Referenced by edm::Event::emplaceImpl(), edm::Event::getRefBeforePut(), and edm::Event::putImpl().
EDPutToken::value_type PrincipalGetAdapter::getPutTokenIndex | ( | TypeID const & | type, |
std::string const & | productInstanceName | ||
) | const |
Definition at line 258 of file PrincipalGetAdapter.cc.
References SiStripPI::max, prodBase_, throwUnregisteredPutException(), transition(), and edm::ProducerBase::typeLabelList().
Referenced by edm::Event::getRefBeforePut(), edm::Run::put(), edm::LuminosityBlock::put(), and edm::Event::put().
|
inline |
Definition at line 146 of file PrincipalGetAdapter.h.
References resourcesAcquirer_.
Referenced by edm::Event::fillLuminosityBlock(), and edm::LuminosityBlock::fillRun().
TypeID const & PrincipalGetAdapter::getTypeIDForPutTokenIndex | ( | EDPutToken::value_type | index | ) | const |
Definition at line 276 of file PrincipalGetAdapter.cc.
References prodBase_, and edm::ProducerBase::typeLabelList().
Referenced by edm::ProcessBlock::emplace(), edm::Run::emplace(), edm::LuminosityBlock::emplace(), edm::Event::emplace(), edm::Event::getRefBeforePut(), edm::ProcessBlock::put(), edm::Run::put(), edm::LuminosityBlock::put(), and edm::Event::put().
|
inline |
Definition at line 152 of file PrincipalGetAdapter.h.
References isComplete_.
Referenced by checkIfComplete(), edm::OccurrenceForOutput::getByToken(), and transition().
void PrincipalGetAdapter::labelsForToken | ( | EDGetToken const & | iToken, |
ProductLabels & | oLabels | ||
) | const |
Definition at line 77 of file PrincipalGetAdapter.cc.
References consumer_, and edm::EDConsumerBase::labelsForToken().
Referenced by edm::LuminosityBlock::labelsForToken(), edm::Run::labelsForToken(), and edm::Event::labelsForToken().
|
private |
Definition at line 85 of file PrincipalGetAdapter.cc.
References consumer_, cppFunctionSkipper::exception, SummaryClient_cfi::labels, edm::EDConsumerBase::labelsForToken(), edm::makeHandleExceptionFactory(), edm::PRODUCT_TYPE, edm::errors::ProductNotFound, and unpackBuffers-CaloStage2::token.
Referenced by getByToken_().
|
inline |
Definition at line 173 of file PrincipalGetAdapter.h.
References md_.
Referenced by edm::Event::fillLuminosityBlock(), and edm::LuminosityBlock::fillRun().
size_t PrincipalGetAdapter::numberOfProductsConsumed | ( | ) | const |
Definition at line 75 of file PrincipalGetAdapter.cc.
References consumer_, edm::InEvent, and edm::EDConsumerBase::itemsToGetFrom().
Referenced by edm::Event::setConsumer().
|
delete |
|
inline |
Definition at line 161 of file PrincipalGetAdapter.h.
References principal_.
Referenced by edm::ProcessBlock::commit_(), 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::Event::getStableProvenance(), edm::LuminosityBlock::luminosityBlockPrincipal(), edm::OccurrenceForOutput::principal(), edm::ProcessBlock::processBlockPrincipal(), edm::Event::productGetter(), edm::Run::runPrincipal(), edm::OccurrenceForOutput::size(), edm::Event::size(), and transition().
unsigned int PrincipalGetAdapter::processBlockIndex | ( | std::string const & | processName | ) | const |
Definition at line 81 of file PrincipalGetAdapter.cc.
References principal_, edm::Principal::processBlockIndex(), and SimL1EmulatorRepack_CalouGT_cff::processName.
Referenced by edm::Event::processBlockIndex().
ProcessHistory const & PrincipalGetAdapter::processHistory | ( | ) | const |
Definition at line 184 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 288 of file PrincipalGetAdapter.cc.
References principal_, and edm::Principal::prodGetter().
Referenced by edm::Event::getRefBeforePut().
std::string const & PrincipalGetAdapter::productInstanceLabel | ( | EDPutToken | iToken | ) | const |
Definition at line 272 of file PrincipalGetAdapter.cc.
References edm::EDPutToken::index(), prodBase_, and edm::ProducerBase::typeLabelList().
Referenced by edm::ProcessBlock::put(), edm::Run::put(), edm::LuminosityBlock::put(), and edm::Event::put().
std::vector< edm::ProductResolverIndex > const & PrincipalGetAdapter::putTokenIndexToProductResolverIndex | ( | ) | const |
Definition at line 280 of file PrincipalGetAdapter.cc.
References prodBase_, and edm::ProducerBase::putTokenIndexToProductResolverIndex().
Referenced by edm::ProcessBlock::commit_(), edm::LuminosityBlock::commit_(), edm::Run::commit_(), edm::Event::commit_aux(), edm::ProcessBlock::setProducer(), edm::Run::setProducer(), edm::LuminosityBlock::setProducer(), and edm::Event::setProducerCommon().
std::vector< bool > const & PrincipalGetAdapter::recordProvenanceList | ( | ) | const |
Definition at line 284 of file PrincipalGetAdapter.cc.
References prodBase_, and edm::ProducerBase::recordProvenanceList().
Referenced by edm::Event::commit_aux(), and edm::Event::setProducer().
|
inline |
Definition at line 142 of file PrincipalGetAdapter.h.
References consumer_.
Referenced by edm::OccurrenceForOutput::setConsumer(), edm::Run::setConsumer(), edm::ProcessBlock::setConsumer(), edm::LuminosityBlock::setConsumer(), and edm::Event::setConsumer().
|
inline |
Definition at line 148 of file PrincipalGetAdapter.h.
References prodBase_.
Referenced by edm::ProcessBlock::setProducer(), edm::Run::setProducer(), edm::LuminosityBlock::setProducer(), and edm::Event::setProducerCommon().
|
inline |
Definition at line 145 of file PrincipalGetAdapter.h.
References resourcesAcquirer_.
Referenced by edm::Run::setSharedResourcesAcquirer(), edm::LuminosityBlock::setSharedResourcesAcquirer(), and edm::Event::setSharedResourcesAcquirer().
|
private |
Definition at line 113 of file PrincipalGetAdapter.cc.
References consumer_, cppFunctionSkipper::exception, SummaryClient_cfi::labels, edm::EDConsumerBase::labelsForToken(), and unpackBuffers-CaloStage2::token.
Referenced by getByToken_().
|
private |
Definition at line 186 of file PrincipalGetAdapter.cc.
References edm::ProductRegistry::allBranchDescriptions(), Exception, 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 240 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::ProcessBlock::commit_(), edm::LuminosityBlock::commit_(), edm::Run::commit_(), and getPutTokenIndex().
|
private |
Definition at line 240 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getConsumer(), getMatchingSequenceByLabel_(), labelsForToken(), makeFailToGetException(), numberOfProductsConsumed(), setConsumer(), and throwAmbiguousException().
|
private |
Definition at line 243 of file PrincipalGetAdapter.h.
Referenced by isComplete().
|
private |
Definition at line 238 of file PrincipalGetAdapter.h.
Referenced by getBranchDescription(), moduleDescription(), and throwUnregisteredPutException().
|
private |
Definition at line 234 of file PrincipalGetAdapter.h.
Referenced by branchType(), getBranchDescription(), getByLabel_(), getByToken_(), getMatchingSequenceByLabel_(), getProductID(), principal(), processBlockIndex(), processHistory(), prodGetter(), and throwUnregisteredPutException().
|
private |
Definition at line 242 of file PrincipalGetAdapter.h.
Referenced by getBranchDescription(), getProductID(), getPutTokenIndex(), getTypeIDForPutTokenIndex(), productInstanceLabel(), putTokenIndexToProductResolverIndex(), recordProvenanceList(), and setProducer().
|
private |
Definition at line 241 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getMatchingSequenceByLabel_(), getSharedResourcesAcquirer(), and setSharedResourcesAcquirer().