CMS 3D CMS Logo

HGCalTower.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1TCalorimeter_HGCalTower_h
2 #define DataFormats_L1TCalorimeter_HGCalTower_h
3 
7 
8 namespace l1t {
9 
10  class HGCalTower;
12 
13  class HGCalTower : public L1Candidate {
14  public:
15  HGCalTower() : etEm_(0.), etHad_(0.), id_(0), hwEtEm_(0), hwEtHad_(0), hwEtRatio_(0) {}
16 
17  HGCalTower(double etEm,
18  double etHad,
19  double eta,
20  double phi,
21  uint32_t id,
22  int hwpt = 0,
23  int hweta = 0,
24  int hwphi = 0,
25  int qual = 0,
26  int hwEtEm = 0,
27  int hwEtHad = 0,
28  int hwEtRatio = 0);
29 
30  ~HGCalTower() override;
31 
32  void addEtEm(double et);
33  void addEtHad(double et);
34 
35  double etEm() const { return etEm_; };
36  double etHad() const { return etHad_; };
37 
38  const HGCalTower& operator+=(const HGCalTower& tower);
39 
40  HGCalTowerID id() const { return id_; }
41  short zside() const { return id_.zside(); }
42 
43  void setHwEtEm(int et) { hwEtEm_ = et; }
44  void setHwEtHad(int et) { hwEtHad_ = et; }
45  void setHwEtRatio(int ratio) { hwEtRatio_ = ratio; }
46 
47  int hwEtEm() const { return hwEtEm_; }
48  int hwEtHad() const { return hwEtHad_; }
49  int hwEtRatio() const { return hwEtRatio_; }
50 
51  private:
52  void addEt(double et);
53 
54  // additional hardware quantities
55  double etEm_;
56  double etHad_;
58 
59  int hwEtEm_;
60  int hwEtHad_;
62  };
63 
64 } // namespace l1t
65 
66 #endif
int hwEtRatio() const
Definition: HGCalTower.h:49
short zside() const
Definition: HGCalTowerID.h:23
const HGCalTower & operator+=(const HGCalTower &tower)
Definition: HGCalTower.cc:41
void addEt(double et)
Definition: HGCalTower.cc:39
delete x;
Definition: CaloConfig.h:22
void setHwEtRatio(int ratio)
Definition: HGCalTower.h:45
void addEtEm(double et)
Definition: HGCalTower.cc:29
BXVector< HGCalTower > HGCalTowerBxCollection
Definition: HGCalTower.h:10
void setHwEtHad(int et)
Definition: HGCalTower.h:44
int hwEtEm() const
Definition: HGCalTower.h:47
double etEm() const
Definition: HGCalTower.h:35
void setHwEtEm(int et)
Definition: HGCalTower.h:43
HGCalTowerID id_
Definition: HGCalTower.h:57
~HGCalTower() override
Definition: HGCalTower.cc:27
short zside() const
Definition: HGCalTower.h:41
double etHad() const
Definition: HGCalTower.h:36
double et() const final
transverse energy
int hwEtHad() const
Definition: HGCalTower.h:48
double phi() const final
momentum azimuthal angle
HGCalTowerID id() const
Definition: HGCalTower.h:40
void addEtHad(double et)
Definition: HGCalTower.cc:34
double eta() const final
momentum pseudorapidity