ATLAS Offline Software
Loading...
Searching...
No Matches
LVL1::JEMRoI Class Reference

JEM RoI data. More...

#include <JEMRoI.h>

Collaboration diagram for LVL1::JEMRoI:

Public Member Functions

 JEMRoI ()
 JEMRoI (uint32_t roiWord)
 JEMRoI (int crate, int jem, int frame, int location, int forward, int hits, int error)
 ~JEMRoI ()
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 forward () const
 Return forward jet flag (0/1)
int hits () const
 Return Jet hit map (8 bits Main or 4 bits Forward)
int error () const
 Return error flags (bit 0 Saturation, bit 1 Parity)
uint32_t roiWord () const
 Return packed RoI word.
bool setRoiWord (uint32_t roiWord)
 Set RoI word with ID check.

Private Member Functions

int parity () const
 Return parity error flag (0/1)
int saturation () const
 Return saturation flag (0/1)

Private Attributes

uint32_t m_roiWord
 RoI word.

Static Private Attributes

static const unsigned int s_wordIdVal = 0x4
 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_forwardBit = 18
static const int s_parityBit = 17
static const int s_saturationBit = 16
static const int s_forwardHitsBit = 8
static const int s_mainHitsBit = 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_forwardMask = 0x1
static const int s_parityMask = 0x1
static const int s_saturationMask = 0x1
static const int s_forwardHitsMask = 0xf
static const int s_mainHitsMask = 0xff

Detailed Description

JEM RoI data.

Contains a Main Jet RoI word or a Forward Jet RoI word. Used in analysis of RoI readout.

Author
Peter Faulkner

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

Constructor & Destructor Documentation

◆ JEMRoI() [1/3]

LVL1::JEMRoI::JEMRoI ( )

Definition at line 35 of file JEMRoI.cxx.

◆ JEMRoI() [2/3]

LVL1::JEMRoI::JEMRoI ( uint32_t roiWord)

Definition at line 39 of file JEMRoI.cxx.

40{
41}
uint32_t roiWord() const
Return packed RoI word.

◆ JEMRoI() [3/3]

LVL1::JEMRoI::JEMRoI ( int crate,
int jem,
int frame,
int location,
int forward,
int hits,
int error )

Definition at line 43 of file JEMRoI.cxx.

45{
56}
static const unsigned int s_wordIdVal
RoI word ID.
int error() const
Return error flags (bit 0 Saturation, bit 1 Parity)
int location() const
Return location (RoI local coords) (0-3)
int hits() const
Return Jet hit map (8 bits Main or 4 bits Forward)
Definition JEMRoI.cxx:64
int frame() const
Return RoI frame number (0-7)
int forward() const
Return forward jet flag (0/1)
int jem() const
Return JEM number (0-15)
int crate() const
Return crate number (0-1)

◆ ~JEMRoI()

LVL1::JEMRoI::~JEMRoI ( )

Definition at line 58 of file JEMRoI.cxx.

59{
60}

Member Function Documentation

◆ crate()

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

Return crate number (0-1)

Definition at line 87 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h.

88{
89 return (m_roiWord >> s_crateBit) & s_crateMask;
90}

◆ error()

int LVL1::JEMRoI::error ( ) const
inline

Return error flags (bit 0 Saturation, bit 1 Parity)

Definition at line 112 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h.

113{
114 return (parity() << 1) | saturation();
115}
int parity() const
Return parity error flag (0/1)
int saturation() const
Return saturation flag (0/1)

◆ forward()

int LVL1::JEMRoI::forward ( ) const
inline

Return forward jet flag (0/1)

Definition at line 107 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h.

108{
110}

◆ frame()

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

Return RoI frame number (0-7)

Definition at line 97 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h.

98{
99 return (m_roiWord >> s_frameBit) & s_frameMask;
100}

◆ hits()

int LVL1::JEMRoI::hits ( ) const

Return Jet hit map (8 bits Main or 4 bits Forward)

Definition at line 64 of file JEMRoI.cxx.

65{
66 int hits = 0;
69 return hits;
70}

◆ jem()

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

Return JEM number (0-15)

Definition at line 92 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h.

93{
94 return (m_roiWord >> s_jemBit) & s_jemMask;
95}

◆ location()

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

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

Definition at line 102 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h.

103{
105}

◆ parity()

int LVL1::JEMRoI::parity ( ) const
inlineprivate

Return parity error flag (0/1)

Definition at line 122 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h.

123{
124 return (m_roiWord >> s_parityBit) & s_parityMask;
125}

◆ roiWord()

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

Return packed RoI word.

Definition at line 117 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h.

118{
119 return m_roiWord;
120}

◆ saturation()

int LVL1::JEMRoI::saturation ( ) const
inlineprivate

Return saturation flag (0/1)

Definition at line 127 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h.

128{
130}

◆ setRoiWord()

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

Set RoI word with ID check.

Definition at line 74 of file JEMRoI.cxx.

75{
76 int wordId = (roiWord >> s_wordIdBit) & s_wordIdMask;
77 bool valid = (wordId == s_wordIdVal);
78 if (valid) m_roiWord = roiWord;
79 return valid;
80}
list valid
Definition calibdata.py:44

Member Data Documentation

◆ m_roiWord

uint32_t LVL1::JEMRoI::m_roiWord
private

RoI word.

Definition at line 83 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h.

◆ s_crateBit

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

◆ s_crateMask

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

◆ s_forwardBit

const int LVL1::JEMRoI::s_forwardBit = 18
staticprivate

◆ s_forwardHitsBit

const int LVL1::JEMRoI::s_forwardHitsBit = 8
staticprivate

◆ s_forwardHitsMask

const int LVL1::JEMRoI::s_forwardHitsMask = 0xf
staticprivate

◆ s_forwardMask

const int LVL1::JEMRoI::s_forwardMask = 0x1
staticprivate

◆ s_frameBit

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

◆ s_frameMask

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

◆ s_jemBit

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

◆ s_jemMask

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

◆ s_locationBit

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

◆ s_locationMask

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

◆ s_mainHitsBit

const int LVL1::JEMRoI::s_mainHitsBit = 0
staticprivate

◆ s_mainHitsMask

const int LVL1::JEMRoI::s_mainHitsMask = 0xff
staticprivate

◆ s_parityBit

const int LVL1::JEMRoI::s_parityBit = 17
staticprivate

◆ s_parityMask

const int LVL1::JEMRoI::s_parityMask = 0x1
staticprivate

◆ s_saturationBit

const int LVL1::JEMRoI::s_saturationBit = 16
staticprivate

◆ s_saturationMask

const int LVL1::JEMRoI::s_saturationMask = 0x1
staticprivate

◆ s_wordIdBit

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

◆ s_wordIdMask

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

◆ s_wordIdVal

const unsigned int LVL1::JEMRoI::s_wordIdVal = 0x4
staticprivate

RoI word ID.

Definition at line 53 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h.


The documentation for this class was generated from the following files: