ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Muon::SortByDirectionMuPatHits Class Reference

Default for both collision and cosmic parameter sorting. More...

#include <SortMuPatHits.h>

Collaboration diagram for Muon::SortByDirectionMuPatHits:

Public Member Functions

 SortByDirectionMuPatHits (const Trk::TrackParameters &refPars)
 
bool operator() (const Trk::MeasurementBase *meas1, const Trk::MeasurementBase *meas2) const
 
bool operator() (const Trk::MeasurementBase &meas1, const Trk::MeasurementBase &meas2) const
 
bool operator() (const MuPatHitPtr &hit1, const MuPatHitPtr &hit2) const
 
bool operator() (const MuPatHit *hit1, const MuPatHit *hit2) const
 
bool operator() (const Trk::TrackParameters *pars1, const Trk::TrackParameters *pars2) const
 
bool operator() (const Trk::TrackParameters &pars1, const Trk::TrackParameters &pars2) const
 

Private Attributes

const Trk::TrackParametersm_ref
 

Detailed Description

Default for both collision and cosmic parameter sorting.

Definition at line 97 of file SortMuPatHits.h.

Constructor & Destructor Documentation

◆ SortByDirectionMuPatHits()

Muon::SortByDirectionMuPatHits::SortByDirectionMuPatHits ( const Trk::TrackParameters refPars)
inline

Definition at line 99 of file SortMuPatHits.h.

99  :
100  m_ref(refPars) {}

Member Function Documentation

◆ operator()() [1/6]

bool Muon::SortByDirectionMuPatHits::operator() ( const MuPatHit hit1,
const MuPatHit hit2 
) const
inline

Definition at line 113 of file SortMuPatHits.h.

113  {
114  return operator()(hit1->parameters(),hit2->parameters());
115  }

◆ operator()() [2/6]

bool Muon::SortByDirectionMuPatHits::operator() ( const MuPatHitPtr hit1,
const MuPatHitPtr hit2 
) const
inline

Definition at line 110 of file SortMuPatHits.h.

110  {
111  return operator()(hit1->parameters(),hit2->parameters());
112  }

◆ operator()() [3/6]

bool Muon::SortByDirectionMuPatHits::operator() ( const Trk::MeasurementBase meas1,
const Trk::MeasurementBase meas2 
) const
inline

Definition at line 105 of file SortMuPatHits.h.

105  {
106  static const DistanceAlongParameters parsSorter{};
107  return parsSorter(m_ref, meas1) < parsSorter(m_ref, meas2);
108  }

◆ operator()() [4/6]

bool Muon::SortByDirectionMuPatHits::operator() ( const Trk::MeasurementBase meas1,
const Trk::MeasurementBase meas2 
) const
inline

Definition at line 102 of file SortMuPatHits.h.

102  {
103  return operator()(*meas1,*meas2);
104  }

◆ operator()() [5/6]

bool Muon::SortByDirectionMuPatHits::operator() ( const Trk::TrackParameters pars1,
const Trk::TrackParameters pars2 
) const
inline

Definition at line 119 of file SortMuPatHits.h.

119  {
120  static const DistanceAlongParameters parsSorter{};
121  return parsSorter(m_ref, pars1) < parsSorter(m_ref, pars2);
122  }

◆ operator()() [6/6]

bool Muon::SortByDirectionMuPatHits::operator() ( const Trk::TrackParameters pars1,
const Trk::TrackParameters pars2 
) const
inline

Definition at line 116 of file SortMuPatHits.h.

116  {
117  return operator()(*pars1,*pars2);
118  }

Member Data Documentation

◆ m_ref

const Trk::TrackParameters& Muon::SortByDirectionMuPatHits::m_ref
private

Definition at line 127 of file SortMuPatHits.h.


The documentation for this class was generated from the following file:
Muon::SortByDirectionMuPatHits::m_ref
const Trk::TrackParameters & m_ref
Definition: SortMuPatHits.h:127
Muon::SortByDirectionMuPatHits::operator()
bool operator()(const Trk::MeasurementBase *meas1, const Trk::MeasurementBase *meas2) const
Definition: SortMuPatHits.h:102