CMS 3D CMS Logo

Phase2L1CaloJet.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1TCalorimeterPhase2_Phase2L1CaloJet_h
2 #define DataFormats_L1TCalorimeterPhase2_Phase2L1CaloJet_h
3 
4 #include <vector>
5 #include <map>
6 #include <string>
7 #include <algorithm>
10 
11 namespace l1tp2 {
12 
14  public:
16  : l1t::L1Candidate(),
17  jetEt_(0.),
18  tauEt_(0.),
19  jetIEta_(-99),
20  jetIPhi_(-99),
21  jetEta_(-99.),
22  jetPhi_(-99.),
23  towerEt_(0.),
24  towerIEta_(-99),
25  towerIPhi_(-99),
26  towerEta_(-99.),
27  towerPhi_(-99.) {}
28 
30  float jetEt,
31  float tauEt,
32  int jetIEta,
33  int jetIPhi,
34  float jetEta,
35  float jetPhi,
36  float towerEt,
37  int towerIEta,
38  int towerIPhi,
39  float towerEta,
40  float towerPhi)
41  : l1t::L1Candidate(p4),
42  jetEt_(jetEt),
43  tauEt_(tauEt),
46  jetEta_(jetEta),
47  jetPhi_(jetPhi),
53 
54  inline float jetEt() const { return jetEt_; };
55  inline float tauEt() const { return tauEt_; };
56  inline int jetIEta() const { return jetIEta_; };
57  inline int jetIPhi() const { return jetIPhi_; };
58  inline float jetEta() const { return jetEta_; };
59  inline float jetPhi() const { return jetPhi_; };
60  inline float towerEt() const { return towerEt_; };
61  inline int towerIEta() const { return towerIEta_; };
62  inline int towerIPhi() const { return towerIPhi_; };
63  inline float towerEta() const { return towerEta_; };
64  inline float towerPhi() const { return towerPhi_; };
65 
66  void setJetEt(float jetEtIn) { jetEt_ = jetEtIn; };
67  void setTauEt(float tauEtIn) { tauEt_ = tauEtIn; };
68  void setJetIEta(int jetIEtaIn) { jetIEta_ = jetIEtaIn; };
69  void setJetIPhi(int jetIPhiIn) { jetIPhi_ = jetIPhiIn; };
70  void setJetEta(float jetEtaIn) { jetEta_ = jetEtaIn; };
71  void setJetPhi(float jetPhiIn) { jetPhi_ = jetPhiIn; };
72  void setTowerEt(float towerEtIn) { towerEt_ = towerEtIn; };
73  void setTowerIEta(int towerIEtaIn) { towerIEta_ = towerIEtaIn; };
74  void setTowerIPhi(int towerIPhiIn) { towerIPhi_ = towerIPhiIn; };
75  void setTowerEta(float towerEtaIn) { towerEta_ = towerEtaIn; };
76  void setTowerPhi(float towerPhiIn) { towerPhi_ = towerPhiIn; };
77 
78  private:
79  // ET
80  float jetEt_;
81  // Tau ET
82  float tauEt_;
83  // GCT ieta
84  int jetIEta_;
85  // GCT iphi
86  int jetIPhi_;
87  // Tower (real) eta
88  float jetEta_;
89  // Tower (real) phi
90  float jetPhi_;
91  float towerEt_;
94  float towerEta_;
95  float towerPhi_;
96  };
97 
98  // Concrete collection of output objects (with extra tuning information)
99  typedef std::vector<l1tp2::Phase2L1CaloJet> Phase2L1CaloJetCollection;
100 } // namespace l1tp2
101 #endif
void setTowerEt(float towerEtIn)
void setTowerIEta(int towerIEtaIn)
std::vector< l1tp2::Phase2L1CaloJet > Phase2L1CaloJetCollection
delete x;
Definition: CaloConfig.h:22
const LorentzVector & p4() const final
four-momentum Lorentz vector
void setTauEt(float tauEtIn)
void setTowerPhi(float towerPhiIn)
void setJetIPhi(int jetIPhiIn)
Phase2L1CaloJet(const PolarLorentzVector &p4, float jetEt, float tauEt, int jetIEta, int jetIPhi, float jetEta, float jetPhi, float towerEt, int towerIEta, int towerIPhi, float towerEta, float towerPhi)
void setTowerEta(float towerEtaIn)
void setTowerIPhi(int towerIPhiIn)
void setJetEt(float jetEtIn)
void setJetIEta(int jetIEtaIn)
void setJetPhi(float jetPhiIn)
void setJetEta(float jetEtaIn)
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:38