CMS 3D CMS Logo

Public Member Functions | Private Attributes

CMSInsideOutAlgorithm::ListIteratorLesserByDeltaR Class Reference

#include <CMSInsideOutAlgorithm.h>

List of all members.

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_

Detailed Description

Definition at line 33 of file CMSInsideOutAlgorithm.h.


Constructor & Destructor Documentation

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){}

Member Function Documentation

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_);
            };

Member Data Documentation

Definition at line 41 of file CMSInsideOutAlgorithm.h.

Referenced by operator()().

Definition at line 41 of file CMSInsideOutAlgorithm.h.

Referenced by operator()().