L1 GCT HF ring Et sums. More...
#include <L1GctHFBitCounts.h>
Public Member Functions | |
uint16_t | bitCount (unsigned const i) const |
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... | |
L1GctHFBitCounts () | |
default constructor (for vector initialisation etc.) More... | |
bool | operator!= (const L1GctHFBitCounts &c) const |
inequality operator More... | |
bool | operator== (const L1GctHFBitCounts &c) const |
operators More... | |
uint16_t | raw () const |
the raw data More... | |
void | setBitCount (unsigned i, uint16_t c) |
set a sum More... | |
void | setBx (int16_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... | |
~L1GctHFBitCounts () | |
destructor More... | |
Static Public Member Functions | |
static L1GctHFBitCounts | fromConcHFBitCounts (const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data) |
static L1GctHFBitCounts | fromGctEmulator (const int16_t bx, const uint16_t bitCountPosEtaRing1, const uint16_t bitCountNegEtaRing1, const uint16_t bitCountPosEtaRing2, const uint16_t bitCountNegEtaRing2) |
named ctor for GCT emulator More... | |
static unsigned | nCounts () |
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 L1GctHFBitCounts.h.
L1GctHFBitCounts::L1GctHFBitCounts | ( | ) |
default constructor (for vector initialisation etc.)
set static consts
default constructor (for vector initialisation etc.)
Definition at line 8 of file L1GctHFBitCounts.cc.
L1GctHFBitCounts::~L1GctHFBitCounts | ( | ) |
uint16_t L1GctHFBitCounts::bitCount | ( | unsigned const | i | ) | const |
get a bit count index : sum 0 : Ring 1 Positive Rapidity HF bit count 1 : Ring 1 Negative Rapidity HF bit count 2 : Ring 2 Positive Rapidity HF bit count 3 : Ring 2 Negative Rapidity HF bit count
Definition at line 47 of file L1GctHFBitCounts.cc.
References data_, and mps_fire::i.
Referenced by L1GtHfBitCountsCondition::evaluateCondition(), and L1GlobalTriggerPSB::fillPsbBlock().
|
inline |
get BX number
Definition at line 58 of file L1GctHFBitCounts.h.
References bx_.
Referenced by fromConcHFBitCounts(), fromGctEmulator(), and setBx().
|
inline |
get GCT unpacker capture block
Definition at line 52 of file L1GctHFBitCounts.h.
References capBlock_.
Referenced by fromConcHFBitCounts(), and setCapBlock().
|
inline |
get index within GCT unpacker capture block
Definition at line 55 of file L1GctHFBitCounts.h.
References capIndex_.
Referenced by fromConcHFBitCounts(), and setCapIndex().
|
inline |
|
static |
named ctor for unpacker note this expects a 32 bit word that also contains the HF ring Et sums, which are ignored
Definition at line 14 of file L1GctHFBitCounts.cc.
References bx(), HltBtagPostValidation_cff::c, capBlock(), capIndex(), and data.
Referenced by GctFormatTranslateV35::blockToGctJetCandsAndCounts(), GctFormatTranslateV38::blockToGctJetCandsAndCounts(), and GctFormatTranslateMCLegacy::blockToGctJetCandsAndCounts().
|
static |
named ctor for GCT emulator
Definition at line 27 of file L1GctHFBitCounts.cc.
References bx(), and HltBtagPostValidation_cff::c.
Referenced by L1GlobalCaloTrigger::getHFBitCountsCollection(), and L1TCaloUpgradeToGCTConverter::produce().
|
inlinestatic |
Definition at line 49 of file L1GctHFBitCounts.h.
References N_SUMS.
Referenced by L1GlobalTriggerPSB::fillPsbBlock().
|
inline |
inequality operator
Definition at line 97 of file L1GctHFBitCounts.h.
References HltBtagPostValidation_cff::c.
bool L1GctHFBitCounts::operator== | ( | const L1GctHFBitCounts & | c | ) | const |
|
inline |
the raw data
Definition at line 64 of file L1GctHFBitCounts.h.
References data_.
Referenced by L1GtPatternGenerator::analyze(), and operator==().
void L1GctHFBitCounts::setBitCount | ( | unsigned | i, |
uint16_t | c | ||
) |
set a sum
Definition at line 53 of file L1GctHFBitCounts.cc.
References HltBtagPostValidation_cff::c, data_, and mps_fire::i.
|
inline |
|
inline |
set cap block
Definition at line 77 of file L1GctHFBitCounts.h.
References capBlock(), and capBlock_.
|
inline |
set cap index
Definition at line 80 of file L1GctHFBitCounts.h.
References capIndex(), and capIndex_.
|
inline |
|
private |
Definition at line 103 of file L1GctHFBitCounts.h.
|
private |
Definition at line 101 of file L1GctHFBitCounts.h.
Referenced by capBlock(), and setCapBlock().
|
private |
Definition at line 102 of file L1GctHFBitCounts.h.
Referenced by capIndex(), and setCapIndex().
|
private |
Definition at line 106 of file L1GctHFBitCounts.h.
Referenced by bitCount(), empty(), raw(), setBitCount(), and setData().
|
static |
Definition at line 18 of file L1GctHFBitCounts.h.
Referenced by nCounts().