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 
4 
8 
9 namespace l1t {
10 
11  class HGCalTower;
13 
14  class HGCalTower : public L1Candidate {
15 
16  public:
17 
18  HGCalTower(): etEm_(0.),
19  etHad_(0.),
20  id_(0),
21  hwEtEm_(0),
22  hwEtHad_(0),
23  hwEtRatio_(0) {}
24 
25  HGCalTower(double etEm,
26  double etHad,
27  double eta,
28  double phi,
29  unsigned short id,
30  int hwpt=0,
31  int hweta=0,
32  int hwphi=0,
33  int qual=0,
34  int hwEtEm=0,
35  int hwEtHad=0,
36  int hwEtRatio=0);
37 
38  ~HGCalTower() override;
39 
40 
41 
42  void addEtEm(double et);
43  void addEtHad(double et);
44 
45  double etEm()const { return etEm_; };
46  double etHad()const { return etHad_; };
47 
48  const HGCalTower& operator+=(const HGCalTower& tower);
49 
50  HGCalTowerID id() const { return id_;}
51  short zside() const { return id_.zside(); }
52 
53  void setHwEtEm(int et) { hwEtEm_ = et; }
54  void setHwEtHad(int et) { hwEtHad_ = et; }
56 
57  int hwEtEm() const { return hwEtEm_; }
58  int hwEtHad() const { return hwEtHad_; }
59  int hwEtRatio() const { return hwEtRatio_; }
60 
61  private:
62 
63  void addEt(double et);
64 
65  // additional hardware quantities
66  double etEm_;
67  double etHad_;
69 
70  int hwEtEm_;
71  int hwEtHad_;
73 
74  };
75 
76 }
77 
78 #endif
int hwEtHad() const
Definition: HGCalTower.h:58
double etHad() const
Definition: HGCalTower.h:46
const HGCalTower & operator+=(const HGCalTower &tower)
Definition: HGCalTower.cc:45
double eta() const final
momentum pseudorapidity
int hwEtEm() const
Definition: HGCalTower.h:57
short zside() const
Definition: HGCalTowerID.h:18
void addEt(double et)
Definition: HGCalTower.cc:40
delete x;
Definition: CaloConfig.h:22
void setHwEtRatio(int ratio)
Definition: HGCalTower.h:55
void addEtEm(double et)
Definition: HGCalTower.cc:30
BXVector< HGCalTower > HGCalTowerBxCollection
Definition: HGCalTower.h:11
void setHwEtHad(int et)
Definition: HGCalTower.h:54
double et() const final
transverse energy
int hwEtRatio() const
Definition: HGCalTower.h:59
void setHwEtEm(int et)
Definition: HGCalTower.h:53
HGCalTowerID id_
Definition: HGCalTower.h:68
~HGCalTower() override
Definition: HGCalTower.cc:27
short zside() const
Definition: HGCalTower.h:51
HGCalTowerID id() const
Definition: HGCalTower.h:50
double etEm() const
Definition: HGCalTower.h:45
double phi() const final
momentum azimuthal angle
void addEtHad(double et)
Definition: HGCalTower.cc:35