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

Public Member Functions

 SortDigits (const LArOnlineID *onlineHelper)
 
bool operator() (LArDigit *a, LArDigit *b)
 

Private Attributes

const LArOnlineIDm_onlineHelper
 

Detailed Description

Definition at line 62 of file ReadTBLArDigits.h.

Constructor & Destructor Documentation

◆ SortDigits()

ReadTBLArDigits::SortDigits::SortDigits ( const LArOnlineID onlineHelper)

Definition at line 13 of file ReadTBLArDigits.cxx.

14 {
15  m_onlineHelper = onlineHelper;
16 }

Member Function Documentation

◆ operator()()

bool ReadTBLArDigits::SortDigits::operator() ( LArDigit a,
LArDigit b 
)
inline

Definition at line 73 of file ReadTBLArDigits.h.

74 {const HWIdentifier chid_a=a->channelID();
75  const HWIdentifier chid_b=b->channelID();
77  return (m_onlineHelper->channel(chid_a) < m_onlineHelper->channel(chid_b));
78  else
79  return (m_onlineHelper->feb_Id(chid_a).get_compact() < m_onlineHelper->feb_Id(chid_b).get_compact());
80 }

Member Data Documentation

◆ m_onlineHelper

const LArOnlineID* ReadTBLArDigits::SortDigits::m_onlineHelper
private

Definition at line 68 of file ReadTBLArDigits.h.


The documentation for this class was generated from the following files:
Identifier::get_compact
value_type get_compact() const
Get the compact id.
ReadTBLArDigits::SortDigits::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition: ReadTBLArDigits.h:68
HWIdentifier
Definition: HWIdentifier.h:13
LArOnlineID_Base::channel
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
Definition: LArOnlineID_Base.cxx:1963
LArOnlineID_Base::feb_Id
HWIdentifier feb_Id(int barrel_ec, int pos_neg, int feedthrough, int slot) const
Create feb_Id from fields.
Definition: LArOnlineID_Base.cxx:1479
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10