ATLAS Offline Software
Loading...
Searching...
No Matches
JEMRoI.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace LVL1 {
8
9// Static constants
10
11const unsigned int JEMRoI::s_wordIdVal;
12
13const int JEMRoI::s_wordIdBit;
14const int JEMRoI::s_crateBit;
15const int JEMRoI::s_jemBit;
16const int JEMRoI::s_frameBit;
17const int JEMRoI::s_locationBit;
18const int JEMRoI::s_forwardBit;
19const int JEMRoI::s_parityBit;
22const int JEMRoI::s_mainHitsBit;
23
24const int JEMRoI::s_wordIdMask;
25const int JEMRoI::s_crateMask;
26const int JEMRoI::s_jemMask;
27const int JEMRoI::s_frameMask;
29const int JEMRoI::s_forwardMask;
30const int JEMRoI::s_parityMask;
34
38
42
57
61
62// Return Jet hit map (8 bits Main or 4 bits Forward)
63
64int JEMRoI::hits() const
65{
66 int hits = 0;
69 return hits;
70}
71
72// Set RoI word with ID check
73
75{
76 int wordId = (roiWord >> s_wordIdBit) & s_wordIdMask;
77 bool valid = (wordId == s_wordIdVal);
78 if (valid) m_roiWord = roiWord;
79 return valid;
80}
81
82} // end namespace
static const unsigned int s_wordIdVal
RoI word ID.
bool setRoiWord(uint32_t roiWord)
Set RoI word with ID check.
Definition JEMRoI.cxx:74
uint32_t roiWord() const
Return packed RoI word.
int location() const
Return location (RoI local coords) (0-3)
int hits() const
Return Jet hit map (8 bits Main or 4 bits Forward)
Definition JEMRoI.cxx:64
int frame() const
Return RoI frame number (0-7)
int forward() const
Return forward jet flag (0/1)
int jem() const
Return JEM number (0-15)
int crate() const
Return crate number (0-1)
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...