ATLAS Offline Software
Loading...
Searching...
No Matches
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}
const LArOnlineID * m_onlineHelper

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();
76 if (m_onlineHelper->feb_Id(chid_a).get_compact() == m_onlineHelper->feb_Id(chid_b).get_compact())
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}
static Double_t a

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: