ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloEvent
src
JEMTobRoI.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigT1CaloEvent/JEMTobRoI.h
"
6
7
namespace
LVL1
{
8
9
// Static constants
10
11
const
int
JEMTobRoI::s_wordIdVal
;
12
13
const
int
JEMTobRoI::s_wordIdBit
;
14
const
int
JEMTobRoI::s_crateBit
;
15
const
int
JEMTobRoI::s_jemBit
;
16
const
int
JEMTobRoI::s_frameBit
;
17
const
int
JEMTobRoI::s_locationBit
;
18
const
int
JEMTobRoI::s_energySmallBit
;
19
const
int
JEMTobRoI::s_energyLargeBit
;
20
21
const
int
JEMTobRoI::s_wordIdMask
;
22
const
int
JEMTobRoI::s_crateMask
;
23
const
int
JEMTobRoI::s_jemMask
;
24
const
int
JEMTobRoI::s_frameMask
;
25
const
int
JEMTobRoI::s_locationMask
;
26
const
int
JEMTobRoI::s_energySmallMask
;
27
const
int
JEMTobRoI::s_energyLargeMask
;
28
29
JEMTobRoI::JEMTobRoI
() :
m_roiWord
(0)
30
{
31
}
32
33
JEMTobRoI::JEMTobRoI
(uint32_t
roiWord
) :
m_roiWord
(
roiWord
)
34
{
35
}
36
37
JEMTobRoI::JEMTobRoI
(
int
crate
,
int
jem
,
int
frame
,
int
location
,
38
int
energyLarge
,
int
energySmall
)
39
{
40
m_roiWord
=
s_wordIdVal
<<
s_wordIdBit
;
41
m_roiWord
|= (
crate
&
s_crateMask
) <<
s_crateBit
;
42
m_roiWord
|= (
jem
&
s_jemMask
) <<
s_jemBit
;
43
m_roiWord
|= (
frame
&
s_frameMask
) <<
s_frameBit
;
44
m_roiWord
|= (
location
&
s_locationMask
) <<
s_locationBit
;
45
m_roiWord
|= (
energySmall
&
s_energySmallMask
) <<
s_energySmallBit
;
46
m_roiWord
|= (
energyLarge
&
s_energyLargeMask
) <<
s_energyLargeBit
;
47
}
48
49
JEMTobRoI::~JEMTobRoI
()
50
{
51
}
52
53
// Set RoI word with ID check
54
55
bool
JEMTobRoI::setRoiWord
(uint32_t
roiWord
)
56
{
57
int
wordId = (
roiWord
>>
s_wordIdBit
) &
s_wordIdMask
;
58
bool
valid = (wordId ==
s_wordIdVal
);
59
if
(valid)
m_roiWord
=
roiWord
;
60
return
valid;
61
}
62
63
}
// end namespace
JEMTobRoI.h
LVL1::JEMTobRoI::s_jemMask
static const int s_jemMask
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:63
LVL1::JEMTobRoI::s_energyLargeBit
static const int s_energyLargeBit
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:59
LVL1::JEMTobRoI::location
int location() const
Return location (RoI local coords) (0-3).
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:89
LVL1::JEMTobRoI::s_frameBit
static const int s_frameBit
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:56
LVL1::JEMTobRoI::s_energySmallBit
static const int s_energySmallBit
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:58
LVL1::JEMTobRoI::s_wordIdBit
static const int s_wordIdBit
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:53
LVL1::JEMTobRoI::s_locationBit
static const int s_locationBit
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:57
LVL1::JEMTobRoI::s_crateMask
static const int s_crateMask
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:62
LVL1::JEMTobRoI::setRoiWord
bool setRoiWord(uint32_t roiWord)
Set RoI word with ID check.
Definition
JEMTobRoI.cxx:55
LVL1::JEMTobRoI::s_crateBit
static const int s_crateBit
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:54
LVL1::JEMTobRoI::s_locationMask
static const int s_locationMask
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:65
LVL1::JEMTobRoI::roiWord
uint32_t roiWord() const
Return packed RoI word.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:104
LVL1::JEMTobRoI::s_jemBit
static const int s_jemBit
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:55
LVL1::JEMTobRoI::frame
int frame() const
Return RoI frame number (0-7).
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:84
LVL1::JEMTobRoI::s_frameMask
static const int s_frameMask
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:64
LVL1::JEMTobRoI::jem
int jem() const
Return JEM number (0-15).
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:79
LVL1::JEMTobRoI::m_roiWord
uint32_t m_roiWord
RoI word.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:70
LVL1::JEMTobRoI::JEMTobRoI
JEMTobRoI()
Definition
JEMTobRoI.cxx:29
LVL1::JEMTobRoI::s_wordIdMask
static const int s_wordIdMask
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:61
LVL1::JEMTobRoI::energyLarge
int energyLarge() const
Return energy large window size.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:94
LVL1::JEMTobRoI::~JEMTobRoI
~JEMTobRoI()
Definition
JEMTobRoI.cxx:49
LVL1::JEMTobRoI::energySmall
int energySmall() const
Return energy small window size.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:99
LVL1::JEMTobRoI::crate
int crate() const
Return crate number (0-1).
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:74
LVL1::JEMTobRoI::s_wordIdVal
static const int s_wordIdVal
RoI word ID.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:51
LVL1::JEMTobRoI::s_energyLargeMask
static const int s_energyLargeMask
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:67
LVL1::JEMTobRoI::s_energySmallMask
static const int s_energySmallMask
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:66
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
Generated on
for ATLAS Offline Software by
1.17.0