ATLAS Offline Software
Loading...
Searching...
No Matches
CPMRoI.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace LVL1 {
8
9// Static constants
10
11const int CPMRoI::s_wordIdVal;
12
13const int CPMRoI::s_wordIdBit;
14const int CPMRoI::s_crateBit;
15const int CPMRoI::s_cpmBit;
16const int CPMRoI::s_chipBit;
17const int CPMRoI::s_locationBit;
18const int CPMRoI::s_parityBit;
20const int CPMRoI::s_hitsBit;
21
22const int CPMRoI::s_wordIdMask;
23const int CPMRoI::s_crateMask;
24const int CPMRoI::s_cpmMask;
25const int CPMRoI::s_chipMask;
27const int CPMRoI::s_parityMask;
29const int CPMRoI::s_hitsMask;
30
34
38
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 if (valid) m_roiWord = roiWord;
62 return valid;
63}
64
65} // end namespace
uint32_t roiWord() const
Return packed RoI word.
int crate() const
Return crate number (0-1)
int hits() const
Return hit thresholds map.
int location() const
Return location (RoI local coords) (0-7)
int cpm() const
Return CPM number (1-14)
bool setRoiWord(uint32_t roiWord)
Set RoI word with ID check.
Definition CPMRoI.cxx:57
int chip() const
Return CP chip number (0-7)
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...