ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRawUtils
src
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
5
#include "
LArRawUtils/LArRawOrdering.h
"
6
#include "
LArRecConditions/LArRoIMap.h
"
7
8
9
LArRawOrdering::LArRawOrdering
(
const
LArRoIMap
* m):
m_roiMap
(m)
10
{ }
11
12
13
LArRawOrdering::LArRawOrdering
( ):
m_roiMap
(nullptr)
14
{ }
15
void
LArRawOrdering::setMap
(
const
LArRoIMap
*
map
)
16
{
m_roiMap
=
map
; }
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
}
LArRawOrdering.h
LArRoIMap.h
Mapping between calorimeter trigger id to offline/online Identifier.
Identifier32::get_compact
value_type get_compact() const
Get the compact id.
Definition
Identifier32.h:47
Identifier::get_identifier32
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
LArRawChannel
Liquid Argon ROD output object base class.
Definition
LArRawChannel.h:40
LArRawChannel::channelID
HWIdentifier channelID() const
Definition
LArRawChannel.h:158
LArRawOrdering::setMap
void setMap(const LArRoIMap *map)
Definition
LArRawOrdering.cxx:15
LArRawOrdering::LArRawOrdering
LArRawOrdering()
Definition
LArRawOrdering.cxx:13
LArRawOrdering::m_roiMap
const LArRoIMap * m_roiMap
Definition
LArRawOrdering.h:28
LArRoIMap
Mapping between calorimeter trigger id to offline/online Identifier.
Definition
LArRoIMap.h:31
LArRoIMap::TT_ID
unsigned int TT_ID
Definition
LArRoIMap.h:34
map
STL class.
Generated on
for ATLAS Offline Software by
1.17.0