#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 128 of file PrincipalGetAdapter.h.
typedef std::vector<BasicHandle> edm::PrincipalGetAdapter::BasicHandleVec |
Definition at line 163 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 144 of file PrincipalGetAdapter.cc.
|
inline |
Definition at line 311 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 223 of file PrincipalGetAdapter.cc.
References edm::ProductHolderBase::branchDescription(), edm::hlt::Exception, edm::TypeID::friendlyClassName(), getHLTprescales::index, edm::ProductHolderIndexHelper::index(), edm::errors::InsertFailure, edm::PRODUCT_TYPE, and edm::ProductHolderIndexInvalid.
Referenced by edm::Event::getRefBeforePut(), edm::Run::put(), edm::LuminosityBlock::put(), and edm::Event::put().
BasicHandle PrincipalGetAdapter::getByLabel_ | ( | TypeID const & | tid, |
InputTag const & | tag, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 149 of file PrincipalGetAdapter.cc.
References 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 156 of file PrincipalGetAdapter.cc.
References edm::PRODUCT_TYPE.
BasicHandle PrincipalGetAdapter::getByToken_ | ( | TypeID const & | id, |
KindOfType | kindOfType, | ||
EDGetToken | token, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 165 of file PrincipalGetAdapter.cc.
References revisionDML::branchType(), h, getHLTprescales::index, edm::BasicHandle::isValid(), edm::ProductHolderIndexAndSkipBit::productHolderIndex(), edm::ProductHolderIndexAmbiguous, edm::ProductHolderIndexInvalid, edm::ProductHolderIndexAndSkipBit::skipCurrentProcess(), edm::throwAmbiguousException(), and unlikely.
Referenced by edm::LuminosityBlock::getByToken(), edm::Run::getByToken(), and edm::Event::getByToken().
|
inline |
Definition at line 318 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 211 of file PrincipalGetAdapter.cc.
Referenced by getManyByType().
BasicHandle PrincipalGetAdapter::getMatchingSequenceByLabel_ | ( | TypeID const & | typeID, |
InputTag const & | tag, | ||
ModuleCallingContext const * | mcc | ||
) | const |
Definition at line 188 of file PrincipalGetAdapter.cc.
References edm::ELEMENT_TYPE.
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 195 of file PrincipalGetAdapter.cc.
References edm::ELEMENT_TYPE, and h.
bool PrincipalGetAdapter::isComplete | ( | ) | const |
|
private |
Definition at line 107 of file PrincipalGetAdapter.cc.
References cppFunctionSkipper::exception, tablePrinter::labels, edm::makeHandleExceptionFactory(), edm::EDConsumerBase::Labels::module, edm::EDConsumerBase::Labels::process, edm::PRODUCT_TYPE, edm::EDConsumerBase::Labels::productInstance, and edm::errors::ProductNotFound.
|
delete |
|
inline |
Definition at line 157 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 218 of file PrincipalGetAdapter.cc.
Referenced by edm::LuminosityBlock::processHistory(), edm::Run::processHistory(), and edm::Event::processHistory().
EDProductGetter const * PrincipalGetAdapter::prodGetter | ( | ) | const |
|
inline |
Definition at line 140 of file PrincipalGetAdapter.h.
References consumer_.
Referenced by edm::Run::setConsumer(), edm::Event::setConsumer(), and edm::LuminosityBlock::setConsumer().
|
private |
Definition at line 130 of file PrincipalGetAdapter.cc.
References cppFunctionSkipper::exception, tablePrinter::labels, edm::EDConsumerBase::Labels::module, edm::EDConsumerBase::Labels::process, and edm::EDConsumerBase::Labels::productInstance.
|
private |
Definition at line 231 of file PrincipalGetAdapter.h.
Referenced by setConsumer().
|
private |
Definition at line 229 of file PrincipalGetAdapter.h.
|
private |
Definition at line 225 of file PrincipalGetAdapter.h.
Referenced by principal().