ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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 >
bool operator() (const T *a, const T *b) const requires hasIdentifyConcept< T >
 
template<typename T >
bool operator() (const T &a, const T &b) const requires hasIdentifyConcept< T >
 

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

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  }

◆ operator()() [2/3]

template<typename 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 >
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.


The documentation for this class was generated from the following file:
Muon::IMuonIdHelperSvc::detElId
virtual Identifier detElId(const Identifier &id) const =0
create a detector element ID
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10
Muon::IdentifierByDetElSorter::m_idHelperSvc
const Muon::IMuonIdHelperSvc * m_idHelperSvc
Definition: IdentifierByDetElSorter.h:41
Identifier
Definition: IdentifierFieldParser.cxx:14