CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
pat::eventhypothesis::DynCastCandPtr< T > Class Template Reference

#include <EventHypothesisLooper.h>

Public Member Functions

void clearCache ()
 
const Tget (const reco::Candidate *ptr)
 
bool typeOk (const reco::Candidate *ptr)
 

Private Member Functions

void doPtr (const reco::Candidate *ptr)
 

Private Attributes

const TcachePtr_
 
bool isPtrCached_
 

Detailed Description

template<typename T>
class pat::eventhypothesis::DynCastCandPtr< T >

Definition at line 9 of file EventHypothesisLooper.h.

Member Function Documentation

template<typename T >
void pat::eventhypothesis::DynCastCandPtr< T >::clearCache ( )
inline
template<typename T >
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().

20  {
21  if (!isPtrCached_) {
22  cachePtr_ = dynamic_cast<const T *>(ptr);
23  isPtrCached_ = true;
24  }
25  }
long double T
template<typename T >
const T * pat::eventhypothesis::DynCastCandPtr< T >::get ( const reco::Candidate ptr)
template<typename T >
bool pat::eventhypothesis::DynCastCandPtr< T >::typeOk ( const reco::Candidate ptr)
inline

Member Data Documentation

template<typename T >
const T* pat::eventhypothesis::DynCastCandPtr< T >::cachePtr_
private
template<typename T >
bool pat::eventhypothesis::DynCastCandPtr< T >::isPtrCached_
private