Persistable copy of missing Et measured at Level-1. More...
#include <L1GctHtMiss.h>
Public Types | |
enum | numberOfBits { kHtMissPhiNBits = 5, kHtMissMagNBits = 7, kHtMissPhiMask = (1 << kHtMissPhiNBits) - 1, kHtMissMagMask = (1 << kHtMissMagNBits) - 1, kHtMissPhiShift = 0, kHtMissMagShift = kHtMissPhiNBits, kHtMissOFlowBit = (1 << (kHtMissPhiNBits + kHtMissMagNBits)), kHtMissPhiNBins = 18, kRawCtorMask = kHtMissOFlowBit | (kHtMissMagMask << kHtMissMagShift) | (kHtMissPhiMask << kHtMissPhiShift) } |
Public Member Functions | |
int16_t | bx () const |
get bunch-crossing index | |
bool | empty () const |
empty method (= false; missing Et is always calculated) | |
unsigned | et () const |
get the magnitude | |
L1GctHtMiss (uint32_t rawData) | |
For use with raw data from the unpacker. | |
L1GctHtMiss (unsigned et, unsigned phi, bool oflow) | |
L1GctHtMiss () | |
L1GctHtMiss (unsigned et, unsigned phi, bool oflow, int16_t bx) | |
L1GctHtMiss (uint32_t rawData, int16_t bx) | |
For use with raw data from the unpacker. | |
std::string | name () const |
name method | |
int | operator!= (const L1GctHtMiss &e) const |
inequality operator | |
int | operator== (const L1GctHtMiss &e) const |
equality operator | |
bool | overFlow () const |
get the overflow | |
unsigned | phi () const |
get the Et | |
uint32_t | raw () const |
get the data | |
virtual | ~L1GctHtMiss () |
Private Attributes | |
int16_t | m_bx |
uint32_t | m_data |
Persistable copy of missing Et measured at Level-1.
Definition at line 16 of file L1GctHtMiss.h.
To match the RAW format: HtMissPhi is on bits 4:0, HtMissMagnitude is on bits 11:5, Overflow flag on bit 12, All other bits will be be zero.
kHtMissPhiNBits | |
kHtMissMagNBits | |
kHtMissPhiMask | |
kHtMissMagMask | |
kHtMissPhiShift | |
kHtMissMagShift | |
kHtMissOFlowBit | |
kHtMissPhiNBins | |
kRawCtorMask |
Definition at line 24 of file L1GctHtMiss.h.
{ kHtMissPhiNBits = 5, kHtMissMagNBits = 7, kHtMissPhiMask = (1 << kHtMissPhiNBits) - 1, kHtMissMagMask = (1 << kHtMissMagNBits) - 1, kHtMissPhiShift = 0, kHtMissMagShift = kHtMissPhiNBits, kHtMissOFlowBit = (1 << (kHtMissPhiNBits + kHtMissMagNBits)), kHtMissPhiNBins = 18, kRawCtorMask = kHtMissOFlowBit | (kHtMissMagMask << kHtMissMagShift) | (kHtMissPhiMask << kHtMissPhiShift) };
L1GctHtMiss::L1GctHtMiss | ( | ) |
Definition at line 4 of file L1GctHtMiss.cc.
L1GctHtMiss::L1GctHtMiss | ( | uint32_t | rawData | ) |
For use with raw data from the unpacker.
Definition at line 11 of file L1GctHtMiss.cc.
: m_data(rawData & kRawCtorMask), m_bx(0) { }
L1GctHtMiss::L1GctHtMiss | ( | uint32_t | rawData, |
int16_t | bx | ||
) |
For use with raw data from the unpacker.
Definition at line 13 of file L1GctHtMiss.cc.
: m_data(rawData & kRawCtorMask), m_bx(bx) { }
L1GctHtMiss::L1GctHtMiss | ( | unsigned | et, |
unsigned | phi, | ||
bool | oflow | ||
) |
Definition at line 15 of file L1GctHtMiss.cc.
References kHtMissMagMask, kHtMissMagShift, kHtMissOFlowBit, kHtMissPhiMask, kHtMissPhiNBins, kHtMissPhiShift, and m_data.
: m_data(0), m_bx(0) { if ((et <= kHtMissMagMask) && (phi < kHtMissPhiNBins)) { m_data = (oflow ? kHtMissOFlowBit : 0) | ((et & kHtMissMagMask) << kHtMissMagShift) | ((phi & kHtMissPhiMask) << kHtMissPhiShift); } else { m_data = ((et & kHtMissMagMask) << kHtMissMagShift) | kHtMissOFlowBit ; } }
L1GctHtMiss::L1GctHtMiss | ( | unsigned | et, |
unsigned | phi, | ||
bool | oflow, | ||
int16_t | bx | ||
) |
Definition at line 28 of file L1GctHtMiss.cc.
References kHtMissMagMask, kHtMissMagShift, kHtMissOFlowBit, kHtMissPhiMask, kHtMissPhiNBins, kHtMissPhiShift, and m_data.
: m_data(0), m_bx(bx) { if ((et <= kHtMissMagMask) && (phi < kHtMissPhiNBins)) { m_data = (oflow ? kHtMissOFlowBit : 0) | ((et & kHtMissMagMask) << kHtMissMagShift) | ((phi & kHtMissPhiMask) << kHtMissPhiShift); } else { m_data = ((et & kHtMissMagMask) << kHtMissMagShift) | kHtMissOFlowBit ; } }
L1GctHtMiss::~L1GctHtMiss | ( | ) | [virtual] |
Definition at line 41 of file L1GctHtMiss.cc.
{ }
int16_t L1GctHtMiss::bx | ( | ) | const [inline] |
get bunch-crossing index
Definition at line 69 of file L1GctHtMiss.h.
References m_bx.
{ return m_bx; }
bool L1GctHtMiss::empty | ( | ) | const [inline] |
empty method (= false; missing Et is always calculated)
Definition at line 54 of file L1GctHtMiss.h.
{ return false; }
unsigned L1GctHtMiss::et | ( | ) | const [inline] |
get the magnitude
Definition at line 60 of file L1GctHtMiss.h.
References kHtMissMagMask, kHtMissMagShift, and m_data.
Referenced by L1GtEnergySumCondition::evaluateCondition(), operator<<(), L1GlobalTriggerPSB::printGctObjectData(), and GctFormatTranslateMCLegacy::writeGctOutJetBlock().
{ return (m_data >> kHtMissMagShift) & kHtMissMagMask; }
std::string L1GctHtMiss::name | ( | ) | const [inline] |
int L1GctHtMiss::operator!= | ( | const L1GctHtMiss & | e | ) | const [inline] |
inequality operator
Definition at line 75 of file L1GctHtMiss.h.
References alignCSCRings::e.
{ return !(*this == e); }
int L1GctHtMiss::operator== | ( | const L1GctHtMiss & | e | ) | const [inline] |
bool L1GctHtMiss::overFlow | ( | ) | const [inline] |
get the overflow
Definition at line 63 of file L1GctHtMiss.h.
References kHtMissOFlowBit, and m_data.
Referenced by L1GtEnergySumCondition::evaluateCondition(), operator<<(), and GctFormatTranslateMCLegacy::writeGctOutJetBlock().
{ return (m_data & kHtMissOFlowBit)!=0; }
unsigned L1GctHtMiss::phi | ( | ) | const [inline] |
get the Et
Definition at line 66 of file L1GctHtMiss.h.
References kHtMissPhiMask, kHtMissPhiShift, and m_data.
Referenced by L1GtCorrelationCondition::evaluateCondition(), L1GtEnergySumCondition::evaluateCondition(), operator<<(), L1GlobalTriggerPSB::printGctObjectData(), and GctFormatTranslateMCLegacy::writeGctOutJetBlock().
{ return (m_data >> kHtMissPhiShift) & kHtMissPhiMask; }
uint32_t L1GctHtMiss::raw | ( | ) | const [inline] |
get the data
Definition at line 57 of file L1GctHtMiss.h.
References m_data.
Referenced by L1GtPatternGenerator::analyze(), and operator==().
{ return m_data; }
int16_t L1GctHtMiss::m_bx [private] |
Definition at line 80 of file L1GctHtMiss.h.
Referenced by bx().
uint32_t L1GctHtMiss::m_data [private] |
Definition at line 79 of file L1GctHtMiss.h.
Referenced by et(), L1GctHtMiss(), operator==(), overFlow(), phi(), and raw().