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

CPM RoI data. More...

#include <CPMTobRoI.h>

Collaboration diagram for LVL1::CPMTobRoI:

Public Member Functions

 CPMTobRoI ()
 
 CPMTobRoI (uint32_t roiWord)
 
 CPMTobRoI (int crate, int cpm, int chip, int location, int type, int energy, int isol)
 
 ~CPMTobRoI ()
 
int crate () const
 Return crate number (0-1) More...
 
int cpm () const
 Return CPM number (1-14) More...
 
int chip () const
 Return CP chip number (0-7) More...
 
int location () const
 Return location (RoI local coords) (0-7) More...
 
int type () const
 Return type em/tau (0/1) More...
 
int energy () const
 Return energy. More...
 
int isolation () const
 Return isolation. 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 unsigned int s_wordIdVal = 0xa
 RoI word ID. More...
 
static const int s_wordIdBit = 28
 
static const int s_crateBit = 26
 
static const int s_cpmBit = 22
 
static const int s_chipBit = 19
 
static const int s_locationBit = 16
 
static const int s_isolBit = 8
 
static const int s_energyBit = 0
 
static const int s_wordIdMask = 0xf
 
static const int s_crateMask = 0x3
 
static const int s_cpmMask = 0xf
 
static const int s_chipMask = 0x7
 
static const int s_locationMask = 0x7
 
static const int s_isolMask = 0x1f
 
static const int s_energyMask = 0xff
 
static const int s_typeMask = 0x1
 

Detailed Description

CPM RoI data.

Contains a Cluster Processor Module RoI word post LS1. Used in analysis of RoI readout.

Author
Peter Faulkner

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

Constructor & Destructor Documentation

◆ CPMTobRoI() [1/3]

LVL1::CPMTobRoI::CPMTobRoI ( )

Definition at line 30 of file CPMTobRoI.cxx.

30  : m_roiWord(0)
31 {
32 }

◆ CPMTobRoI() [2/3]

LVL1::CPMTobRoI::CPMTobRoI ( uint32_t  roiWord)

Definition at line 34 of file CPMTobRoI.cxx.

35 {
36 }

◆ CPMTobRoI() [3/3]

LVL1::CPMTobRoI::CPMTobRoI ( int  crate,
int  cpm,
int  chip,
int  location,
int  type,
int  energy,
int  isol 
)

Definition at line 38 of file CPMTobRoI.cxx.

◆ ~CPMTobRoI()

LVL1::CPMTobRoI::~CPMTobRoI ( )

Definition at line 51 of file CPMTobRoI.cxx.

52 {
53 }

Member Function Documentation

◆ chip()

int LVL1::CPMTobRoI::chip ( ) const
inline

Return CP chip number (0-7)

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

88 {
89  return (m_roiWord >> s_chipBit) & s_chipMask;
90 }

◆ cpm()

int LVL1::CPMTobRoI::cpm ( ) const
inline

Return CPM number (1-14)

Definition at line 82 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h.

83 {
84  return (m_roiWord >> s_cpmBit) & s_cpmMask;
85 }

◆ crate()

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

Return crate number (0-1)

Definition at line 77 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h.

78 {
79  return (m_roiWord >> s_crateBit) & s_crateMask;
80 }

◆ energy()

int LVL1::CPMTobRoI::energy ( ) const
inline

Return energy.

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

103 {
104  return (m_roiWord >> s_energyBit) & s_energyMask;
105 }

◆ isolation()

int LVL1::CPMTobRoI::isolation ( ) const
inline

Return isolation.

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

108 {
109  return (m_roiWord >> s_isolBit) & s_isolMask;
110 }

◆ location()

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

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

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

93 {
95 }

◆ roiWord()

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

Return packed RoI word.

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

113 {
114  return m_roiWord;
115 }

◆ setRoiWord()

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

Set RoI word with ID check.

Definition at line 57 of file CPMTobRoI.cxx.

58 {
59  int wordId = (roiWord >> s_wordIdBit) & s_wordIdMask;
60  bool valid = ((wordId == s_wordIdVal) ||
61  (wordId == (s_wordIdVal|s_typeMask)));
62  if (valid) m_roiWord = roiWord;
63  return valid;
64 }

◆ type()

int LVL1::CPMTobRoI::type ( ) const
inline

Return type em/tau (0/1)

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

