ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::IdentifierByDetElSorter Class Reference

#include <IdentifierByDetElSorter.h>

Collaboration diagram for Muon::IdentifierByDetElSorter:

Public Member Functions

 IdentifierByDetElSorter (const Muon::IMuonIdHelperSvc *idHelperSvc)
bool operator() (const Identifier &a, const Identifier &b) const
template<typename T>
requires hasIdentifyConcept<T>
bool operator() (const T *a, const T *b) const
template<typename T>
requires hasIdentifyConcept<T>
bool operator() (const T &a, const T &b) const

Private Attributes

const Muon::IMuonIdHelperSvcm_idHelperSvc {}

Detailed Description

Definition at line 17 of file IdentifierByDetElSorter.h.

Constructor & Destructor Documentation

◆ IdentifierByDetElSorter()

Muon::IdentifierByDetElSorter::IdentifierByDetElSorter ( const Muon::IMuonIdHelperSvc * idHelperSvc)
inline

Definition at line 19 of file IdentifierByDetElSorter.h.

19 :
20 m_idHelperSvc{idHelperSvc}{}
const Muon::IMuonIdHelperSvc * m_idHelperSvc

Member Function Documentation

◆ operator()() [1/3]

bool Muon::IdentifierByDetElSorter::operator() ( const Identifier & a,
const Identifier & b ) const
inline

Definition at line 22 of file IdentifierByDetElSorter.h.

22 {
23 const Identifier detA = m_idHelperSvc->detElId(a);
24 const Identifier detB = m_idHelperSvc->detElId(b);
25 if (detA != detB){
26 return detA < detB;
27 }
28 return a < b;
29 }
static Double_t a

◆ operator()() [2/3]

template<typename T>
requires hasIdentifyConcept<T>
bool Muon::IdentifierByDetElSorter::operator() ( const T & a,
const T & b ) const
inline

Definition at line 36 of file IdentifierByDetElSorter.h.

36 {
37 return (*this)(a.identify(), b.identify());
38 }

◆ operator()() [3/3]

template<typename T>
requires hasIdentifyConcept<T>
bool Muon::IdentifierByDetElSorter::operator() ( const T * a,
const T * b ) const
inline

Definition at line 31 of file IdentifierByDetElSorter.h.

31 {
32 return (*this)(a->identify(), b->identify());
33 }

Member Data Documentation

◆ m_idHelperSvc

const Muon::IMuonIdHelperSvc* Muon::IdentifierByDetElSorter::m_idHelperSvc {}
private

Definition at line 41 of file IdentifierByDetElSorter.h.

41{};

The documentation for this class was generated from the following file: