ATLAS Offline Software
Loading...
Searching...
No Matches
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)
int jem () const
 Return JEM number (0-15)
int frame () const
 Return RoI frame number (0-7)
int location () const
 Return location (RoI local coords) (0-3)
int energyLarge () const
 Return energy large window size.
int energySmall () const
 Return energy small window size.
uint32_t roiWord () const
 Return packed RoI word.
bool setRoiWord (uint32_t roiWord)
 Set RoI word with ID check.

Private Attributes

uint32_t m_roiWord
 RoI word.

Static Private Attributes

static const int s_wordIdVal = 0
 RoI word ID.
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.

◆ JEMTobRoI() [2/3]

LVL1::JEMTobRoI::JEMTobRoI ( uint32_t roiWord)

Definition at line 33 of file JEMTobRoI.cxx.

34{
35}
uint32_t roiWord() const
Return packed RoI word.

◆ JEMTobRoI() [3/3]

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

Definition at line 37 of file JEMTobRoI.cxx.

39{
47}
int location() const
Return location (RoI local coords) (0-3)
int frame() const
Return RoI frame number (0-7)
int energyLarge() const
Return energy large window size.
int energySmall() const
Return energy small window size.

◆ ~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}
list valid
Definition calibdata.py:44

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: