LUT for compression of HF Et sum to output format. More...
#include <L1GctHfEtSumsLut.h>
Public Member Functions | |
std::vector< unsigned > | getThresholdsGct () const |
std::vector< double > | getThresholdsGeV () const |
Get thresholds. More... | |
L1GctHfEtSumsLut (const L1GctHfEtSumsLut::hfLutType &type, const L1CaloEtScale *const scale) | |
Constructor for use with emulator - which type of Lut? More... | |
L1GctHfEtSumsLut (const L1GctHfEtSumsLut::hfLutType &type) | |
Constructor for use with emulator - which type of Lut? More... | |
L1GctHfEtSumsLut () | |
Default constructor. More... | |
L1GctHfEtSumsLut (const L1GctHfEtSumsLut &lut) | |
Copy constructor. More... | |
const L1CaloEtScale * | lutFunction () const |
Return the Lut function. More... | |
L1GctHfEtSumsLut::hfLutType | lutType () const |
Return the type of Lut. More... | |
L1GctHfEtSumsLut | operator= (const L1GctHfEtSumsLut &lut) |
Overload = operator. More... | |
void | setFunction (const L1CaloEtScale *const fn) |
Set the function. More... | |
~L1GctHfEtSumsLut () override | |
Destructor. More... | |
Public Member Functions inherited from L1GctLut< 8, 3 > | |
uint16_t | lutValue (const uint16_t lutAddress) const |
Access the look-up table contents for a given Address. More... | |
int | operator!= (const L1GctLut< KAddressBits, KDataBits > &rhsLut) const |
Inequality check between look-up tables. More... | |
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 int | NAddress = 8 |
static const int | NData = 3 |
Static Public Attributes inherited from L1GctLut< 8, 3 > | |
static const uint16_t | MAX_ADDRESS_BITMASK |
static const uint16_t | MAX_DATA_BITMASK |
Protected Member Functions | |
uint16_t | value (const uint16_t lutAddress) const override |
Protected Member Functions inherited from L1GctLut< 8, 3 > | |
bool | equalityCheck (const L1GctLut< KAddressBits, KDataBits > &c) const |
L1GctLut () | |
Private Attributes | |
const L1CaloEtScale * | m_lutFunction |
L1GctHfEtSumsLut::hfLutType | m_lutType |
Friends | |
std::ostream & | operator<< (std::ostream &os, const L1GctHfEtSumsLut &lut) |
Overload << operator. More... | |
Additional Inherited Members | |
Protected Attributes inherited from L1GctLut< 8, 3 > | |
bool | m_setupOk |
bool | m_verbose |
LUT for compression of HF Et sum to output format.
Definition at line 20 of file L1GctHfEtSumsLut.h.
Enumerator | |
---|---|
bitCountPosEtaRing1 | |
bitCountPosEtaRing2 | |
bitCountNegEtaRing1 | |
bitCountNegEtaRing2 | |
etSumPosEtaRing1 | |
etSumPosEtaRing2 | |
etSumNegEtaRing1 | |
etSumNegEtaRing2 | |
numberOfLutTypes |
Definition at line 24 of file L1GctHfEtSumsLut.h.
L1GctHfEtSumsLut::L1GctHfEtSumsLut | ( | const L1GctHfEtSumsLut::hfLutType & | type, |
const L1CaloEtScale *const | scale | ||
) |
Constructor for use with emulator - which type of Lut?
Definition at line 9 of file L1GctHfEtSumsLut.cc.
References L1GctLut< 8, 3 >::m_setupOk, and isotrackNtupler::scale.
L1GctHfEtSumsLut::L1GctHfEtSumsLut | ( | const L1GctHfEtSumsLut::hfLutType & | type | ) |
Constructor for use with emulator - which type of Lut?
Definition at line 15 of file L1GctHfEtSumsLut.cc.
L1GctHfEtSumsLut::L1GctHfEtSumsLut | ( | ) |
L1GctHfEtSumsLut::L1GctHfEtSumsLut | ( | const L1GctHfEtSumsLut & | lut | ) |
Copy constructor.
Definition at line 20 of file L1GctHfEtSumsLut.cc.
|
override |
std::vector< unsigned > L1GctHfEtSumsLut::getThresholdsGct | ( | ) | const |
Definition at line 29 of file L1GctHfEtSumsLut.cc.
References L1CaloEtScale::getThresholds(), L1CaloEtScale::linearLsb(), m_lutFunction, and mps_fire::result.
std::vector< double > L1GctHfEtSumsLut::getThresholdsGeV | ( | ) | const |
Get thresholds.
Definition at line 27 of file L1GctHfEtSumsLut.cc.
References L1CaloEtScale::getThresholds(), and m_lutFunction.
|
inline |
Return the Lut function.
Definition at line 68 of file L1GctHfEtSumsLut.h.
References m_lutFunction.
Referenced by L1GctGlobalHfSumAlgos::getThresholds().
|
inline |
L1GctHfEtSumsLut L1GctHfEtSumsLut::operator= | ( | const L1GctHfEtSumsLut & | lut | ) |
Overload = operator.
Definition at line 38 of file L1GctHfEtSumsLut.cc.
References groupFilesInBlocks::temp.
|
inline |
Set the function.
Definition at line 57 of file L1GctHfEtSumsLut.h.
References personalPlayback::fn, m_lutFunction, and L1GctLut< 8, 3 >::m_setupOk.
|
overrideprotectedvirtual |
Implements L1GctLut< 8, 3 >.
Definition at line 25 of file L1GctHfEtSumsLut.cc.
References m_lutFunction, and L1CaloEtScale::rank().
Referenced by average.Average::average().
|
friend |
Overload << operator.
Definition at line 43 of file L1GctHfEtSumsLut.cc.
|
private |
Definition at line 78 of file L1GctHfEtSumsLut.h.
Referenced by getThresholdsGct(), getThresholdsGeV(), lutFunction(), operator<<(), setFunction(), and value().
|
private |
Definition at line 79 of file L1GctHfEtSumsLut.h.
Referenced by lutType().
|
static |
Definition at line 37 of file L1GctHfEtSumsLut.h.
|
static |
Definition at line 37 of file L1GctHfEtSumsLut.h.