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 
18 class L1CaloEtScale;
19 
20 class L1GctHfEtSumsLut : public L1GctLut<8, 3>
21 
22 {
23 public:
24  enum hfLutType {
34  };
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) {
58  if (fn != nullptr) {
59  m_lutFunction = fn;
60  m_setupOk = true;
61  }
62  }
63 
66 
68  const L1CaloEtScale* lutFunction() const { return m_lutFunction; }
69 
71  std::vector<double> getThresholdsGeV() const;
72  std::vector<unsigned> getThresholdsGct() const;
73 
74 protected:
75  uint16_t value(const uint16_t lutAddress) const override;
76 
77 private:
80 };
81 
82 std::ostream& operator<<(std::ostream& os, const L1GctHfEtSumsLut& lut);
83 
84 #endif /*L1GCTHFETSUMSLUT_H_*/
operator<<
std::ostream & operator<<(std::ostream &os, const L1GctHfEtSumsLut &lut)
Definition: L1GctHfEtSumsLut.cc:43
L1GctHfEtSumsLut::getThresholdsGeV
std::vector< double > getThresholdsGeV() const
Get thresholds.
Definition: L1GctHfEtSumsLut.cc:27
L1EGammaCrystalsEmulatorProducer_cfi.scale
scale
Definition: L1EGammaCrystalsEmulatorProducer_cfi.py:10
L1GctHfEtSumsLut::NData
static const int NData
Definition: L1GctHfEtSumsLut.h:37
L1GctHfEtSumsLut::hfLutType
hfLutType
Definition: L1GctHfEtSumsLut.h:24
L1GctHfEtSumsLut::bitCountPosEtaRing1
Definition: L1GctHfEtSumsLut.h:25
L1GctHfEtSumsLut::value
uint16_t value(const uint16_t lutAddress) const override
Definition: L1GctHfEtSumsLut.cc:25
L1GctHfEtSumsLut::~L1GctHfEtSumsLut
~L1GctHfEtSumsLut() override
Destructor.
Definition: L1GctHfEtSumsLut.cc:23
L1GctHfEtSumsLut::m_lutFunction
const L1CaloEtScale * m_lutFunction
Definition: L1GctHfEtSumsLut.h:78
L1GctHfEtSumsLut::etSumNegEtaRing1
Definition: L1GctHfEtSumsLut.h:31
L1GctHfEtSumsLut::etSumPosEtaRing1
Definition: L1GctHfEtSumsLut.h:29
L1GctHfEtSumsLut
LUT for compression of HF Et sum to output format.
Definition: L1GctHfEtSumsLut.h:20
L1GctHfEtSumsLut::lutFunction
const L1CaloEtScale * lutFunction() const
Return the Lut function.
Definition: L1GctHfEtSumsLut.h:68
L1GctHfEtSumsLut::bitCountNegEtaRing1
Definition: L1GctHfEtSumsLut.h:27
L1GctLut.h
L1GctLut< 8, 3 >::m_setupOk
bool m_setupOk
Definition: L1GctLut.h:77
L1GctHfEtSumsLut::NAddress
static const int NAddress
Definition: L1GctHfEtSumsLut.h:37
L1GctHfEtSumsLut::lutType
L1GctHfEtSumsLut::hfLutType lutType() const
Return the type of Lut.
Definition: L1GctHfEtSumsLut.h:65
L1GctHfEtSumsLut::bitCountPosEtaRing2
Definition: L1GctHfEtSumsLut.h:26
L1GctHfEtSumsLut::numberOfLutTypes
Definition: L1GctHfEtSumsLut.h:33
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
L1GctHfEtSumsLut::L1GctHfEtSumsLut
L1GctHfEtSumsLut()
Default constructor.
Definition: L1GctHfEtSumsLut.cc:18
L1GctHfEtSumsLut::operator=
L1GctHfEtSumsLut operator=(const L1GctHfEtSumsLut &lut)
Overload = operator.
Definition: L1GctHfEtSumsLut.cc:38
L1CaloEtScale
Definition: L1CaloEtScale.h:29
L1GctLut
Base class for LookUp Tables.
Definition: L1GctLut.h:19
L1GctHfEtSumsLut::operator<<
friend std::ostream & operator<<(std::ostream &os, const L1GctHfEtSumsLut &lut)
Overload << operator.
Definition: L1GctHfEtSumsLut.cc:43
L1GctHfEtSumsLut::bitCountNegEtaRing2
Definition: L1GctHfEtSumsLut.h:28
L1GctHfEtSumsLut::etSumPosEtaRing2
Definition: L1GctHfEtSumsLut.h:30
personalPlayback.fn
fn
Definition: personalPlayback.py:515
L1GctHfEtSumsLut::setFunction
void setFunction(const L1CaloEtScale *const fn)
Set the function.
Definition: L1GctHfEtSumsLut.h:57
L1GctHfEtSumsLut::m_lutType
L1GctHfEtSumsLut::hfLutType m_lutType
Definition: L1GctHfEtSumsLut.h:79
L1GctHfEtSumsLut::getThresholdsGct
std::vector< unsigned > getThresholdsGct() const
Definition: L1GctHfEtSumsLut.cc:29
L1GctHfEtSumsLut::etSumNegEtaRing2
Definition: L1GctHfEtSumsLut.h:32