ATLAS Offline Software
Loading...
Searching...
No Matches
LArRawOrdering Class Reference

#include <LArRawOrdering.h>

Collaboration diagram for LArRawOrdering:

Public Member Functions

 LArRawOrdering (const LArRoIMap *map)
 Constructor need LArRoIMap to do the job.
 LArRawOrdering ()
void setMap (const LArRoIMap *map)
bool operator() (const LArRawChannel *ch1, const LArRawChannel *ch2)

Private Attributes

const LArRoIMapm_roiMap

Detailed Description

Definition at line 14 of file LArRawOrdering.h.

Constructor & Destructor Documentation

◆ LArRawOrdering() [1/2]

LArRawOrdering::LArRawOrdering ( const LArRoIMap * map)

Constructor need LArRoIMap to do the job.

Definition at line 9 of file LArRawOrdering.cxx.

9 : m_roiMap(m)
10 { }
const LArRoIMap * m_roiMap

◆ LArRawOrdering() [2/2]

LArRawOrdering::LArRawOrdering ( )

Definition at line 13 of file LArRawOrdering.cxx.

13 : m_roiMap(nullptr)
14 { }

Member Function Documentation

◆ operator()()

bool LArRawOrdering::operator() ( const LArRawChannel * ch1,
const LArRawChannel * ch2 )

Definition at line 19 of file LArRawOrdering.cxx.

21 {
22
23 LArRoIMap::TT_ID rId1 = m_roiMap->trigTowerID(ch1->channelID() );
24 LArRoIMap::TT_ID rId2 = m_roiMap->trigTowerID(ch2->channelID() );
25
26 // order in eta first
27 if(rId1 == rId2) {
28 unsigned int id1 = ch1->channelID().get_identifier32().get_compact();
29 unsigned int id2 = ch2->channelID().get_identifier32().get_compact();
30
31 return id1<id2 ; // compare the channel ID.
32 }
33 return rId1< rId2;
34
35 }
HWIdentifier id2
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
HWIdentifier channelID() const
unsigned int TT_ID
Definition LArRoIMap.h:34

◆ setMap()

void LArRawOrdering::setMap ( const LArRoIMap * map)

Definition at line 15 of file LArRawOrdering.cxx.

16 { m_roiMap = map; }

Member Data Documentation

◆ m_roiMap

const LArRoIMap* LArRawOrdering::m_roiMap
private

Definition at line 28 of file LArRawOrdering.h.


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