ATLAS Offline Software
Public Member Functions | List of all members
TrkDriftCircleMath::SortDcsByY Struct Reference

#include <SortDcsByY.h>

Collaboration diagram for TrkDriftCircleMath::SortDcsByY:

Public Member Functions

bool operator() (const DriftCircle &dc1, const DriftCircle &dc2) const
 

Detailed Description

Definition at line 17 of file SortDcsByY.h.

Member Function Documentation

◆ operator()()

bool TrkDriftCircleMath::SortDcsByY::operator() ( const DriftCircle dc1,
const DriftCircle dc2 
) const
inline

Definition at line 18 of file SortDcsByY.h.

18  {
19  if (dc1.id() == dc2.id()) return false;
20  if (CxxUtils::fpcompare::less(dc1.y(), dc2.y())) return true;
21  if (CxxUtils::fpcompare::less(dc2.y(), dc1.y())) return false;
22  return CxxUtils::fpcompare::less(dc1.x(), dc2.x());
23  }

The documentation for this struct was generated from the following file:
CxxUtils::fpcompare::less
bool less(double a, double b)
Compare two FP numbers, working around x87 precision issues.
Definition: fpcompare.h:166