ATLAS Offline Software
|
CP TOB data for L1Topo. More...
#include <CPTopoTOB.h>
Public Member Functions | |
CPTopoTOB () | |
CPTopoTOB (int crate, int cmx, uint32_t tobWord) | |
CPTopoTOB (int crate, int cmx, int cpm, int chip, int location, int isolation, int et) | |
CPTopoTOB (uint32_t roiWord) | |
~CPTopoTOB () | |
int | crate () const |
Return crate number (0-3) More... | |
int | cmx () const |
Return CMX number (0-1) More... | |
int | cpm () const |
Return CPM number (1-14) More... | |
int | chip () const |
Return CP chip number (0-7) More... | |
unsigned int | location () const |
Return location (RoI local coords) (0-7) More... | |
unsigned int | isolation () const |
Return isolation mask. More... | |
unsigned int | et () const |
ET value. More... | |
int | etaIndex () const |
Extract eta index from the TOB data (0-49) More... | |
int | phiIndex () const |
Extract phi index from the TOB data (0-63) More... | |
int | ieta () const |
int | iphi () const |
int | iphiSigned () const |
float | eta () const |
float | phi () const |
uint32_t | tobWord () const |
Return packed TOB word. More... | |
uint32_t | roiWord () const |
Return corresponding RoI word (useful for Topo simulation) More... | |
Private Attributes | |
int | m_crate |
crate More... | |
int | m_cmx |
CMX (EM or Tau) More... | |
uint32_t | m_tobWord |
RoI word. More... | |
Static Private Attributes | |
static const int | s_cpmBit = 19 |
static const int | s_chipBit = 16 |
static const int | s_locationBit = 13 |
static const int | s_isolBit = 8 |
static const int | s_etBit = 0 |
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_etMask = 0xff |
static const int | s_chipPhiWidth = 2 |
static const int | s_cpmEtaWidth = 4 |
static const int | s_cpmPhiWidth = 16 |
static const int | s_cpmEtaOffset = 32 |
static const int | s_cpmPhiOffset = 0 |
static const int | s_cpmPhiBins = 64 |
Contains a Cluster Processor TOB word plus crate and CMX numbers. Plus functions to return individual data members
Definition at line 19 of file CPTopoTOB.h.
LVL1::CPTopoTOB::CPTopoTOB | ( | ) |
Definition at line 32 of file CPTopoTOB.cxx.
LVL1::CPTopoTOB::CPTopoTOB | ( | int | crate, |
int | cmx, | ||
uint32_t | tobWord | ||
) |
LVL1::CPTopoTOB::CPTopoTOB | ( | int | crate, |
int | cmx, | ||
int | cpm, | ||
int | chip, | ||
int | location, | ||
int | isolation, | ||
int | et | ||
) |
Definition at line 40 of file CPTopoTOB.cxx.
LVL1::CPTopoTOB::CPTopoTOB | ( | uint32_t | roiWord | ) |
LVL1::CPTopoTOB::~CPTopoTOB | ( | ) |
Definition at line 62 of file CPTopoTOB.cxx.
|
inline |
Return CP chip number (0-7)
Definition at line 113 of file CPTopoTOB.h.
|
inline |
|
inline |
Return CPM number (1-14)
Definition at line 108 of file CPTopoTOB.h.
|
inline |
|
inline |
ET value.
Definition at line 128 of file CPTopoTOB.h.
float LVL1::CPTopoTOB::eta | ( | ) | const |
Definition at line 82 of file CPTopoTOB.cxx.
int LVL1::CPTopoTOB::etaIndex | ( | ) | const |
Extract eta index from the TOB data (0-49)
Definition at line 67 of file CPTopoTOB.cxx.
int LVL1::CPTopoTOB::ieta | ( | ) | const |
Definition at line 75 of file CPTopoTOB.cxx.
int LVL1::CPTopoTOB::iphi | ( | ) | const |
int LVL1::CPTopoTOB::iphiSigned | ( | ) | const |
|
inline |
Return isolation mask.
Definition at line 123 of file CPTopoTOB.h.
|
inline |
Return location (RoI local coords) (0-7)
Definition at line 118 of file CPTopoTOB.h.
float LVL1::CPTopoTOB::phi | ( | ) | const |
Definition at line 111 of file CPTopoTOB.cxx.
int LVL1::CPTopoTOB::phiIndex | ( | ) | const |
Extract phi index from the TOB data (0-63)
Definition at line 88 of file CPTopoTOB.cxx.
uint32_t LVL1::CPTopoTOB::roiWord | ( | ) | const |
Return corresponding RoI word (useful for Topo simulation)
Definition at line 117 of file CPTopoTOB.cxx.
|
inline |
Return packed TOB word.
Definition at line 133 of file CPTopoTOB.h.
|
private |
CMX (EM or Tau)
Definition at line 91 of file CPTopoTOB.h.
|
private |
crate
Definition at line 88 of file CPTopoTOB.h.
|
private |
RoI word.
Definition at line 94 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 69 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 75 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 80 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 68 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 83 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 81 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 74 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 85 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 84 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 82 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 72 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 78 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 71 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 77 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 70 of file CPTopoTOB.h.
|
staticprivate |
Definition at line 76 of file CPTopoTOB.h.