#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.
BranchDescription const & PrincipalGetAdapter::getBranchDescription | ( | TypeID const & | type, |
std::string const & | productInstanceName | ||
) | const |
Definition at line 223 of file PrincipalGetAdapter.cc.
References edm::ProductRegistry::allBranchDescriptions(), edm::ProductResolverBase::branchDescription(), Exception, edm::TypeID::friendlyClassName(), edm::Principal::getProductResolverByIndex(), edm::ProductResolverIndexHelper::index(), diffTreeTool::index, edm::errors::InsertFailure, md_, edm::ModuleDescription::moduleLabel(), principal_, edm::ModuleDescription::processName(), edm::PRODUCT_TYPE, edm::Principal::productLookup(), edm::Principal::productRegistry(), edm::ProductResolverIndexInvalid, and harvestTrackValidationPlots::str.
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::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, 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 323 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 211 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 187 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 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 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().
|
private |
Definition at line 106 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_().
|
delete |
|
inline |
Definition at line 161 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(), 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().
|
inline |
Definition at line 139 of file PrincipalGetAdapter.h.
Referenced by edm::OccurrenceForOutput::setConsumer(), edm::LuminosityBlock::setConsumer(), and edm::Event::setConsumer().
|
inline |
Definition at line 143 of file PrincipalGetAdapter.h.
References mps_update::results.
Referenced by edm::LuminosityBlock::setSharedResourcesAcquirer(), and edm::Event::setSharedResourcesAcquirer().
|
private |
Definition at line 129 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 236 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), labelsForToken(), makeFailToGetException(), 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(), processHistory(), and prodGetter().
|
private |
Definition at line 237 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getManyByType_(), and getMatchingSequenceByLabel_().