ATLAS Offline Software
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
LVL1::JEMTobRoI Class Reference

JEM RoI data. More...

#include <JEMTobRoI.h>

Collaboration diagram for LVL1::JEMTobRoI:

Public Member Functions

 JEMTobRoI ()
 
 JEMTobRoI (uint32_t roiWord)
 
 JEMTobRoI (int crate, int jem, int frame, int location, int energyLarge, int energySmall)
 
 ~JEMTobRoI ()
 
int crate () const
 Return crate number (0-1) More...
 
int jem () const
 Return JEM number (0-15) More...
 
int frame () const
 Return RoI frame number (0-7) More...
 
int location () const
 Return location (RoI local coords) (0-3) More...
 
int energyLarge () const
 Return energy large window size. More...
 
int energySmall () const
 Return energy small window size. More...
 
uint32_t roiWord () const
 Return packed RoI word. More...
 
bool setRoiWord (uint32_t roiWord)
 Set RoI word with ID check. More...
 

Private Attributes

uint32_t m_roiWord
 RoI word. More...
 

Static Private Attributes

static const int s_wordIdVal = 0
 RoI word ID. More...
 
static const int s_wordIdBit = 29
 
static const int s_crateBit = 28
 
static const int s_jemBit = 24
 
static const int s_frameBit = 21
 
static const int s_locationBit = 19
 
static const int s_energySmallBit = 10
 
static const int s_energyLargeBit = 0
 
static const int s_wordIdMask = 0x7
 
static const int s_crateMask = 0x1
 
static const int s_jemMask = 0xf
 
static const int s_frameMask = 0x7
 
static const int s_locationMask = 0x3
 
static const int s_energySmallMask = 0x1ff
 
static const int s_energyLargeMask = 0x3ff
 

Detailed Description

JEM RoI data.

Contains a Jet RoI word post LS1. Used in analysis of RoI readout.

Author
Peter Faulkner

Definition at line 19 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h.

Constructor & Destructor Documentation

◆ JEMTobRoI() [1/3]

LVL1::JEMTobRoI::JEMTobRoI ( )

Definition at line 29 of file JEMTobRoI.cxx.

29  : m_roiWord(0)
30 {
31 }

◆ JEMTobRoI() [2/3]

LVL1::JEMTobRoI::JEMTobRoI ( uint32_t  roiWord)

Definition at line 33 of file JEMTobRoI.cxx.

34 {
35 }

◆ JEMTobRoI() [3/3]

LVL1::JEMTobRoI::JEMTobRoI ( int  crate,
int  jem,
int  frame,
int  location,
int  energyLarge,
int  energySmall 
)

◆ ~JEMTobRoI()

LVL1::JEMTobRoI::~JEMTobRoI ( )

Definition at line 49 of file JEMTobRoI.cxx.

50 {
51 }

Member Function Documentation

◆ crate()

int LVL1::JEMTobRoI::crate ( ) const
inline

Return crate number (0-1)

Definition at line 74 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h.

75 {
76  return (m_roiWord >> s_crateBit) & s_crateMask;
77 }

◆ energyLarge()

int LVL1::JEMTobRoI::energyLarge ( ) const
inline

Return energy large window size.

Definition at line 94 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h.

95 {
97 }

◆ energySmall()

int LVL1::JEMTobRoI::energySmall ( ) const
inline

Return energy small window size.

Definition at line 99 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h.

100 {
102 }

◆ frame()

int LVL1::JEMTobRoI::frame ( ) const
inline

Return RoI frame number (0-7)

Definition at line 84 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h.

85 {
86  return (m_roiWord >> s_frameBit) & s_frameMask;
87 }

◆ jem()

int LVL1::JEMTobRoI::jem ( ) const
inline

Return JEM number (0-15)

Definition at line 79 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h.

80 {
81  return (m_roiWord >> s_jemBit) & s_jemMask;
82 }

◆ location()

int LVL1::JEMTobRoI::location ( ) const
inline

Return location (RoI local coords) (0-3)

Definition at line 89 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h.

90 {
92 }

◆ roiWord()

uint32_t LVL1::JEMTobRoI::roiWord ( ) const
inline

Return packed RoI word.

Definition at line 104 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h.

105 {
106  return m_roiWord;
107 }

◆ setRoiWord()

bool LVL1::JEMTobRoI::setRoiWord ( uint32_t  roiWord)

Set RoI word with ID check.

Definition at line 55 of file JEMTobRoI.cxx.

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 }

Member Data Documentation

◆ m_roiWord

uint32_t LVL1::JEMTobRoI::m_roiWord
private

RoI word.

Definition at line 70 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h.

◆ s_crateBit

const int LVL1::JEMTobRoI::s_crateBit = 28
staticprivate

◆ s_crateMask

const int LVL1::JEMTobRoI::s_crateMask = 0x1
staticprivate

◆ s_energyLargeBit

const int LVL1::JEMTobRoI::s_energyLargeBit = 0
staticprivate

◆ s_energyLargeMask

const int LVL1::JEMTobRoI::s_energyLargeMask = 0x3ff
staticprivate

◆ s_energySmallBit

const int LVL1::JEMTobRoI::s_energySmallBit = 10
staticprivate

◆ s_energySmallMask

const int LVL1::JEMTobRoI::s_energySmallMask = 0x1ff
staticprivate

◆ s_frameBit

const int LVL1::JEMTobRoI::s_frameBit = 21
staticprivate

◆ s_frameMask

const int LVL1::JEMTobRoI::s_frameMask = 0x7
staticprivate

◆ s_jemBit

const int LVL1::JEMTobRoI::s_jemBit = 24
staticprivate

◆ s_jemMask

const int LVL1::JEMTobRoI::s_jemMask = 0xf
staticprivate

◆ s_locationBit

const int LVL1::JEMTobRoI::s_locationBit = 19
staticprivate

◆ s_locationMask

const int LVL1::JEMTobRoI::s_locationMask = 0x3
staticprivate

◆ s_wordIdBit

const int LVL1::JEMTobRoI::s_wordIdBit = 29
staticprivate

◆ s_wordIdMask

const int LVL1::JEMTobRoI::s_wordIdMask = 0x7
staticprivate

◆ s_wordIdVal

const int LVL1::JEMTobRoI::s_wordIdVal = 0
staticprivate

RoI word ID.

Definition at line 51 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h.


The documentation for this class was generated from the following files:
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
LVL1::JEMTobRoI::frame
int frame() const
Return RoI frame number (0-7)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMTobRoI.h:84
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
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
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::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