#include <EDConsumerBase.h>
Classes | |
struct | LabelPlacement |
struct | Labels |
struct | TokenLookupInfo |
Public Member Functions | |
EDConsumerBase () | |
ProductHolderIndex | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Protected Member Functions | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Private Types | |
enum | { kLookupInfo, kAlwaysGets, kLabels, kKind } |
Private Member Functions | |
EDConsumerBase (const EDConsumerBase &)=delete | |
const EDConsumerBase & | operator= (const EDConsumerBase &)=delete |
unsigned int | recordConsumes (BranchType iBranch, TypeToGet const &iType, edm::InputTag const &iTag, bool iAlwaysGets) |
void | throwBadToken (edm::TypeID const &iType, EDGetToken iToken) const |
void | throwBranchMismatch (BranchType, EDGetToken) const |
void | throwTypeMismatch (edm::TypeID const &, EDGetToken) const |
Private Attributes | |
edm::SoATuple< TokenLookupInfo, bool, LabelPlacement, edm::KindOfType > | m_tokenInfo |
std::vector< char > | m_tokenLabels |
Friends | |
class | ConsumesCollector |
Definition at line 42 of file EDConsumerBase.h.
|
private |
Enumerator | |
---|---|
kLookupInfo | |
kAlwaysGets | |
kLabels | |
kKind |
Definition at line 155 of file EDConsumerBase.h.
|
inline |
Definition at line 46 of file EDConsumerBase.h.
|
virtual |
Definition at line 47 of file EDConsumerBase.cc.
|
privatedelete |
|
inlineprotected |
Definition at line 74 of file EDConsumerBase.h.
References recordConsumes(), and edm::InputTag::willSkipCurrentProcess().
Referenced by edm::ConsumesCollector::consumes(), and edm::OutputModule::selectProducts().
|
inlineprotected |
Definition at line 79 of file EDConsumerBase.h.
References edm::InEvent, recordConsumes(), and edm::InputTag::willSkipCurrentProcess().
|
inlineprotected |
Definition at line 84 of file EDConsumerBase.h.
References recordConsumes(), and edm::InputTag::willSkipCurrentProcess().
|
protected |
Use a ConsumesCollector to gather consumes information from helper functions.
Definition at line 67 of file EDConsumerBase.cc.
References trackerHits::c.
|
inlineprotected |
Definition at line 105 of file EDConsumerBase.h.
Referenced by edm::ConsumesCollector::consumesMany().
|
inlineprotected |
Definition at line 111 of file EDConsumerBase.h.
|
inlineprotected |
Definition at line 116 of file EDConsumerBase.h.
References recordConsumes().
ProductHolderIndex EDConsumerBase::indexFrom | ( | EDGetToken | iToken, |
BranchType | iBranch, | ||
TypeID const & | iType | ||
) | const |
Definition at line 172 of file EDConsumerBase.cc.
References edm::EDGetToken::index(), info, kLookupInfo, likely, m_tokenInfo, edm::ProductHolderIndexInvalid, throwBadToken(), throwBranchMismatch(), throwTypeMismatch(), and unlikely.
void EDConsumerBase::itemsMayGet | ( | BranchType | iBranch, |
std::vector< ProductHolderIndex > & | oIndices | ||
) | const |
Definition at line 227 of file EDConsumerBase.cc.
References prof2calltree::count, kAlwaysGets, kLookupInfo, m_tokenInfo, and edm::ProductHolderIndexInvalid.
void EDConsumerBase::itemsToGet | ( | BranchType | iBranch, |
std::vector< ProductHolderIndex > & | oIndices | ||
) | const |
Definition at line 191 of file EDConsumerBase.cc.
References prof2calltree::count, kAlwaysGets, kLookupInfo, m_tokenInfo, and edm::ProductHolderIndexInvalid.
void EDConsumerBase::labelsForToken | ( | EDGetToken | iToken, |
Labels & | oLabels | ||
) | const |
Definition at line 263 of file EDConsumerBase.cc.
References edm::EDGetToken::index(), getHLTprescales::index, kLabels, reco_calib_source_client_cfg::labels, m_tokenInfo, m_tokenLabels, edm::EDConsumerBase::Labels::module, edm::EDConsumerBase::Labels::process, edm::EDConsumerBase::Labels::productInstance, and dqm_diff::start.
|
inlineprotected |
Definition at line 89 of file EDConsumerBase.h.
References recordConsumes(), and edm::InputTag::willSkipCurrentProcess().
Referenced by edm::ConsumesCollector::mayConsume().
|
inlineprotected |
|
inlineprotected |
Definition at line 100 of file EDConsumerBase.h.
References recordConsumes(), and edm::InputTag::willSkipCurrentProcess().
|
privatedelete |
|
private |
Definition at line 74 of file EDConsumerBase.cc.
References getHLTprescales::index, edm::InputTag::instance(), edm::TypeToGet::kind(), edm::InputTag::label(), m, m_tokenInfo, m_tokenLabels, edm::InputTag::process(), edm::ProductHolderIndexInvalid, AlCaHLTBitMon_QueryRunRegistry::string, edm::TypeToGet::type(), and edm::InputTag::willSkipCurrentProcess().
Referenced by consumes(), consumesMany(), and mayConsume().
|
private |
Definition at line 285 of file EDConsumerBase.cc.
References edm::TypeID::className(), edm::hlt::Exception, edm::EDGetToken::index(), and edm::EDGetToken::isUnitialized().
Referenced by indexFrom().
|
private |
Definition at line 280 of file EDConsumerBase.cc.
References edm::BranchTypeToString(), edm::hlt::Exception, edm::EDGetToken::index(), kLookupInfo, and m_tokenInfo.
Referenced by indexFrom().
|
private |
Definition at line 275 of file EDConsumerBase.cc.
References edm::TypeID::className(), edm::hlt::Exception, edm::EDGetToken::index(), kLookupInfo, and m_tokenInfo.
Referenced by indexFrom().
void EDConsumerBase::updateLookup | ( | BranchType | iBranchType, |
ProductHolderIndexHelper const & | iHelper | ||
) |
Definition at line 118 of file EDConsumerBase.cc.
References i, getHLTprescales::index, edm::ProductHolderIndexHelper::index(), info, j, kAlwaysGets, kKind, kLabels, kLookupInfo, reco_calib_source_client_cfg::labels, m_tokenInfo, m_tokenLabels, edm::ProductHolderIndexInvalid, and edm::ProductHolderIndexHelper::relatedIndexes().
|
friend |
Definition at line 69 of file EDConsumerBase.h.
|
private |
Definition at line 156 of file EDConsumerBase.h.
Referenced by indexFrom(), itemsMayGet(), itemsToGet(), labelsForToken(), recordConsumes(), throwBranchMismatch(), throwTypeMismatch(), and updateLookup().
|
private |
Definition at line 160 of file EDConsumerBase.h.
Referenced by labelsForToken(), recordConsumes(), and updateLookup().