ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
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) 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 forward () const
 Return forward jet flag (0/1) More...
 
int hits () const
 Return Jet hit map (8 bits Main or 4 bits Forward) More...
 
int error () const
 Return error flags (bit 0 Saturation, bit 1 Parity) More...
 
uint32_t roiWord () const
 Return packed RoI word. More...
 
bool setRoiWord (uint32_t roiWord)
 Set RoI word with ID check. More...
 

Private Member Functions

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

Private Attributes

uint32_t m_roiWord
 RoI word. More...
 

Static Private Attributes

static const unsigned int s_wordIdVal = 0x4
 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_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.

35  : m_roiWord(0)
36 {
37 }

◆ JEMRoI() [2/3]

LVL1::JEMRoI::JEMRoI ( uint32_t  roiWord)

Definition at line 39 of file JEMRoI.cxx.

40 {
41 }

◆ JEMRoI() [3/3]

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

◆ ~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 }

◆ 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 {
109  return (m_roiWord >> s_forwardBit) & s_forwardMask;
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 {
104  return (m_roiWord >> s_locationBit) & s_locationMask;
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 }

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:
LVL1::JEMRoI::s_forwardMask
static const int s_forwardMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:71
LVL1::JEMRoI::s_parityBit
static const int s_parityBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:61
LVL1::JEMRoI::m_roiWord
uint32_t m_roiWord
RoI word.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:83
LVL1::JEMRoI::s_mainHitsMask
static const int s_mainHitsMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:75
LVL1::JEMRoI::location
int location() const
Return location (RoI local coords) (0-3)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:102
LVL1::JEMRoI::parity
int parity() const
Return parity error flag (0/1)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:122
LVL1::JEMRoI::forward
int forward() const
Return forward jet flag (0/1)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:107
LVL1::JEMRoI::s_forwardHitsBit
static const int s_forwardHitsBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:63
LVL1::JEMRoI::s_locationBit
static const int s_locationBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:59
calibdata.valid
list valid
Definition: calibdata.py:45
LVL1::JEMRoI::s_wordIdVal
static const unsigned int s_wordIdVal
RoI word ID.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:53
LVL1::JEMRoI::hits
int hits() const
Return Jet hit map (8 bits Main or 4 bits Forward)
Definition: JEMRoI.cxx:64
LVL1::JEMRoI::s_mainHitsBit
static const int s_mainHitsBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:64
LVL1::JEMRoI::s_forwardHitsMask
static const int s_forwardHitsMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:74
LVL1::JEMRoI::s_forwardBit
static const int s_forwardBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:60
LVL1::JEMRoI::s_locationMask
static const int s_locationMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:70
LVL1::JEMRoI::s_frameBit
static const int s_frameBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:58
LVL1::JEMRoI::s_frameMask
static const int s_frameMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:69
LVL1::JEMRoI::s_crateMask
static const int s_crateMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:67
LVL1::JEMRoI::crate
int crate() const
Return crate number (0-1)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:87
LVL1::JEMRoI::s_crateBit
static const int s_crateBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:56
LVL1::JEMRoI::s_saturationMask
static const int s_saturationMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:73
LVL1::JEMRoI::s_jemMask
static const int s_jemMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:68
LVL1::JEMRoI::s_wordIdMask
static const int s_wordIdMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:66
LVL1::JEMRoI::s_parityMask
static const int s_parityMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:72
LVL1::JEMRoI::jem
int jem() const
Return JEM number (0-15)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:92
LVL1::JEMRoI::s_saturationBit
static const int s_saturationBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:62
LVL1::JEMRoI::s_jemBit
static const int s_jemBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:57
LVL1::JEMRoI::saturation
int saturation() const
Return saturation flag (0/1)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:127
error
Definition: IImpactPoint3dEstimator.h:70
LVL1::JEMRoI::roiWord
uint32_t roiWord() const
Return packed RoI word.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:117
LVL1::JEMRoI::frame
int frame() const
Return RoI frame number (0-7)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:97
LVL1::JEMRoI::s_wordIdBit
static const int s_wordIdBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMRoI.h:55