ATLAS Offline Software
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 
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;
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;
28 
29 JEMTobRoI::JEMTobRoI() : m_roiWord(0)
30 {
31 }
32 
34 {
35 }
36 
37 JEMTobRoI::JEMTobRoI(int crate, int jem, int frame, int location,
38  int energyLarge, int energySmall)
39 {
42  m_roiWord |= (jem & s_jemMask) << s_jemBit;
47 }
48 
50 {
51 }
52 
53 // Set RoI word with ID check
54 
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
LVL1::JEMTobRoI::s_jemMask
static const int s_jemMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:63
LVL1::JEMTobRoI::location
int location() const
Return location (RoI local coords) (0-3)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:89
LVL1::JEMTobRoI::s_energyLargeBit
static const int s_energyLargeBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:59
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LVL1::JEMTobRoI::~JEMTobRoI
~JEMTobRoI()
Definition: JEMTobRoI.cxx:49
LVL1::JEMTobRoI::frame
int frame() const
Return RoI frame number (0-7)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:84
LVL1::JEMTobRoI::setRoiWord
bool setRoiWord(uint32_t roiWord)
Set RoI word with ID check.
Definition: JEMTobRoI.cxx:55
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::JEMTobRoI::s_crateBit
static const int s_crateBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:54
LVL1::JEMTobRoI::s_wordIdBit
static const int s_wordIdBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:53
LVL1::JEMTobRoI::s_frameBit
static const int s_frameBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:56
LVL1::JEMTobRoI::roiWord
uint32_t roiWord() const
Return packed RoI word.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:104
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
calibdata.valid
list valid
Definition: calibdata.py:45
LVL1::JEMTobRoI::s_energySmallMask
static const int s_energySmallMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:66
LVL1::JEMTobRoI::s_crateMask
static const int s_crateMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:62
JEMTobRoI.h
LVL1::JEMTobRoI::s_energyLargeMask
static const int s_energyLargeMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:67
LVL1::JEMTobRoI::energySmall
int energySmall() const
Return energy small window size.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:99
LVL1::JEMTobRoI::s_jemBit
static const int s_jemBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:55
LVL1::JEMTobRoI::m_roiWord
uint32_t m_roiWord
RoI word.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:70
LVL1::JEMTobRoI::s_frameMask
static const int s_frameMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:64
LVL1::JEMTobRoI::s_locationBit
static const int s_locationBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:57
LVL1::JEMTobRoI::s_wordIdMask
static const int s_wordIdMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:61
LVL1::JEMTobRoI::s_wordIdVal
static const int s_wordIdVal
RoI word ID.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:51
LVL1::JEMTobRoI::jem
int jem() const
Return JEM number (0-15)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:79
LVL1::JEMTobRoI::energyLarge
int energyLarge() const
Return energy large window size.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:94
LVL1::JEMTobRoI::crate
int crate() const
Return crate number (0-1)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:74
LVL1::JEMTobRoI::JEMTobRoI
JEMTobRoI()
Definition: JEMTobRoI.cxx:29
LVL1::JEMTobRoI::s_locationMask
static const int s_locationMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:65
LVL1::JEMTobRoI::s_energySmallBit
static const int s_energySmallBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:58