#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 |
Private Attributes | |
EDConsumerBase const * | consumer_ |
ModuleDescription const & | md_ |
Principal const & | principal_ |
SharedResourcesAcquirer * | resourcesAcquirer_ |
Definition at line 127 of file PrincipalGetAdapter.h.
typedef std::vector<BasicHandle> edm::PrincipalGetAdapter::BasicHandleVec |
Definition at line 166 of file PrincipalGetAdapter.h.
PrincipalGetAdapter::PrincipalGetAdapter | ( | Principal const & | pcpl, |
ModuleDescription const & | md | ||
) |
Definition at line 20 of file PrincipalGetAdapter.cc.
PrincipalGetAdapter::~PrincipalGetAdapter | ( | ) |
Definition at line 30 of file PrincipalGetAdapter.cc.
|
delete |
|
private |
Definition at line 143 of file PrincipalGetAdapter.cc.
References edm::Principal::branchType(), and principal_.
Referenced by getByToken_().
|
inline |
Definition at line 316 of file PrincipalGetAdapter.h.
References isComplete().
Referenced by edm::LuminosityBlock::getByLabel(), edm::Run::getByLabel(), edm::OccurrenceForOutput::getByToken(), edm::LuminosityBlock::getByToken(), edm::Run::getByToken(), edm::LuminosityBlock::getManyByType(), and edm::Run::getManyByType().
BranchDescription const & PrincipalGetAdapter::getBranchDescription | ( | TypeID const & | type, |
std::string const & | productInstanceName | ||
) | const |
Definition at line 223 of file PrincipalGetAdapter.cc.
References edm::ProductRegistry::allBranchDescriptions(), assert(), edm::ProductResolverBase::branchDescription(), Exception, edm::TypeID::friendlyClassName(), edm::Principal::getProductResolverByIndex(), edm::ProductResolverIndexHelper::index(), cmsHarvester::index, edm::errors::InsertFailure, md_, edm::ModuleDescription::moduleLabel(), principal_, edm::ModuleDescription::processName(), edm::PRODUCT_TYPE, edm::Principal::productLookup(), edm::Principal::productRegistry(), and edm::ProductResolverIndexInvalid.
Referenced by edm::Event::getRefBeforePut(), edm::LuminosityBlock::put(), edm::Run::put(), and edm::Event::put().
BasicHandle PrincipalGetAdapter::getByLabel_ | ( | TypeID const & | tid, |
InputTag const & | tag, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 148 of file PrincipalGetAdapter.cc.
References consumer_, edm::Principal::getByLabel(), principal_, edm::PRODUCT_TYPE, and resourcesAcquirer_.
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 155 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 164 of file PrincipalGetAdapter.cc.
References branchType(), consumer_, edm::Principal::getByToken(), h, cmsHarvester::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(), edm::LuminosityBlock::getByToken(), edm::Run::getByToken(), and edm::Event::getByToken().
|
inline |
Definition at line 323 of file PrincipalGetAdapter.h.
References edm::convert_handle(), end, getManyByType_(), eostools::move(), PROD, edm::es::products(), mps_fire::result, and mps_update::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 211 of file PrincipalGetAdapter.cc.
References consumer_, edm::Principal::getManyByType(), principal_, and resourcesAcquirer_.
Referenced by getManyByType().
BasicHandle PrincipalGetAdapter::getMatchingSequenceByLabel_ | ( | TypeID const & | typeID, |
InputTag const & | tag, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 187 of file PrincipalGetAdapter.cc.
References consumer_, edm::ELEMENT_TYPE, edm::Principal::getByLabel(), principal_, and resourcesAcquirer_.
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 194 of file PrincipalGetAdapter.cc.
References consumer_, edm::ELEMENT_TYPE, edm::Principal::getByLabel(), h, principal_, and resourcesAcquirer_.
bool PrincipalGetAdapter::isComplete | ( | ) | const |
Definition at line 260 of file PrincipalGetAdapter.cc.
References edm::Principal::isComplete(), and principal_.
Referenced by checkIfComplete(), and edm::OccurrenceForOutput::getByToken().
void PrincipalGetAdapter::labelsForToken | ( | EDGetToken const & | iToken, |
ProductLabels & | oLabels | ||
) | const |
Definition at line 101 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 106 of file PrincipalGetAdapter.cc.
References consumer_, cppFunctionSkipper::exception, HLT_25ns10e33_v2_cff::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_().
|
delete |
|
inline |
Definition at line 161 of file PrincipalGetAdapter.h.
References principal_.
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(), and edm::Event::size().
ProcessHistory const & PrincipalGetAdapter::processHistory | ( | ) | const |
Definition at line 218 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 255 of file PrincipalGetAdapter.cc.
References principal_, and edm::Principal::prodGetter().
Referenced by edm::Event::getRefBeforePut().
|
inline |
Definition at line 139 of file PrincipalGetAdapter.h.
References consumer_.
Referenced by edm::Run::setConsumer(), edm::OccurrenceForOutput::setConsumer(), edm::LuminosityBlock::setConsumer(), and edm::Event::setConsumer().
|
inline |
Definition at line 143 of file PrincipalGetAdapter.h.
References resourcesAcquirer_.
Referenced by edm::Run::setSharedResourcesAcquirer(), edm::LuminosityBlock::setSharedResourcesAcquirer(), and edm::Event::setSharedResourcesAcquirer().
|
private |
Definition at line 129 of file PrincipalGetAdapter.cc.
References consumer_, cppFunctionSkipper::exception, HLT_25ns10e33_v2_cff::labels, edm::EDConsumerBase::labelsForToken(), edm::ProductLabels::module, edm::ProductLabels::process, and edm::ProductLabels::productInstance.
Referenced by getByToken_().
|
private |
Definition at line 236 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), labelsForToken(), makeFailToGetException(), setConsumer(), and throwAmbiguousException().
|
private |
Definition at line 234 of file PrincipalGetAdapter.h.
Referenced by getBranchDescription().
|
private |
Definition at line 230 of file PrincipalGetAdapter.h.
Referenced by branchType(), getBranchDescription(), getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), isComplete(), principal(), processHistory(), and prodGetter().
|
private |
Definition at line 237 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), and setSharedResourcesAcquirer().