![]() |
![]() |
#include <CMSInsideOutAlgorithm.h>
Public Member Functions | |
ListIteratorLesserByDeltaR (const double &eta, const double &phi) | |
bool | operator() (const inputListIter &A, const inputListIter &B) const |
Private Attributes | |
double | seedEta_ |
double | seedPhi_ |
Definition at line 33 of file CMSInsideOutAlgorithm.h.
CMSInsideOutAlgorithm::ListIteratorLesserByDeltaR::ListIteratorLesserByDeltaR | ( | const double & | eta, |
const double & | phi | ||
) | [inline] |
Definition at line 34 of file CMSInsideOutAlgorithm.h.
: ListIteratorLesserByDeltaR(const double& eta, const double& phi):seedEta_(eta),seedPhi_(phi){}
bool CMSInsideOutAlgorithm::ListIteratorLesserByDeltaR::operator() | ( | const inputListIter & | A, |
const inputListIter & | B | ||
) | const [inline] |
Definition at line 35 of file CMSInsideOutAlgorithm.h.
References reco::deltaPhi(), Geom::deltaPhi(), Geom::deltaR2(), epsilon, seedEta_, and seedPhi_.
{ double deltaR2A = reco::deltaR2( (*A).eta(), seedEta_, (*A).phi(), seedPhi_ ); double deltaR2B = reco::deltaR2( (*B).eta(), seedEta_, (*B).phi(), seedPhi_ ); return fabs(deltaR2A - deltaR2B) > std::numeric_limits<double>::epsilon() ? deltaR2A < deltaR2B : reco::deltaPhi((*A).phi(), seedPhi_) < reco::deltaPhi((*B).phi(), seedPhi_); };
double CMSInsideOutAlgorithm::ListIteratorLesserByDeltaR::seedEta_ [private] |
Definition at line 41 of file CMSInsideOutAlgorithm.h.
Referenced by operator()().
double CMSInsideOutAlgorithm::ListIteratorLesserByDeltaR::seedPhi_ [private] |
Definition at line 41 of file CMSInsideOutAlgorithm.h.
Referenced by operator()().