#include <PrincipalGetAdapter.h>
Public Types | |
typedef std::vector< BasicHandle > | BasicHandleVec |
Public Member Functions | |
template<typename PROD > | |
bool | checkIfComplete () const |
BranchDescription const & | getBranchDescription (TypeID const &type, std::string const &productInstanceName) const |
BasicHandle | getByLabel_ (TypeID const &tid, InputTag const &tag, ModuleCallingContext const *mcc) const |
BasicHandle | getByLabel_ (TypeID const &tid, std::string const &label, std::string const &instance, std::string const &process, ModuleCallingContext const *mcc) const |
BasicHandle | getByToken_ (TypeID const &id, KindOfType kindOfType, EDGetToken token, ModuleCallingContext const *mcc) const |
template<typename PROD > | |
void | getManyByType (std::vector< Handle< PROD > > &results, ModuleCallingContext const *mcc) const |
void | getManyByType_ (TypeID const &tid, BasicHandleVec &results, ModuleCallingContext const *mcc) const |
BasicHandle | getMatchingSequenceByLabel_ (TypeID const &typeID, InputTag const &tag, ModuleCallingContext const *mcc) const |
BasicHandle | getMatchingSequenceByLabel_ (TypeID const &typeID, std::string const &label, std::string const &instance, std::string const &process, ModuleCallingContext const *mcc) const |
bool | isComplete () const |
void | labelsForToken (EDGetToken const &iToken, ProductLabels &oLabels) const |
PrincipalGetAdapter & | operator= (PrincipalGetAdapter const &)=delete |
Principal & | principal () |
Principal const & | principal () const |
PrincipalGetAdapter (Principal &pcpl, ModuleDescription const &md) | |
PrincipalGetAdapter (PrincipalGetAdapter const &)=delete | |
ProcessHistory const & | processHistory () const |
EDProductGetter const * | prodGetter () const |
void | setConsumer (EDConsumerBase const *iConsumer) |
~PrincipalGetAdapter () | |
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 & | principal_ |
Definition at line 127 of file PrincipalGetAdapter.h.
typedef std::vector<BasicHandle> edm::PrincipalGetAdapter::BasicHandleVec |
Definition at line 162 of file PrincipalGetAdapter.h.
PrincipalGetAdapter::PrincipalGetAdapter | ( | Principal & | pcpl, |
ModuleDescription const & | md | ||
) |
Definition at line 20 of file PrincipalGetAdapter.cc.
PrincipalGetAdapter::~PrincipalGetAdapter | ( | ) |
Definition at line 29 of file PrincipalGetAdapter.cc.
|
delete |
|
private |
Definition at line 142 of file PrincipalGetAdapter.cc.
References edm::Principal::branchType(), and principal_.
Referenced by getByToken_().
|
inline |
Definition at line 312 of file PrincipalGetAdapter.h.
References isComplete().
Referenced by edm::LuminosityBlock::getByLabel(), edm::Run::getByLabel(), 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 221 of file PrincipalGetAdapter.cc.
References assert(), edm::ProductHolderBase::branchDescription(), edm::hlt::Exception, edm::TypeID::friendlyClassName(), edm::Principal::getProductHolderByIndex(), edm::ProductHolderIndexHelper::index(), cmsHarvester::index, edm::errors::InsertFailure, md_, edm::ModuleDescription::moduleLabel(), principal_, edm::ModuleDescription::processName(), edm::PRODUCT_TYPE, edm::ProductHolderIndexInvalid, edm::Principal::productLookup(), and edm::Principal::productRegistry().
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 147 of file PrincipalGetAdapter.cc.
References consumer_, edm::Principal::getByLabel(), principal_, and edm::PRODUCT_TYPE.
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 154 of file PrincipalGetAdapter.cc.
References consumer_, edm::Principal::getByLabel(), principal_, and edm::PRODUCT_TYPE.
BasicHandle PrincipalGetAdapter::getByToken_ | ( | TypeID const & | id, |
KindOfType | kindOfType, | ||
EDGetToken | token, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 163 of file PrincipalGetAdapter.cc.
References branchType(), consumer_, edm::Principal::getByToken(), h, cmsHarvester::index, edm::EDConsumerBase::indexFrom(), edm::BasicHandle::isValid(), makeFailToGetException(), principal_, edm::ProductHolderIndexAndSkipBit::productHolderIndex(), edm::ProductHolderIndexAmbiguous, edm::ProductHolderIndexInvalid, edm::ProductHolderIndexAndSkipBit::skipCurrentProcess(), throwAmbiguousException(), and unlikely.
Referenced by edm::LuminosityBlock::getByToken(), edm::Run::getByToken(), and edm::Event::getByToken().
|
inline |
Definition at line 319 of file PrincipalGetAdapter.h.
References edm::convert_handle(), end, getManyByType_(), PROD, edm::es::products(), query::result, and python.entryComment::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 209 of file PrincipalGetAdapter.cc.
References consumer_, edm::Principal::getManyByType(), and principal_.
Referenced by getManyByType().
BasicHandle PrincipalGetAdapter::getMatchingSequenceByLabel_ | ( | TypeID const & | typeID, |
InputTag const & | tag, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 186 of file PrincipalGetAdapter.cc.
References consumer_, edm::ELEMENT_TYPE, edm::Principal::getByLabel(), and principal_.
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 193 of file PrincipalGetAdapter.cc.
References consumer_, edm::ELEMENT_TYPE, edm::Principal::getByLabel(), h, and principal_.
bool PrincipalGetAdapter::isComplete | ( | ) | const |
Definition at line 249 of file PrincipalGetAdapter.cc.
References edm::Principal::isComplete(), and principal_.
Referenced by checkIfComplete().
void PrincipalGetAdapter::labelsForToken | ( | EDGetToken const & | iToken, |
ProductLabels & | oLabels | ||
) | const |
Definition at line 100 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 105 of file PrincipalGetAdapter.cc.
References consumer_, cppFunctionSkipper::exception, HLT_25ns14e33_v1_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 156 of file PrincipalGetAdapter.h.
References principal_.
Referenced by edm::Event::eventPrincipal(), edm::Event::getAllProvenance(), edm::Event::getProvenance(), edm::LuminosityBlock::luminosityBlockPrincipal(), edm::Event::productGetter(), edm::Run::runPrincipal(), and edm::Event::size().
|
inline |
ProcessHistory const & PrincipalGetAdapter::processHistory | ( | ) | const |
Definition at line 216 of file PrincipalGetAdapter.cc.
References principal_, and edm::Principal::processHistory().
Referenced by edm::LuminosityBlock::processHistory(), edm::Run::processHistory(), and edm::Event::processHistory().
EDProductGetter const * PrincipalGetAdapter::prodGetter | ( | ) | const |
Definition at line 244 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::LuminosityBlock::setConsumer(), and edm::Event::setConsumer().
|
private |
Definition at line 128 of file PrincipalGetAdapter.cc.
References consumer_, cppFunctionSkipper::exception, HLT_25ns14e33_v1_cff::labels, edm::EDConsumerBase::labelsForToken(), edm::ProductLabels::module, edm::ProductLabels::process, and edm::ProductLabels::productInstance.
Referenced by getByToken_().
|
private |
Definition at line 232 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), labelsForToken(), makeFailToGetException(), setConsumer(), and throwAmbiguousException().
|
private |
Definition at line 230 of file PrincipalGetAdapter.h.
Referenced by getBranchDescription().
|
private |
Definition at line 226 of file PrincipalGetAdapter.h.
Referenced by branchType(), getBranchDescription(), getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), isComplete(), principal(), processHistory(), and prodGetter().