#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 132 of file PrincipalGetAdapter.h.
typedef std::vector<BasicHandle> edm::PrincipalGetAdapter::BasicHandleVec |
Definition at line 173 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 135 of file PrincipalGetAdapter.cc.
References edm::Principal::branchType(), and principal_.
Referenced by getByToken_(), and transition().
|
inline |
Definition at line 314 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(), edm::Run::getHandle(), edm::Run::getManyByType(), and edm::LuminosityBlock::getManyByType().
BranchDescription const & PrincipalGetAdapter::getBranchDescription | ( | TypeID const & | type, |
std::string const & | productInstanceName | ||
) | const |
Definition at line 224 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 237 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 137 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 143 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 151 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::ProcessBlock::getHandle(), edm::OccurrenceForOutput::getHandle(), edm::LuminosityBlock::getHandle(), edm::Run::getHandle(), and edm::Event::getHandle().
|
inline |
Definition at line 144 of file PrincipalGetAdapter.h.
References consumer_.
Referenced by edm::Event::fillLuminosityBlock(), and edm::LuminosityBlock::fillRun().
|
inline |
Definition at line 319 of file PrincipalGetAdapter.h.
References mps_fire::end, getManyByType_(), eostools::move(), PROD, edm::es::products(), and bookConverter::results.
Referenced by edm::LuminosityBlock::getManyByType(), edm::Run::getManyByType(), and edm::Event::getManyByType().
void PrincipalGetAdapter::getManyByType_ | ( | TypeID const & | tid, |
BasicHandleVec & | results, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 191 of file PrincipalGetAdapter.cc.
References consumer_, edm::Principal::getManyByType(), principal_, resourcesAcquirer_, and bookConverter::results.
Referenced by getManyByType().
BasicHandle PrincipalGetAdapter::getMatchingSequenceByLabel_ | ( | TypeID const & | typeID, |
InputTag const & | tag, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 176 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 182 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 244 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 271 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 147 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 289 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 153 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 84 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 92 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 177 of file PrincipalGetAdapter.h.
References md_.
Referenced by edm::Event::fillLuminosityBlock(), and edm::LuminosityBlock::fillRun().
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 165 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 88 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 197 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 301 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 285 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 293 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 297 of file PrincipalGetAdapter.cc.
References prodBase_, and edm::ProducerBase::recordProvenanceList().
Referenced by edm::Event::commit_aux(), and edm::Event::setProducer().
|
inline |
Definition at line 143 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 149 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 146 of file PrincipalGetAdapter.h.
References resourcesAcquirer_.
Referenced by edm::Run::setSharedResourcesAcquirer(), edm::LuminosityBlock::setSharedResourcesAcquirer(), and edm::Event::setSharedResourcesAcquirer().
|
private |
Definition at line 120 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 199 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 253 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 246 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getConsumer(), getManyByType_(), getMatchingSequenceByLabel_(), labelsForToken(), makeFailToGetException(), numberOfProductsConsumed(), setConsumer(), and throwAmbiguousException().
|
private |
Definition at line 249 of file PrincipalGetAdapter.h.
Referenced by isComplete().
|
private |
Definition at line 244 of file PrincipalGetAdapter.h.
Referenced by getBranchDescription(), moduleDescription(), and throwUnregisteredPutException().
|
private |
Definition at line 240 of file PrincipalGetAdapter.h.
Referenced by branchType(), getBranchDescription(), getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), getProductID(), principal(), processBlockIndex(), processHistory(), prodGetter(), and throwUnregisteredPutException().
|
private |
Definition at line 248 of file PrincipalGetAdapter.h.
Referenced by getBranchDescription(), getProductID(), getPutTokenIndex(), getTypeIDForPutTokenIndex(), productInstanceLabel(), putTokenIndexToProductResolverIndex(), recordProvenanceList(), and setProducer().
|
private |
Definition at line 247 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), getSharedResourcesAcquirer(), and setSharedResourcesAcquirer().