#include <EventHypothesisLooper.h>
Public Member Functions | |
void | clearCache () |
const T * | get (const reco::Candidate *ptr) |
bool | typeOk (const reco::Candidate *ptr) |
Private Member Functions | |
void | doPtr (const reco::Candidate *ptr) |
Private Attributes | |
const T * | cachePtr_ |
bool | isPtrCached_ |
Definition at line 9 of file EventHypothesisLooper.h.
void pat::eventhypothesis::DynCastCandPtr< T >::clearCache | ( | ) | [inline] |
Definition at line 12 of file EventHypothesisLooper.h.
References pat::eventhypothesis::DynCastCandPtr< T >::isPtrCached_.
{ isPtrCached_ = false; }
void pat::eventhypothesis::DynCastCandPtr< T >::doPtr | ( | const reco::Candidate * | ptr | ) | [private] |
Definition at line 20 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::DynCastCandPtr< T >::typeOk().
{ if (!isPtrCached_) { cachePtr_ = dynamic_cast<const T *>(ptr); isPtrCached_ = true; } }
const T * pat::eventhypothesis::DynCastCandPtr< T >::get | ( | const reco::Candidate * | ptr | ) |
Definition at line 27 of file EventHypothesisLooper.h.
References Exception, and mergeVDriftHistosByStation::name.
bool pat::eventhypothesis::DynCastCandPtr< T >::typeOk | ( | const reco::Candidate * | ptr | ) | [inline] |
Definition at line 13 of file EventHypothesisLooper.h.
References pat::eventhypothesis::DynCastCandPtr< T >::cachePtr_, and pat::eventhypothesis::DynCastCandPtr< T >::doPtr().
const T* pat::eventhypothesis::DynCastCandPtr< T >::cachePtr_ [private] |
Definition at line 17 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::DynCastCandPtr< T >::typeOk().
bool pat::eventhypothesis::DynCastCandPtr< T >::isPtrCached_ [private] |
Definition at line 16 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::DynCastCandPtr< T >::clearCache().