CMS 3D CMS Logo

CaloRegion.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1Trigger_CaloRegion_h
2 #define DataFormats_L1Trigger_CaloRegion_h
3 
6 
7 namespace l1t {
8 
9  class CaloRegion : public L1Candidate {
10  public:
11  CaloRegion() : etEm_(0.), etHad_(0.), hwEtEm_(0), hwEtHad_(0) {}
13  double etEm = 0.,
14  double etHad = 0.,
15  int pt = 0,
16  int eta = 0,
17  int phi = 0,
18  int qual = 0,
19  int hwEtEm = 0,
20  int hwEtHad = 0);
21 
22  ~CaloRegion() override;
23 
24  void setEtEm(double et);
25  void setEtHad(double et);
26  void setHwEtEm(int et);
27  void setHwEtHad(int et);
28 
29  double etEm() const;
30  double etHad() const;
31  int hwEtEm() const;
32  int hwEtHad() const;
33 
34  private:
35  // additional hardware quantities
36  double etEm_;
37  double etHad_;
38 
39  int hwEtEm_;
40  int hwEtHad_;
41  };
42 
44 
45 } // namespace l1t
46 
47 #endif
void setHwEtEm(int et)
Definition: CaloRegion.cc:14
double pt() const final
transverse momentum
BXVector< CaloRegion > CaloRegionBxCollection
Definition: CaloRegion.h:43
delete x;
Definition: CaloConfig.h:22
void setEtEm(double et)
Definition: CaloRegion.cc:10
const LorentzVector & p4() const final
four-momentum Lorentz vector
void setHwEtHad(int et)
Definition: CaloRegion.cc:16
double etEm() const
Definition: CaloRegion.cc:18
math::XYZTLorentzVector LorentzVector
double etHad() const
Definition: CaloRegion.cc:20
int hwEtEm() const
Definition: CaloRegion.cc:22
void setEtHad(double et)
Definition: CaloRegion.cc:12
double et() const final
transverse energy
int hwEtHad() const
Definition: CaloRegion.cc:24
double phi() const final
momentum azimuthal angle
~CaloRegion() override
Definition: CaloRegion.cc:8
double eta() const final
momentum pseudorapidity