ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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 }

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();
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 }

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:
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:1967
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:1483
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10
Identifier::get_compact
value_type get_compact(void) const
Get the compact id.
ReadLArDigits::SortDigits::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition: ReadLArDigits.h:82