ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LArRawOrdering Class Reference

#include <LArRawOrdering.h>

Collaboration diagram for LArRawOrdering:

Public Member Functions

 LArRawOrdering (const LArRoIMap *map)
 Constructor need LArRoIMap to do the job. More...
 
 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  { }

◆ 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 
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  }

◆ 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:
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
LArRawChannel::channelID
HWIdentifier channelID() const
Definition: LArRawChannel.h:158
LArRawOrdering::m_roiMap
const LArRoIMap * m_roiMap
Definition: LArRawOrdering.h:28
Identifier::get_identifier32
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
Identifier32::get_compact
value_type get_compact() const
Get the compact id.
Definition: Identifier32.h:44
id2
HWIdentifier id2
Definition: LArRodBlockPhysicsV0.cxx:562
LArRoIMap::TT_ID
unsigned int TT_ID
Definition: LArRoIMap.h:34
LArRoIMap::trigTowerID
TT_ID trigTowerID(const Identifier &channel_id) const
Translate offline channel identifier to trigger tower ID.
Definition: LArRoIMap.cxx:32