CMS 3D CMS Logo

L1GctEtHad.h
Go to the documentation of this file.
1 #ifndef L1GCTETHAD_H
2 #define L1GCTETHAD_H
3 
4 #include <ostream>
5 #include <cstdint>
6 
14 
17 class L1GctEtHad {
18 public:
19  enum numberOfBits {
24  };
25 
26  L1GctEtHad();
27  L1GctEtHad(uint16_t rawData);
28  L1GctEtHad(uint16_t rawData, int16_t bx);
29  L1GctEtHad(unsigned et, bool oflow);
30  L1GctEtHad(unsigned et, bool oflow, int16_t bx);
31  virtual ~L1GctEtHad();
32 
34  std::string name() const { return "EtHad"; }
35 
37  bool empty() const { return false; }
38 
40  uint16_t raw() const { return m_data; }
41 
43  unsigned et() const { return m_data & kEtHadMaxValue; }
44 
46  bool overFlow() const { return (m_data & kEtHadOFlowBit) != 0; }
47 
49  int16_t bx() const { return m_bx; }
50 
52  int operator==(const L1GctEtHad& e) const { return m_data == e.raw(); }
53 
55  int operator!=(const L1GctEtHad& e) const { return m_data != e.raw(); }
56 
57 private:
58  uint16_t m_data;
59  int16_t m_bx;
60 };
61 
63 std::ostream& operator<<(std::ostream& s, const L1GctEtHad& c);
64 
65 #endif
operator<<
std::ostream & operator<<(std::ostream &s, const L1GctEtHad &c)
Pretty-print operator for L1GctEtHad.
Definition: L1GctEtHad.cc:21
l1tstage2_dqm_sourceclient-live_cfg.rawData
rawData
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:156
L1GctEtHad::kEtHadNBits
Definition: L1GctEtHad.h:20
alignCSCRings.s
s
Definition: alignCSCRings.py:92
L1GctEtHad::operator==
int operator==(const L1GctEtHad &e) const
equality operator
Definition: L1GctEtHad.h:52
L1GctEtHad::kEtHadOFlowBit
Definition: L1GctEtHad.h:21
L1GctEtHad::raw
uint16_t raw() const
get the data
Definition: L1GctEtHad.h:40
L1GctEtHad::kEtHadMaxValue
Definition: L1GctEtHad.h:22
L1GctEtHad::numberOfBits
numberOfBits
Definition: L1GctEtHad.h:19
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GctEtHad::m_bx
int16_t m_bx
Definition: L1GctEtHad.h:59
L1GctEtHad::~L1GctEtHad
virtual ~L1GctEtHad()
Definition: L1GctEtHad.cc:18
L1GctEtHad::bx
int16_t bx() const
get bunch-crossing index
Definition: L1GctEtHad.h:49
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
L1GctEtHad::overFlow
bool overFlow() const
get the overflow
Definition: L1GctEtHad.h:46
L1GctEtHad::name
std::string name() const
name method
Definition: L1GctEtHad.h:34
L1GctEtHad
Persistable copy of total Ht measured at Level-1.
Definition: L1GctEtHad.h:17
L1GctEtHad::et
unsigned et() const
get the Et
Definition: L1GctEtHad.h:43
L1GctEtHad::empty
bool empty() const
empty method (= false; hadronic Et is always calculated)
Definition: L1GctEtHad.h:37
L1GctEtHad::L1GctEtHad
L1GctEtHad()
Definition: L1GctEtHad.cc:4
L1GctEtHad::m_data
uint16_t m_data
Definition: L1GctEtHad.h:58
L1GctEtHad::operator!=
int operator!=(const L1GctEtHad &e) const
inequality operator
Definition: L1GctEtHad.h:55
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
L1GctEtHad::kRawCtorMask
Definition: L1GctEtHad.h:23