CMS 3D CMS Logo

L1GctHfEtSumsLut.h
Go to the documentation of this file.
1 #ifndef L1GCTHFETSUMSLUT_H_
2 #define L1GCTHFETSUMSLUT_H_
3 
5 
6 #include <vector>
7 
19 class L1CaloEtScale;
20 
21 class L1GctHfEtSumsLut : public L1GctLut<8,3>
22 
23 {
24 public:
25 
35 
36  // Definitions.
37  static const int NAddress, NData;
38 
48  ~L1GctHfEtSumsLut() override;
49 
52 
54  friend std::ostream& operator << (std::ostream& os, const L1GctHfEtSumsLut& lut);
55 
57  void setFunction(const L1CaloEtScale* const fn) { if (fn != nullptr) { m_lutFunction = fn; m_setupOk = true; } }
58 
61 
63  const L1CaloEtScale* lutFunction() const { return m_lutFunction; }
64 
66  std::vector<double> getThresholdsGeV() const;
67  std::vector<unsigned> getThresholdsGct() const;
68 
69 protected:
70 
71 
72  uint16_t value (const uint16_t lutAddress) const override;
73 
74 private:
75 
78 
79 };
80 
81 
82 std::ostream& operator << (std::ostream& os, const L1GctHfEtSumsLut& lut);
83 
84 #endif /*L1GCTHFETSUMSLUT_H_*/
type
Definition: HCALResponse.h:21
static const int NData
const L1CaloEtScale * m_lutFunction
L1GctHfEtSumsLut::hfLutType lutType() const
Return the type of Lut.
const L1CaloEtScale * lutFunction() const
Return the Lut function.
Base class for LookUp Tables.
Definition: L1GctLut.h:20
static const int NAddress
~L1GctHfEtSumsLut() override
Destructor.
void setFunction(const L1CaloEtScale *const fn)
Set the function.
LUT for compression of HF Et sum to output format.
uint16_t value(const uint16_t lutAddress) const override
L1GctHfEtSumsLut()
Default constructor.
friend std::ostream & operator<<(std::ostream &os, const L1GctHfEtSumsLut &lut)
Overload << operator.
std::vector< unsigned > getThresholdsGct() const
std::vector< double > getThresholdsGeV() const
Get thresholds.
L1GctHfEtSumsLut operator=(const L1GctHfEtSumsLut &lut)
Overload = operator.
L1GctHfEtSumsLut::hfLutType m_lutType