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 
7 
8 namespace l1t {
9 
10  class HGCalTower;
12 
13  class HGCalTower : public L1Candidate {
14 
15  public:
16 
18 
19  HGCalTower( const LorentzVector& p4,
20  double etEm=0.,
21  double etHad=0.,
22  int pt=0,
23  int eta=0,
24  int phi=0,
25  int qual=0,
26  int hwEtEm=0,
27  int hwEtHad=0,
28  int hwEtRatio=0);
29 
30  ~HGCalTower();
31 
32  void setEtEm( double et );
33  void setEtHad( double et );
34 
35  void setHwEtEm( int et );
36  void setHwEtHad( int et );
37  void setHwEtRatio( int ratio );
38 
39  double etEm()const;
40  double etHad()const;
41 
42  int hwEtEm()const;
43  int hwEtHad()const;
44  int hwEtRatio()const;
45 
46  HGCalTower& operator+=(const HGCalTower& tower);
47 
48  private:
49 
50  // additional hardware quantities
51  double etEm_;
52  double etHad_;
53 
54  int hwEtEm_;
55  int hwEtHad_;
57 
58  };
59 
60 }
61 
62 #endif
virtual double pt() const final
transverse momentum
void setEtEm(double et)
Definition: HGCalTower.cc:31
void setHwEtHad(int et)
Definition: HGCalTower.cc:46
virtual double eta() const final
momentum pseudorapidity
double etHad() const
Definition: HGCalTower.cc:61
void setHwEtEm(int et)
Definition: HGCalTower.cc:41
int hwEtRatio() const
Definition: HGCalTower.cc:76
delete x;
Definition: CaloConfig.h:22
virtual double phi() const final
momentum azimuthal angle
BXVector< HGCalTower > HGCalTowerBxCollection
Definition: HGCalTower.h:10
virtual double et() const final
transverse energy
int hwEtEm() const
Definition: HGCalTower.cc:66
void setHwEtRatio(int ratio)
Definition: HGCalTower.cc:51
int hwEtHad() const
Definition: HGCalTower.cc:71
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
HGCalTower & operator+=(const HGCalTower &tower)
Definition: HGCalTower.cc:84
double etEm() const
Definition: HGCalTower.cc:56
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
void setEtHad(double et)
Definition: HGCalTower.cc:36