#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 |
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 125 of file PrincipalGetAdapter.h.
typedef std::vector<BasicHandle> edm::PrincipalGetAdapter::BasicHandleVec |
Definition at line 160 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 137 of file PrincipalGetAdapter.cc.
References edm::Principal::branchType(), and principal_.
Referenced by getByToken_().
|
inline |
Definition at line 308 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 216 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 142 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 149 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 158 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 315 of file PrincipalGetAdapter.h.
References edm::convert_handle(), end, getManyByType_(), eostools::move(), 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 204 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 181 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 188 of file PrincipalGetAdapter.cc.
References consumer_, edm::ELEMENT_TYPE, edm::Principal::getByLabel(), h, and principal_.
bool PrincipalGetAdapter::isComplete | ( | ) | const |
Definition at line 244 of file PrincipalGetAdapter.cc.
References edm::Principal::isComplete(), and principal_.
Referenced by checkIfComplete().
|
private |
Definition at line 100 of file PrincipalGetAdapter.cc.
References consumer_, cppFunctionSkipper::exception, HLT_25ns14e33_v1_cff::labels, edm::EDConsumerBase::labelsForToken(), edm::makeHandleExceptionFactory(), edm::EDConsumerBase::Labels::module, edm::EDConsumerBase::Labels::process, edm::PRODUCT_TYPE, edm::EDConsumerBase::Labels::productInstance, and edm::errors::ProductNotFound.
Referenced by getByToken_().
|
delete |
|
inline |
Definition at line 154 of file PrincipalGetAdapter.h.
References principal_.
Referenced by edm::Event::eventPrincipal(), edm::Event::getAllProvenance(), edm::Event::getProvenance(), edm::LuminosityBlock::luminosityBlockPrincipal(), edm::Run::runPrincipal(), and edm::Event::size().
|
inline |
ProcessHistory const & PrincipalGetAdapter::processHistory | ( | ) | const |
Definition at line 211 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 239 of file PrincipalGetAdapter.cc.
References principal_, and edm::Principal::prodGetter().
Referenced by edm::Event::getRefBeforePut().
|
inline |
Definition at line 137 of file PrincipalGetAdapter.h.
References consumer_.
Referenced by edm::Run::setConsumer(), edm::Event::setConsumer(), and edm::LuminosityBlock::setConsumer().
|
private |
Definition at line 123 of file PrincipalGetAdapter.cc.
References consumer_, cppFunctionSkipper::exception, HLT_25ns14e33_v1_cff::labels, edm::EDConsumerBase::labelsForToken(), edm::EDConsumerBase::Labels::module, edm::EDConsumerBase::Labels::process, and edm::EDConsumerBase::Labels::productInstance.
Referenced by getByToken_().
|
private |
Definition at line 228 of file PrincipalGetAdapter.h.
Referenced by getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), makeFailToGetException(), setConsumer(), and throwAmbiguousException().
|
private |
Definition at line 226 of file PrincipalGetAdapter.h.
Referenced by getBranchDescription().
|
private |
Definition at line 222 of file PrincipalGetAdapter.h.
Referenced by branchType(), getBranchDescription(), getByLabel_(), getByToken_(), getManyByType_(), getMatchingSequenceByLabel_(), isComplete(), principal(), processHistory(), and prodGetter().