#include <PrincipalGetAdapter.h>
Public Types | |
typedef std::vector< BasicHandle > | BasicHandleVec |
Public Member Functions | |
template<typename PROD > | |
bool | checkIfComplete () const |
ConstBranchDescription const & | getBranchDescription (TypeID const &type, std::string const &productInstanceName) const |
BasicHandle | getByLabel_ (TypeID const &tid, InputTag const &tag) const |
BasicHandle | getByLabel_ (TypeID const &tid, std::string const &label, std::string const &instance, std::string const &process) const |
BasicHandle | getByToken_ (TypeID const &id, KindOfType kindOfType, EDGetToken token) const |
template<typename PROD > | |
void | getManyByType (std::vector< Handle< PROD > > &results) const |
void | getManyByType_ (TypeID const &tid, BasicHandleVec &results) const |
BasicHandle | getMatchingSequenceByLabel_ (TypeID const &typeID, InputTag const &tag) const |
BasicHandle | getMatchingSequenceByLabel_ (TypeID const &typeID, std::string const &label, std::string const &instance, std::string const &process) 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 126 of file PrincipalGetAdapter.h.
typedef std::vector<BasicHandle> edm::PrincipalGetAdapter::BasicHandleVec |
Definition at line 161 of file PrincipalGetAdapter.h.
PrincipalGetAdapter::PrincipalGetAdapter | ( | Principal & | pcpl, |
ModuleDescription const & | md | ||
) |
Definition at line 19 of file PrincipalGetAdapter.cc.
PrincipalGetAdapter::~PrincipalGetAdapter | ( | ) |
Definition at line 26 of file PrincipalGetAdapter.cc.
|
delete |
|
private |
Definition at line 137 of file PrincipalGetAdapter.cc.
|
inline |
Definition at line 303 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().
ConstBranchDescription const & PrincipalGetAdapter::getBranchDescription | ( | TypeID const & | type, |
std::string const & | productInstanceName | ||
) | const |
Definition at line 205 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 | ||
) | const |
Definition at line 142 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 | ||
) | const |
Definition at line 148 of file PrincipalGetAdapter.cc.
References edm::PRODUCT_TYPE.
BasicHandle PrincipalGetAdapter::getByToken_ | ( | TypeID const & | id, |
KindOfType | kindOfType, | ||
EDGetToken | token | ||
) | const |
Definition at line 156 of file PrincipalGetAdapter.cc.
References h, getHLTprescales::index, edm::InEvent, edm::BasicHandle::isValid(), edm::ProductHolderIndexAmbiguous, edm::ProductHolderIndexInvalid, edm::throwAmbiguousException(), unlikely, and edm::EDGetToken::willSkipCurrentProcess().
Referenced by edm::LuminosityBlock::getByToken(), edm::Run::getByToken(), and edm::Event::getByToken().
|
inline |
Definition at line 310 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 | ||
) | const |
Definition at line 194 of file PrincipalGetAdapter.cc.
Referenced by getManyByType().
BasicHandle PrincipalGetAdapter::getMatchingSequenceByLabel_ | ( | TypeID const & | typeID, |
InputTag const & | tag | ||
) | const |
Definition at line 176 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 | ||
) | const |
Definition at line 182 of file PrincipalGetAdapter.cc.
References edm::ELEMENT_TYPE.
bool PrincipalGetAdapter::isComplete | ( | ) | const |
|
private |
Definition at line 104 of file PrincipalGetAdapter.cc.
References cppFunctionSkipper::exception, edm::hlt::Exception, reco_calib_source_client_cfg::labels, edm::EDConsumerBase::Labels::module, edm::EDConsumerBase::Labels::process, edm::PRODUCT_TYPE, edm::EDConsumerBase::Labels::productInstance, and edm::errors::ProductNotFound.
|
delete |
|
inline |
Definition at line 155 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 200 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 138 of file PrincipalGetAdapter.h.
References consumer_.
Referenced by edm::Run::setConsumer(), edm::LuminosityBlock::setConsumer(), and edm::Event::setConsumer().
|
private |
Definition at line 123 of file PrincipalGetAdapter.cc.
References cppFunctionSkipper::exception, reco_calib_source_client_cfg::labels, edm::EDConsumerBase::Labels::module, edm::EDConsumerBase::Labels::process, and edm::EDConsumerBase::Labels::productInstance.
|
private |
Definition at line 223 of file PrincipalGetAdapter.h.
Referenced by setConsumer().
|
private |
Definition at line 221 of file PrincipalGetAdapter.h.
|
private |
Definition at line 217 of file PrincipalGetAdapter.h.
Referenced by principal().