ATLAS Offline Software
Loading...
Searching...
No Matches
LArRawOrdering.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8
11
12
17
18 bool
19 LArRawOrdering::operator ()
20 (const LArRawChannel* ch1, const LArRawChannel* ch2)
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 }
Mapping between calorimeter trigger id to offline/online Identifier.
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.
Liquid Argon ROD output object base class.
HWIdentifier channelID() const
void setMap(const LArRoIMap *map)
const LArRoIMap * m_roiMap
Mapping between calorimeter trigger id to offline/online Identifier.
Definition LArRoIMap.h:31
unsigned int TT_ID
Definition LArRoIMap.h:34
STL class.