ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SortDistToMedian Class Reference
Collaboration diagram for SortDistToMedian:

Public Member Functions

 SortDistToMedian (double median)
 
bool operator() (double a, double b) const
 

Private Attributes

double m_median
 

Detailed Description

Definition at line 26 of file InDetBeamSpotVertex.cxx.

Constructor & Destructor Documentation

◆ SortDistToMedian()

SortDistToMedian::SortDistToMedian ( double  median)
inline

Definition at line 31 of file InDetBeamSpotVertex.cxx.

31 : m_median(median) {}

Member Function Documentation

◆ operator()()

bool SortDistToMedian::operator() ( double  a,
double  b 
) const
inline

Definition at line 33 of file InDetBeamSpotVertex.cxx.

33  {
34  return std::abs(a - m_median) < std::abs(b -m_median);
35  }

Member Data Documentation

◆ m_median

double SortDistToMedian::m_median
private

Definition at line 28 of file InDetBeamSpotVertex.cxx.


The documentation for this class was generated from the following file:
InDet::median
float median(std::vector< float > &Vec)
Definition: BTagVrtSec.cxx:35
SortDistToMedian::m_median
double m_median
Definition: InDetBeamSpotVertex.cxx:28
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10