98 {
99  return (m_roiWord >> s_wordIdBit) & s_typeMask;
100 }

Member Data Documentation

◆ m_roiWord

uint32_t LVL1::CPMTobRoI::m_roiWord
private

RoI word.

Definition at line 73 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h.

◆ s_chipBit

const int LVL1::CPMTobRoI::s_chipBit = 19
staticprivate

◆ s_chipMask

const int LVL1::CPMTobRoI::s_chipMask = 0x7
staticprivate

◆ s_cpmBit

const int LVL1::CPMTobRoI::s_cpmBit = 22
staticprivate

◆ s_cpmMask

const int LVL1::CPMTobRoI::s_cpmMask = 0xf
staticprivate

◆ s_crateBit

const int LVL1::CPMTobRoI::s_crateBit = 26
staticprivate

◆ s_crateMask

const int LVL1::CPMTobRoI::s_crateMask = 0x3
staticprivate

◆ s_energyBit

const int LVL1::CPMTobRoI::s_energyBit = 0
staticprivate

◆ s_energyMask

const int LVL1::CPMTobRoI::s_energyMask = 0xff
staticprivate

◆ s_isolBit

const int LVL1::CPMTobRoI::s_isolBit = 8
staticprivate

◆ s_isolMask

const int LVL1::CPMTobRoI::s_isolMask = 0x1f
staticprivate

◆ s_locationBit

const int LVL1::CPMTobRoI::s_locationBit = 16
staticprivate

◆ s_locationMask

const int LVL1::CPMTobRoI::s_locationMask = 0x7
staticprivate

◆ s_typeMask

const int LVL1::CPMTobRoI::s_typeMask = 0x1
staticprivate

◆ s_wordIdBit

const int LVL1::CPMTobRoI::s_wordIdBit = 28
staticprivate

◆ s_wordIdMask

const int LVL1::CPMTobRoI::s_wordIdMask = 0xf
staticprivate

◆ s_wordIdVal

const unsigned int LVL1::CPMTobRoI::s_wordIdVal = 0xa
staticprivate

RoI word ID.

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


The documentation for this class was generated from the following files:
LVL1::CPMTobRoI::cpm
int cpm() const
Return CPM number (1-14)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:82
LVL1::CPMTobRoI::type
int type() const
Return type em/tau (0/1)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:97
LVL1::CPMTobRoI::energy
int energy() const
Return energy.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:102
LVL1::CPMTobRoI::s_cpmBit
static const int s_cpmBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:57
LVL1::CPMTobRoI::s_wordIdMask
static const int s_wordIdMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:63
LVL1::CPMTobRoI::s_crateMask
static const int s_crateMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:64
LVL1::CPMTobRoI::s_locationMask
static const int s_locationMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:67
LVL1::CPMTobRoI::roiWord
uint32_t roiWord() const
Return packed RoI word.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:112
calibdata.valid
list valid
Definition: calibdata.py:45
LVL1::CPMTobRoI::s_isolBit
static const int s_isolBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:60
LVL1::CPMTobRoI::s_crateBit
static const int s_crateBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:56
LVL1::CPMTobRoI::s_locationBit
static const int s_locationBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:59
LVL1::CPMTobRoI::s_typeMask
static const int s_typeMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:70
LVL1::CPMTobRoI::crate
int crate() const
Return crate number (0-1)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:77
LVL1::CPMTobRoI::chip
int chip() const
Return CP chip number (0-7)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:87
LVL1::CPMTobRoI::s_isolMask
static const int s_isolMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:68
LVL1::CPMTobRoI::s_wordIdBit
static const int s_wordIdBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:55
LVL1::CPMTobRoI::s_chipMask
static const int s_chipMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:66
LVL1::CPMTobRoI::m_roiWord
uint32_t m_roiWord
RoI word.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:73
LVL1::CPMTobRoI::s_energyBit
static const int s_energyBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:61
LVL1::CPMTobRoI::location
int location() const
Return location (RoI local coords) (0-7)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:92
LVL1::CPMTobRoI::s_chipBit
static const int s_chipBit
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:58
LVL1::CPMTobRoI::s_energyMask
static const int s_energyMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:69
LVL1::CPMTobRoI::s_cpmMask
static const int s_cpmMask
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:65
LVL1::CPMTobRoI::s_wordIdVal
static const unsigned int s_wordIdVal
RoI word ID.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTobRoI.h:53