CMS 3D CMS Logo

L1GctJetEtCalibrationLut.h
Go to the documentation of this file.
1 #ifndef L1GCTJETETCALIBRATIONLUT_H_
2 #define L1GCTJETETCALIBRATIONLUT_H_
3 
4 #define JET_ET_CAL_LUT_ADD_BITS 11
5 #define JET_ET_CAL_LUT_DAT_BITS 6
6 
8 
10 class L1CaloEtScale;
11 
28 class L1GctJetEtCalibrationLut : public L1GctLut<JET_ET_CAL_LUT_ADD_BITS, JET_ET_CAL_LUT_DAT_BITS> {
29 public:
30  static const int NAddress;
31  static const int NData;
32  static const unsigned JET_ENERGY_BITWIDTH;
33 
35  ~L1GctJetEtCalibrationLut() override;
36 
37  // set components
38  void setFunction(const L1GctJetFinderParams* const lutfn);
39  void setOutputEtScale(const L1CaloEtScale* const scale);
40  void setEtaBin(const unsigned eta);
41 
42  // get components
43  const L1GctJetFinderParams* getFunction() const { return m_lutFunction; }
44  const L1CaloEtScale* getOutputEtScale() const { return m_outputEtScale; }
45  unsigned etaBin() const { return static_cast<unsigned>(m_etaBin); }
46 
48  friend std::ostream& operator<<(std::ostream& os, const L1GctJetEtCalibrationLut& lut);
49 
50 protected:
51  uint16_t value(const uint16_t lutAddress) const override;
52 
53 private:
56 
57  uint8_t m_etaBin;
58 };
59 
60 std::ostream& operator<<(std::ostream& os, const L1GctJetEtCalibrationLut& lut);
61 
62 #endif /*L1GCTJETETCALIBRATIONLUT_H_*/
Jet Et calibration LUT.
friend std::ostream & operator<<(std::ostream &os, const L1GctJetEtCalibrationLut &lut)
Overload << operator.
void setFunction(const L1GctJetFinderParams *const lutfn)
Base class for LookUp Tables.
Definition: L1GctLut.h:19
void setOutputEtScale(const L1CaloEtScale *const scale)
const L1CaloEtScale * m_outputEtScale
const L1CaloEtScale * getOutputEtScale() const
static const unsigned JET_ENERGY_BITWIDTH
Input bitwidth of jet energy; must be 10 or more.
const L1GctJetFinderParams * getFunction() const
std::ostream & operator<<(std::ostream &os, const L1GctJetEtCalibrationLut &lut)
const L1GctJetFinderParams * m_lutFunction
uint16_t value(const uint16_t lutAddress) const override
void setEtaBin(const unsigned eta)