ATLAS Offline Software
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::LArRawOrdering
LArRawOrdering()
Definition:
LArRawOrdering.cxx:13
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
LArRawOrdering::setMap
void setMap(const LArRoIMap *map)
Definition:
LArRawOrdering.cxx:15
LArRawOrdering.h
LArRoIMap.h
Mapping between calorimeter trigger id to offline/online Identifier.
Identifier32::get_compact
value_type get_compact(void) const
Get the compact id.
Definition:
Identifier32.h:171
id2
HWIdentifier id2
Definition:
LArRodBlockPhysicsV0.cxx:564
LArRawChannel
Liquid Argon ROD output object base class.
Definition:
LArRawChannel.h:40
LArRoIMap::TT_ID
unsigned int TT_ID
Definition:
LArRoIMap.h:34
LArRoIMap
Mapping between calorimeter trigger id to offline/online Identifier.
Definition:
LArRoIMap.h:31
LArRoIMap::trigTowerID
TT_ID trigTowerID(const Identifier &channel_id) const
Translate offline channel identifier to trigger tower ID.
Definition:
LArRoIMap.cxx:32
Identifier::get_identifier32
Identifier32 get_identifier32(void) const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
Generated on Fri Jul 5 2024 21:20:44 for ATLAS Offline Software by
1.8.18