ATLAS Offline Software
Loading...
Searching...
No Matches
CPMTobRoI.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 CPMTobRoI::s_wordIdVal;
12
14const int CPMTobRoI::s_crateBit;
15const int CPMTobRoI::s_cpmBit;
16const int CPMTobRoI::s_chipBit;
18const int CPMTobRoI::s_isolBit;
20
23const int CPMTobRoI::s_cpmMask;
24const int CPMTobRoI::s_chipMask;
26const int CPMTobRoI::s_isolMask;
28const int CPMTobRoI::s_typeMask;
29
33
37
50
54
55// Set RoI word with ID check
56
58{
59 int wordId = (roiWord >> s_wordIdBit) & s_wordIdMask;
60 bool valid = ((wordId == s_wordIdVal) ||
61 (wordId == (s_wordIdVal|s_typeMask)));
62 if (valid) m_roiWord = roiWord;
63 return valid;
64}
65
66} // end namespace
uint32_t roiWord() const
Return packed RoI word.
int location() const
Return location (RoI local coords) (0-7)
bool setRoiWord(uint32_t roiWord)
Set RoI word with ID check.
Definition CPMTobRoI.cxx:57
static const unsigned int s_wordIdVal
RoI word ID.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...