CMS 3D CMS Logo

L1GctHtMissLut.h
Go to the documentation of this file.
1 #ifndef L1GCTHTMISSLUT_H_
2 #define L1GCTHTMISSLUT_H_
3 
5 
6 #include <vector>
7 
19 class L1CaloEtScale;
20 
21 class L1GctHtMissLut : public L1GctLut<16,12>
22 
23 {
24 public:
25 
29 
30  // Definitions.
31  static const int NAddress, NData;
32 
34  L1GctHtMissLut(const L1CaloEtScale* const scale, const double lsb);
40  ~L1GctHtMissLut() override;
41 
44 
46  friend std::ostream& operator << (std::ostream& os, const L1GctHtMissLut& lut);
47 
49  void setEtScale(const L1CaloEtScale* const fn) { m_etScale = fn; if (fn != nullptr) { m_setupOk = true; } }
50  void setExEyLsb(const double lsb) { m_componentLsb = lsb; }
51 
53  const L1CaloEtScale* etScale() const { return m_etScale; }
54  const double componentLsb() const { return m_componentLsb; }
55 
57  std::vector<double> getThresholdsGeV() const;
58  std::vector<unsigned> getThresholdsGct() const;
59 
60 protected:
61 
62 
63  uint16_t value (const uint16_t lutAddress) const override;
64 
65 private:
66 
68 
69  double m_componentLsb;
70 };
71 
72 
73 std::ostream& operator << (std::ostream& os, const L1GctHtMissLut& lut);
74 
75 #endif /*L1GCTHTMISSLUT_H_*/
~L1GctHtMissLut() override
Destructor.
void setEtScale(const L1CaloEtScale *const fn)
Set the functions.
friend std::ostream & operator<<(std::ostream &os, const L1GctHtMissLut &lut)
Overload << operator.
LUT for conversion of Ht components x and y to magnitude and angle.
Base class for LookUp Tables.
Definition: L1GctLut.h:20
L1GctHtMissLut operator=(const L1GctHtMissLut &lut)
Overload = operator.
double m_componentLsb
void setExEyLsb(const double lsb)
const double componentLsb() const
const L1CaloEtScale * m_etScale
std::vector< double > getThresholdsGeV() const
Get thresholds.
static const int NAddress
static const int NData
std::vector< unsigned > getThresholdsGct() const
const L1CaloEtScale * etScale() const
Return the Lut functions and parameters.
L1GctHtMissLut()
Default constructor.
uint16_t value(const uint16_t lutAddress) const override