L1 GCT HF ring Et sums. More...
#include <L1GctHFRingEtSums.h>
Public Member Functions | |
int16_t | bx () const |
get BX number More... | |
uint16_t | capBlock () const |
get GCT unpacker capture block More... | |
uint16_t | capIndex () const |
get index within GCT unpacker capture block More... | |
bool | empty () const |
is the sum non-zero More... | |
uint16_t | etSum (unsigned const i) const |
L1GctHFRingEtSums () | |
default constructor (for vector initialisation etc.) More... | |
bool | operator!= (const L1GctHFRingEtSums &c) const |
inequality operator More... | |
bool | operator== (const L1GctHFRingEtSums &c) const |
operators More... | |
uint16_t | raw () const |
get the raw data More... | |
void | setBx (uint16_t bx) |
set bx More... | |
void | setCapBlock (uint16_t capBlock) |
set cap block More... | |
void | setCapIndex (uint16_t capIndex) |
set cap index More... | |
void | setData (uint32_t data) |
set the raw data More... | |
void | setEtSum (unsigned i, uint16_t et) |
set a sum More... | |
~L1GctHFRingEtSums () | |
destructor More... | |
Static Public Member Functions | |
static L1GctHFRingEtSums | fromConcRingSums (const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data) |
static L1GctHFRingEtSums | fromGctEmulator (const int16_t bx, const uint16_t etSumPosEtaRing1, const uint16_t etSumNegEtaRing1, const uint16_t etSumPosEtaRing2, const uint16_t etSumNegEtaRing2) |
named ctor for GCT emulator More... | |
static unsigned | nSums () |
Static Public Attributes | |
static const unsigned | N_SUMS = 4 |
Private Attributes | |
int16_t | bx_ |
uint16_t | capBlock_ |
uint16_t | capIndex_ |
uint16_t | data_ |
L1 GCT HF ring Et sums.
Will store four Et sums of 3 bits each
Definition at line 16 of file L1GctHFRingEtSums.h.
L1GctHFRingEtSums::L1GctHFRingEtSums | ( | ) |
L1GctHFRingEtSums::~L1GctHFRingEtSums | ( | ) |
|
inline |
get BX number
Definition at line 58 of file L1GctHFRingEtSums.h.
References bx_.
Referenced by fromConcRingSums(), fromGctEmulator(), and setBx().
|
inline |
get GCT unpacker capture block
Definition at line 52 of file L1GctHFRingEtSums.h.
References capBlock_.
Referenced by fromConcRingSums(), and setCapBlock().
|
inline |
get index within GCT unpacker capture block
Definition at line 55 of file L1GctHFRingEtSums.h.
References capIndex_.
Referenced by fromConcRingSums(), and setCapIndex().
|
inline |
uint16_t L1GctHFRingEtSums::etSum | ( | unsigned const | i | ) | const |
get an Et sum index : sum 0 : Ring 1 Positive Rapidity HF Et sum 1 : Ring 1 Negative Rapidity HF Et sum 2 : Ring 2 Positive Rapidity HF Et sum 3 : Ring 2 Negative Rapidity HF Et sum
Definition at line 50 of file L1GctHFRingEtSums.cc.
References data_, and mps_fire::i.
Referenced by L1GtHfRingEtSumsCondition::evaluateCondition(), and L1GlobalTriggerPSB::fillPsbBlock().
|
static |
named ctor for unpacker note that this expects a 32 bit word that also contains the HF bit counts, which are ignored
Definition at line 14 of file L1GctHFRingEtSums.cc.
References bx(), capBlock(), capIndex(), data, and alignCSCRings::s.
Referenced by GctFormatTranslateV35::blockToGctJetCandsAndCounts(), GctFormatTranslateV38::blockToGctJetCandsAndCounts(), and GctFormatTranslateMCLegacy::blockToGctJetCandsAndCounts().
|
static |
named ctor for GCT emulator
Definition at line 30 of file L1GctHFRingEtSums.cc.
References bx(), and alignCSCRings::s.
Referenced by L1GlobalCaloTrigger::getHFRingEtSumsCollection(), and L1TCaloUpgradeToGCTConverter::produce().
|
inlinestatic |
Definition at line 47 of file L1GctHFRingEtSums.h.
References N_SUMS.
Referenced by L1GlobalTriggerPSB::fillPsbBlock().
|
inline |
bool L1GctHFRingEtSums::operator== | ( | const L1GctHFRingEtSums & | c | ) | const |
|
inline |
get the raw data
Definition at line 64 of file L1GctHFRingEtSums.h.
References data_.
Referenced by L1GtPatternGenerator::analyze(), and operator==().
|
inline |
|
inline |
set cap block
Definition at line 77 of file L1GctHFRingEtSums.h.
References capBlock(), and capBlock_.
|
inline |
set cap index
Definition at line 80 of file L1GctHFRingEtSums.h.
References capIndex(), and capIndex_.
|
inline |
void L1GctHFRingEtSums::setEtSum | ( | unsigned | i, |
uint16_t | et | ||
) |
set a sum
Definition at line 56 of file L1GctHFRingEtSums.cc.
References data_, EgHLTOffHistBins_cfi::et, and mps_fire::i.
Referenced by L1TCaloUpgradeToGCTConverter::produce().
|
private |
Definition at line 103 of file L1GctHFRingEtSums.h.
|
private |
Definition at line 101 of file L1GctHFRingEtSums.h.
Referenced by capBlock(), and setCapBlock().
|
private |
Definition at line 102 of file L1GctHFRingEtSums.h.
Referenced by capIndex(), and setCapIndex().
|
private |
Definition at line 106 of file L1GctHFRingEtSums.h.
Referenced by empty(), etSum(), raw(), setData(), and setEtSum().
|
static |
Definition at line 18 of file L1GctHFRingEtSums.h.
Referenced by nSums().