#include <IsolationEstimators.hh>
Definition at line 16 of file IsolationEstimators.hh.
Public Member Functions | |
virtual | ~IsolationEstimator () |
virtual double | estimate (const T &t, const C &c) const =0 |
virtual int | compare (const IsolationEstimator< T, C > *other) const =0 |
virtual bool | before (const IsolationEstimator *other) const |
bool | operator< (const IsolationEstimator &other) const |
virtual ~IsolationEstimator | ( | ) | [inline, virtual] |
virtual double estimate | ( | const T & | t, | |
const C & | c | |||
) | const [pure virtual] |
Implemented in PtInConeEstimator, and MultiplicityInConeEstimator.
virtual int compare | ( | const IsolationEstimator< T, C > * | other | ) | const [pure virtual] |
Implemented in PtInConeEstimator, and MultiplicityInConeEstimator.
Referenced by IsolationEstimator::before().
virtual bool before | ( | const IsolationEstimator< T, C > * | other | ) | const [inline, virtual] |
Definition at line 26 of file IsolationEstimators.hh.
References IsolationEstimator::compare().
Referenced by IsolationEstimator::operator<().
00026 { 00027 const std::type_info & thisid = typeid(*this); 00028 const std::type_info & otherid = typeid(*other); 00029 if (thisid == otherid) { 00030 return compare(other) < 0; 00031 } else { 00032 return thisid.before(otherid); 00033 } 00034 }
bool operator< | ( | const IsolationEstimator< T, C > & | other | ) | const [inline] |
Definition at line 36 of file IsolationEstimators.hh.
References IsolationEstimator::before().
00036 { 00037 return this->before(&other); 00038 }