LUT for conversion of Ht components x and y to magnitude and angle. More...
#include <L1GctHtMissLut.h>
Public Types | |
enum | numberOfBits { kHxOrHyMissComponentNBits = 8, kHtMissMagnitudeNBits = 7, kHtMissAngleNBits = 5 } |
Public Member Functions | |
const double | componentLsb () const |
const L1CaloEtScale * | etScale () const |
Return the Lut functions and parameters. More... | |
std::vector< unsigned > | getThresholdsGct () const |
std::vector< double > | getThresholdsGeV () const |
Get thresholds. More... | |
L1GctHtMissLut (const L1CaloEtScale *const scale, const double lsb) | |
Constructor for use with emulator. More... | |
L1GctHtMissLut () | |
Default constructor. More... | |
L1GctHtMissLut (const L1GctHtMissLut &lut) | |
Copy constructor. More... | |
L1GctHtMissLut | operator= (const L1GctHtMissLut &lut) |
Overload = operator. More... | |
void | setEtScale (const L1CaloEtScale *const fn) |
Set the functions. More... | |
void | setExEyLsb (const double lsb) |
~L1GctHtMissLut () override | |
Destructor. More... | |
Public Member Functions inherited from L1GctLut< 16, 12 > | |
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 = 2 * L1GctHtMissLut::kHxOrHyMissComponentNBits |
static const int | NData = L1GctHtMissLut::kHtMissMagnitudeNBits + L1GctHtMissLut::kHtMissAngleNBits |
Static Public Attributes inherited from L1GctLut< 16, 12 > | |
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< 16, 12 > | |
bool | equalityCheck (const L1GctLut< KAddressBits, KDataBits > &c) const |
L1GctLut () | |
Private Attributes | |
double | m_componentLsb |
const L1CaloEtScale * | m_etScale |
Friends | |
std::ostream & | operator<< (std::ostream &os, const L1GctHtMissLut &lut) |
Overload << operator. More... | |
Additional Inherited Members | |
Protected Attributes inherited from L1GctLut< 16, 12 > | |
bool | m_setupOk |
bool | m_verbose |
LUT for conversion of Ht components x and y to magnitude and angle.
Definition at line 20 of file L1GctHtMissLut.h.
Enumerator | |
---|---|
kHxOrHyMissComponentNBits | |
kHtMissMagnitudeNBits | |
kHtMissAngleNBits |
Definition at line 24 of file L1GctHtMissLut.h.
L1GctHtMissLut::L1GctHtMissLut | ( | const L1CaloEtScale *const | scale, |
const double | lsb | ||
) |
Constructor for use with emulator.
Definition at line 11 of file L1GctHtMissLut.cc.
References L1GctLut< 16, 12 >::m_setupOk, and L1EGammaClusterEmuProducer_cfi::scale.
L1GctHtMissLut::L1GctHtMissLut | ( | ) |
L1GctHtMissLut::L1GctHtMissLut | ( | const L1GctHtMissLut & | lut | ) |
Copy constructor.
Definition at line 19 of file L1GctHtMissLut.cc.
References m_etScale, and L1GctLut< 16, 12 >::m_setupOk.
|
override |
|
inline |
Definition at line 55 of file L1GctHtMissLut.h.
References m_componentLsb.
Referenced by L1GctMet::componentLsb().
|
inline |
Return the Lut functions and parameters.
Definition at line 54 of file L1GctHtMissLut.h.
References m_etScale.
Referenced by L1GctMet::etScale().
std::vector< unsigned > L1GctHtMissLut::getThresholdsGct | ( | ) | const |
Definition at line 70 of file L1GctHtMissLut.cc.
References L1CaloEtScale::getThresholds(), m_componentLsb, m_etScale, and mps_fire::result.
std::vector< double > L1GctHtMissLut::getThresholdsGeV | ( | ) | const |
Get thresholds.
Definition at line 68 of file L1GctHtMissLut.cc.
References L1CaloEtScale::getThresholds(), and m_etScale.
L1GctHtMissLut L1GctHtMissLut::operator= | ( | const L1GctHtMissLut & | lut | ) |
Overload = operator.
Definition at line 79 of file L1GctHtMissLut.cc.
References groupFilesInBlocks::temp.
|
inline |
Set the functions.
Definition at line 45 of file L1GctHtMissLut.h.
References personalPlayback::fn, m_etScale, and L1GctLut< 16, 12 >::m_setupOk.
Referenced by L1GctMet::setEtScale().
|
inline |
Definition at line 51 of file L1GctHtMissLut.h.
References hgcalVFEProducer_cfi::lsb, and m_componentLsb.
Referenced by L1GctMet::setEtComponentLsb().
|
overrideprotectedvirtual |
Implements L1GctLut< 16, 12 >.
Definition at line 27 of file L1GctHtMissLut.cc.
References kHtMissAngleNBits, kHtMissMagnitudeNBits, kHxOrHyMissComponentNBits, m_componentLsb, m_etScale, M_PI, L1CaloEtScale::rank(), mps_fire::result, and mathSSE::sqrt().
Referenced by average.Average::average().
|
friend |
Overload << operator.
Definition at line 84 of file L1GctHtMissLut.cc.
|
private |
Definition at line 67 of file L1GctHtMissLut.h.
Referenced by componentLsb(), getThresholdsGct(), operator<<(), setExEyLsb(), and value().
|
private |
Definition at line 65 of file L1GctHtMissLut.h.
Referenced by etScale(), getThresholdsGct(), getThresholdsGeV(), L1GctHtMissLut(), operator<<(), setEtScale(), and value().
|
static |
Definition at line 27 of file L1GctHtMissLut.h.
|
static |
Definition at line 27 of file L1GctHtMissLut.h.