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 19 of file L1GctLut.h.
|
virtual |
Definition at line 99 of file L1GctLut.h.
|
protected |
Definition at line 96 of file L1GctLut.h.
|
protected |
Definition at line 112 of file L1GctLut.h.
References L1GctLut< NAddressBits, NDataBits >::lutValue(), and match().
Referenced by L1GctLut< 16, 12 >::operator!=(), and L1GctLut< 16, 12 >::operator==().
uint16_t L1GctLut< NAddressBits, NDataBits >::lutValue | ( | const uint16_t | lutAddress | ) | const |
Access the look-up table contents for a given Address.
Definition at line 102 of file L1GctLut.h.
References data, and relativeConstraints::value.
Referenced by L1GctLut< NAddressBits, NDataBits >::equalityCheck(), L1GctLut< 16, 12 >::operator[](), and L1GctMet::useHtMissLutAlgo().
|
inline |
Inequality check between look-up tables.
Definition at line 59 of file L1GctLut.h.
|
inline |
Equality check between look-up tables.
Definition at line 53 of file L1GctLut.h.
|
inline |
Access the look-up table contents for a given Address.
Definition at line 49 of file L1GctLut.h.
|
private |
Definition at line 128 of file L1GctLut.h.
References a, and contentValuesCheck::ss.
Referenced by ntuplePrintersDiff.SeedPrinter::diff(), ntuplePrintersDiff.TrackPrinter::diff(), ntuplePrintersDiff.SeedPrinter::printSeed(), and ntuplePrintersDiff.TrackPrinter::printTrack().
|
private |
Definition at line 146 of file L1GctLut.h.
References a, PVValHelper::add(), c, and contentValuesCheck::ss.
|
inline |
Definition at line 67 of file L1GctLut.h.
|
inline |
Definition at line 63 of file L1GctLut.h.
|
inline |
|
protectedpure virtual |
Implemented in L1GctHfEtSumsLut, L1GctHtMissLut, L1GctJetEtCalibrationLut, and L1GctHfBitCountsLut.
Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), average.Average::average(), Types.string::configValue(), Types.FileInPath::configValue(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), and Types.vstring::insertInto().
|
friend |
|
protected |
Definition at line 77 of file L1GctLut.h.
Referenced by 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 21 of file L1GctLut.h.
|
static |
Definition at line 22 of file L1GctLut.h.
|
staticprivate |
Definition at line 82 of file L1GctLut.h.