#include <DataFormats/L1GlobalCaloTrigger/interface/L1GctEtTotal.h>
Public Types | |
enum | numberOfBits { kEtTotalNBits = 12, kEtTotalOFlowBit = 1 << kEtTotalNBits, kEtTotalMaxValue = kEtTotalOFlowBit - 1, kRawCtorMask = kEtTotalOFlowBit | kEtTotalMaxValue } |
Public Member Functions | |
int16_t | bx () const |
get bunch-crossing index | |
bool | empty () const |
empty method (= false; total Et is always calculated) | |
unsigned | et () const |
get the Et | |
L1GctEtTotal (unsigned et, bool oflow, int16_t bx) | |
L1GctEtTotal (unsigned et, bool oflow) | |
L1GctEtTotal (uint16_t rawData, int16_t bx) | |
L1GctEtTotal (uint16_t rawData) | |
L1GctEtTotal () | |
std::string | name () const |
name method | |
int | operator!= (const L1GctEtTotal &e) const |
inequality operator | |
int | operator== (const L1GctEtTotal &e) const |
equality operator | |
bool | overFlow () const |
get the overflow | |
uint16_t | raw () const |
get the data | |
virtual | ~L1GctEtTotal () |
Private Attributes | |
int16_t | m_bx |
uint16_t | m_data |
Definition at line 18 of file L1GctEtTotal.h.
Definition at line 21 of file L1GctEtTotal.h.
00021 { 00022 kEtTotalNBits = 12, 00023 kEtTotalOFlowBit = 1 << kEtTotalNBits, 00024 kEtTotalMaxValue = kEtTotalOFlowBit - 1, 00025 kRawCtorMask = kEtTotalOFlowBit | kEtTotalMaxValue 00026 };
L1GctEtTotal::L1GctEtTotal | ( | ) |
L1GctEtTotal::L1GctEtTotal | ( | uint16_t | rawData | ) |
L1GctEtTotal::L1GctEtTotal | ( | uint16_t | rawData, | |
int16_t | bx | |||
) |
L1GctEtTotal::L1GctEtTotal | ( | unsigned | et, | |
bool | oflow | |||
) |
Definition at line 10 of file L1GctEtTotal.cc.
References kEtTotalMaxValue, kEtTotalOFlowBit, and m_data.
00010 : m_data(0), 00011 m_bx(0) 00012 { 00013 m_data = (et & kEtTotalMaxValue) | ((oflow || et>kEtTotalMaxValue) ? kEtTotalOFlowBit : 0); 00014 }
L1GctEtTotal::L1GctEtTotal | ( | unsigned | et, | |
bool | oflow, | |||
int16_t | bx | |||
) |
Definition at line 16 of file L1GctEtTotal.cc.
References kEtTotalMaxValue, kEtTotalOFlowBit, and m_data.
00016 : m_data(0), 00017 m_bx(bx) 00018 { 00019 m_data = (et & kEtTotalMaxValue) | ((oflow || et>kEtTotalMaxValue) ? kEtTotalOFlowBit : 0); 00020 }
L1GctEtTotal::~L1GctEtTotal | ( | ) | [virtual] |
int16_t L1GctEtTotal::bx | ( | ) | const [inline] |
get bunch-crossing index
Definition at line 51 of file L1GctEtTotal.h.
References m_bx.
00051 { return m_bx; }
bool L1GctEtTotal::empty | ( | ) | const [inline] |
unsigned L1GctEtTotal::et | ( | ) | const [inline] |
get the Et
Definition at line 45 of file L1GctEtTotal.h.
References kEtTotalMaxValue, and m_data.
Referenced by HLTGetDigi::analyze(), L1GtEnergySumCondition::evaluateCondition(), operator<<(), and L1GlobalTriggerPSB::printGctObjectData().
00045 { return m_data & kEtTotalMaxValue; }
std::string L1GctEtTotal::name | ( | ) | const [inline] |
int L1GctEtTotal::operator!= | ( | const L1GctEtTotal & | e | ) | const [inline] |
int L1GctEtTotal::operator== | ( | const L1GctEtTotal & | e | ) | const [inline] |
bool L1GctEtTotal::overFlow | ( | ) | const [inline] |
get the overflow
Definition at line 48 of file L1GctEtTotal.h.
References kEtTotalOFlowBit, and m_data.
Referenced by operator<<().
00048 { return (m_data & kEtTotalOFlowBit)!=0; }
uint16_t L1GctEtTotal::raw | ( | ) | const [inline] |
get the data
Definition at line 42 of file L1GctEtTotal.h.
References m_data.
Referenced by L1GlobalTriggerPSB::fillPsbBlock(), operator!=(), and operator==().
00042 { return m_data; }
int16_t L1GctEtTotal::m_bx [private] |
uint16_t L1GctEtTotal::m_data [private] |
Definition at line 61 of file L1GctEtTotal.h.
Referenced by et(), L1GctEtTotal(), operator!=(), operator==(), overFlow(), and raw().