ATLAS Offline Software
Loading...
Searching...
No Matches
ReadLArDigits::SortDigits Class Reference

CTB: code to read digits. More...

Collaboration diagram for ReadLArDigits::SortDigits:

Public Member Functions

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

Private Attributes

const LArOnlineIDm_onlineHelper

Detailed Description

CTB: code to read digits.

Author
Walter Lampl

Definition at line 76 of file ReadLArDigits.h.

Constructor & Destructor Documentation

◆ SortDigits()

ReadLArDigits::SortDigits::SortDigits ( const LArOnlineID * onlineHelper)

Definition at line 13 of file ReadLArDigits.cxx.

14{m_onlineHelper=onlineHelper;
15}
const LArOnlineID * m_onlineHelper

Member Function Documentation

◆ operator()()

bool ReadLArDigits::SortDigits::operator() ( LArDigit * a,
LArDigit * b )
inline

Definition at line 87 of file ReadLArDigits.h.

88{const HWIdentifier chid_a=a->channelID();
89 const HWIdentifier chid_b=b->channelID();
90 if (m_onlineHelper->feb_Id(chid_a).get_compact() == m_onlineHelper->feb_Id(chid_b).get_compact())
91 return (m_onlineHelper->channel(chid_a) < m_onlineHelper->channel(chid_b));
92 else
93 return (m_onlineHelper->feb_Id(chid_a).get_compact() < m_onlineHelper->feb_Id(chid_b).get_compact());
94}
static Double_t a

Member Data Documentation

◆ m_onlineHelper

const LArOnlineID* ReadLArDigits::SortDigits::m_onlineHelper
private

Definition at line 82 of file ReadLArDigits.h.


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