Persistable copy of total Ht measured at Level-1. More...
#include <L1GctEtHad.h>
Public Types | |
enum | numberOfBits { kEtHadNBits = 12, kEtHadOFlowBit = 1 << kEtHadNBits, kEtHadMaxValue = kEtHadOFlowBit - 1, kRawCtorMask = kEtHadOFlowBit | kEtHadMaxValue } |
Public Member Functions | |
int16_t | bx () const |
get bunch-crossing index | |
bool | empty () const |
empty method (= false; hadronic Et is always calculated) | |
unsigned | et () const |
get the Et | |
L1GctEtHad (uint16_t rawData) | |
L1GctEtHad (unsigned et, bool oflow) | |
L1GctEtHad () | |
L1GctEtHad (unsigned et, bool oflow, int16_t bx) | |
L1GctEtHad (uint16_t rawData, int16_t bx) | |
std::string | name () const |
name method | |
int | operator!= (const L1GctEtHad &e) const |
inequality operator | |
int | operator== (const L1GctEtHad &e) const |
equality operator | |
bool | overFlow () const |
get the overflow | |
uint16_t | raw () const |
get the data | |
virtual | ~L1GctEtHad () |
Private Attributes | |
int16_t | m_bx |
uint16_t | m_data |
Persistable copy of total Ht measured at Level-1.
Definition at line 18 of file L1GctEtHad.h.
Definition at line 21 of file L1GctEtHad.h.
{ kEtHadNBits = 12, kEtHadOFlowBit = 1 << kEtHadNBits, kEtHadMaxValue = kEtHadOFlowBit - 1, kRawCtorMask = kEtHadOFlowBit | kEtHadMaxValue };
L1GctEtHad::L1GctEtHad | ( | ) |
Definition at line 4 of file L1GctEtHad.cc.
L1GctEtHad::L1GctEtHad | ( | uint16_t | rawData | ) |
Definition at line 6 of file L1GctEtHad.cc.
: m_data(rawData & kRawCtorMask), m_bx(0) { }
L1GctEtHad::L1GctEtHad | ( | uint16_t | rawData, |
int16_t | bx | ||
) |
Definition at line 8 of file L1GctEtHad.cc.
: m_data(rawData & kRawCtorMask), m_bx(bx) { }
L1GctEtHad::L1GctEtHad | ( | unsigned | et, |
bool | oflow | ||
) |
Definition at line 10 of file L1GctEtHad.cc.
References kEtHadMaxValue, kEtHadOFlowBit, and m_data.
: m_data(0), m_bx(0) { m_data = (et & kEtHadMaxValue) | ((oflow || et>kEtHadMaxValue) ? kEtHadOFlowBit : 0); }
L1GctEtHad::L1GctEtHad | ( | unsigned | et, |
bool | oflow, | ||
int16_t | bx | ||
) |
Definition at line 16 of file L1GctEtHad.cc.
References kEtHadMaxValue, kEtHadOFlowBit, and m_data.
: m_data(0), m_bx(bx) { m_data = (et & kEtHadMaxValue) | ((oflow || et>kEtHadMaxValue) ? kEtHadOFlowBit : 0); }
L1GctEtHad::~L1GctEtHad | ( | ) | [virtual] |
Definition at line 22 of file L1GctEtHad.cc.
{ }
int16_t L1GctEtHad::bx | ( | ) | const [inline] |
get bunch-crossing index
Definition at line 51 of file L1GctEtHad.h.
References m_bx.
{ return m_bx; }
bool L1GctEtHad::empty | ( | ) | const [inline] |
empty method (= false; hadronic Et is always calculated)
Definition at line 39 of file L1GctEtHad.h.
{ return false; }
unsigned L1GctEtHad::et | ( | ) | const [inline] |
get the Et
Definition at line 45 of file L1GctEtHad.h.
References kEtHadMaxValue, and m_data.
Referenced by L1GtEnergySumCondition::evaluateCondition(), operator<<(), and L1GlobalTriggerPSB::printGctObjectData().
{ return m_data & kEtHadMaxValue; }
std::string L1GctEtHad::name | ( | ) | const [inline] |
int L1GctEtHad::operator!= | ( | const L1GctEtHad & | e | ) | const [inline] |
int L1GctEtHad::operator== | ( | const L1GctEtHad & | e | ) | const [inline] |
bool L1GctEtHad::overFlow | ( | ) | const [inline] |
get the overflow
Definition at line 48 of file L1GctEtHad.h.
References kEtHadOFlowBit, and m_data.
Referenced by L1GtEnergySumCondition::evaluateCondition(), and operator<<().
{ return (m_data & kEtHadOFlowBit)!=0; }
uint16_t L1GctEtHad::raw | ( | ) | const [inline] |
get the data
Definition at line 42 of file L1GctEtHad.h.
References m_data.
Referenced by L1GtPatternGenerator::analyze(), L1GlobalTriggerPSB::fillPsbBlock(), operator!=(), and operator==().
{ return m_data; }
int16_t L1GctEtHad::m_bx [private] |
Definition at line 62 of file L1GctEtHad.h.
Referenced by bx().
uint16_t L1GctEtHad::m_data [private] |
Definition at line 61 of file L1GctEtHad.h.
Referenced by et(), L1GctEtHad(), operator!=(), operator==(), overFlow(), and raw().