Base class for LookUp Tables. More...
#include <L1GctLut.h>
Public Member Functions | |
uint16_t | lutValue (const uint16_t lutAddress) const |
Access the look-up table contents for a given Address. More... | |
template<int KAddressBits, int KDataBits> | |
int | operator!= (const L1GctLut< KAddressBits, KDataBits > &rhsLut) const |
Inequality check between look-up tables. More... | |
template<int KAddressBits, int KDataBits> | |
int | operator== (const L1GctLut< KAddressBits, KDataBits > &rhsLut) const |
Equality check between look-up tables. More... | |
uint16_t | operator[] (const uint16_t lutAddress) const |
Access the look-up table contents for a given Address. More... | |
void | setTerse () |
bool | setupOk () |
void | setVerbose () |
control output messages More... | |
virtual | ~L1GctLut () |
Static Public Attributes | |
static const uint16_t | MAX_ADDRESS_BITMASK = (1 << NAddressBits) - 1 |
static const uint16_t | MAX_DATA_BITMASK = (1 << NDataBits) - 1 |
Protected Member Functions | |
template<int KAddressBits, int KDataBits> | |
bool | equalityCheck (const L1GctLut< KAddressBits, KDataBits > &c) const |
L1GctLut () | |
virtual uint16_t | value (const uint16_t lutAddress) const =0 |
Protected Attributes | |
bool | m_setupOk |
bool | m_verbose |
Private Member Functions | |
std::string | printHeader () const |
std::string | printLine (const int add) const |
Static Private Attributes | |
static const int | printWidth = 16 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const L1GctLut< NAddressBits, NDataBits > &lut) |
Overload << operator. More... | |
Base class for LookUp Tables.
Definition at line 20 of file L1GctLut.h.
|
virtual |
Definition at line 101 of file L1GctLut.h.
|
protected |
|
protected |
Definition at line 114 of file L1GctLut.h.
References L1GctLut< NAddressBits, NDataBits >::lutValue(), match(), and L1GctLut< NAddressBits, NDataBits >::MAX_ADDRESS_BITMASK.
Referenced by L1GctLut< 16, 12 >::operator!=(), L1GctLut< 16, 12 >::operator==(), and L1GctLut< 16, 12 >::setTerse().
uint16_t L1GctLut< NAddressBits, NDataBits >::lutValue | ( | const uint16_t | lutAddress | ) | const |
Access the look-up table contents for a given Address.
Definition at line 104 of file L1GctLut.h.
References data, L1GctLut< NAddressBits, NDataBits >::m_setupOk, L1GctLut< NAddressBits, NDataBits >::MAX_ADDRESS_BITMASK, L1GctLut< NAddressBits, NDataBits >::MAX_DATA_BITMASK, and L1GctLut< NAddressBits, NDataBits >::value().
Referenced by L1GctLut< NAddressBits, NDataBits >::equalityCheck(), L1GctLut< 16, 12 >::operator[](), L1GctLut< NAddressBits, NDataBits >::printLine(), and L1GctMet::useHtMissLutAlgo().
|
inline |
Inequality check between look-up tables.
Definition at line 60 of file L1GctLut.h.
|
inline |
Equality check between look-up tables.
Definition at line 56 of file L1GctLut.h.
|
inline |
Access the look-up table contents for a given Address.
Definition at line 52 of file L1GctLut.h.
|
private |
Definition at line 128 of file L1GctLut.h.
References a, L1GctLut< NAddressBits, NDataBits >::MAX_ADDRESS_BITMASK, and L1GctLut< NAddressBits, NDataBits >::printWidth.
Referenced by ntuplePrintersDiff.SeedPrinter::diff(), ntuplePrintersDiff.TrackPrinter::diff(), ntuplePrintersDiff.SeedPrinter::printSeed(), and ntuplePrintersDiff.TrackPrinter::printTrack().
|
private |
Definition at line 147 of file L1GctLut.h.
References a, Clusterizer1DCommons::add(), EnergyCorrector::c, L1GctLut< NAddressBits, NDataBits >::lutValue(), L1GctLut< NAddressBits, NDataBits >::MAX_ADDRESS_BITMASK, and L1GctLut< NAddressBits, NDataBits >::printWidth.
|
inline |
Definition at line 66 of file L1GctLut.h.
|
inline |
Definition at line 62 of file L1GctLut.h.
|
inline |
|
protectedpure virtual |
Implemented in L1GctHfEtSumsLut, L1GctHtMissLut, L1GctJetEtCalibrationLut, and L1GctHfBitCountsLut.
Referenced by average.Average::average(), L1GctLut< NAddressBits, NDataBits >::lutValue(), and L1GctLut< 16, 12 >::setTerse().
|
friend |
|
protected |
Definition at line 77 of file L1GctLut.h.
Referenced by L1GctLut< NAddressBits, NDataBits >::lutValue(), and L1GctLut< 16, 12 >::setupOk().
|
protected |
Definition at line 78 of file L1GctLut.h.
Referenced by L1GctLut< 16, 12 >::setTerse(), and L1GctLut< 16, 12 >::setVerbose().
|
static |
Definition at line 23 of file L1GctLut.h.
Referenced by L1GctLut< NAddressBits, NDataBits >::equalityCheck(), L1GctLut< NAddressBits, NDataBits >::lutValue(), L1GctLut< NAddressBits, NDataBits >::printHeader(), and L1GctLut< NAddressBits, NDataBits >::printLine().
|
static |
Definition at line 24 of file L1GctLut.h.
Referenced by L1GctLut< NAddressBits, NDataBits >::lutValue().
|
staticprivate |
Definition at line 83 of file L1GctLut.h.
Referenced by L1GctLut< NAddressBits, NDataBits >::printHeader(), and L1GctLut< NAddressBits, NDataBits >::printLine().