CMS 3D CMS Logo

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 10 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
template<typename T >
const T * pat::eventhypothesis::DynCastCandPtr< T >::get ( const reco::Candidate ptr)

Definition at line 28 of file EventHypothesisLooper.h.

References pat::eventhypothesis::DynCastCandPtr< T >::cachePtr_, pat::eventhypothesis::DynCastCandPtr< T >::doPtr(), Exception, and dataset::name.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), util.rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().

28  {
29  doPtr(ptr);
30  if ((ptr != nullptr) && (cachePtr_ == 0)) throw cms::Exception("Type Checking") <<
31  "You can't convert a " << typeid(*ptr).name() << " to a " << typeid(T).name() << "\n" <<
32  "note: you can use c++filt command to convert the above in human readable types.\n";
33  return cachePtr_;
34  }
void doPtr(const reco::Candidate *ptr)
long double T
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