CMS 3D CMS Logo

CaloPFCluster.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1TCalorimeterPhase2_CaloPFCluster_h
2 #define DataFormats_L1TCalorimeterPhase2_CaloPFCluster_h
3 
4 #include <vector>
5 #include <map>
6 #include <string>
7 #include <algorithm>
9 
10 namespace l1tp2 {
11 
13  public:
15  : l1t::L1Candidate(),
16  clusterEt_(0.),
17  clusterIEta_(-99),
18  clusterIPhi_(-99),
19  clusterEta_(-99.),
20  clusterPhi_(-99.){};
21 
23  float clusterEt,
24  int clusterIEta,
25  int clusterIPhi,
26  float clusterEta,
27  float clusterPhi)
28  : l1t::L1Candidate(p4),
34 
35  inline float clusterEt() const { return clusterEt_; };
36  inline int clusterIEta() const { return clusterIEta_; };
37  inline int clusterIPhi() const { return clusterIPhi_; };
38  inline float clusterEta() const { return clusterEta_; };
39  inline float clusterPhi() const { return clusterPhi_; };
40  void setClusterEt(float clusterEtIn) { clusterEt_ = clusterEtIn; };
41  void setClusterIEta(int clusterIEtaIn) { clusterIEta_ = clusterIEtaIn; };
42  void setClusterIPhi(int clusterIPhiIn) { clusterIPhi_ = clusterIPhiIn; };
43  void setClusterEta(float clusterEtaIn) { clusterEta_ = clusterEtaIn; };
44  void setClusterPhi(float clusterPhiIn) { clusterPhi_ = clusterPhiIn; };
45 
46  private:
47  // ET
48  float clusterEt_;
49  // GCT ieta
51  // GCT iphi
53  // Tower (real) eta
54  float clusterEta_;
55  // Tower (real) phi
56  float clusterPhi_;
57  };
58 
59  // Concrete collection of output objects (with extra tuning information)
60  typedef std::vector<l1tp2::CaloPFCluster> CaloPFClusterCollection;
61 } // namespace l1tp2
62 #endif
void setClusterEta(float clusterEtaIn)
Definition: CaloPFCluster.h:43
int clusterIPhi() const
Definition: CaloPFCluster.h:37
float clusterEt() const
Definition: CaloPFCluster.h:35
void setClusterIPhi(int clusterIPhiIn)
Definition: CaloPFCluster.h:42
std::vector< l1tp2::CaloPFCluster > CaloPFClusterCollection
Definition: CaloPFCluster.h:60
CaloPFCluster(const PolarLorentzVector &p4, float clusterEt, int clusterIEta, int clusterIPhi, float clusterEta, float clusterPhi)
Definition: CaloPFCluster.h:22
delete x;
Definition: CaloConfig.h:22
const LorentzVector & p4() const final
four-momentum Lorentz vector
float clusterEta() const
Definition: CaloPFCluster.h:38
float clusterPhi() const
Definition: CaloPFCluster.h:39
void setClusterPhi(float clusterPhiIn)
Definition: CaloPFCluster.h:44
void setClusterIEta(int clusterIEtaIn)
Definition: CaloPFCluster.h:41
int clusterIEta() const
Definition: CaloPFCluster.h:36
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:38
void setClusterEt(float clusterEtIn)
Definition: CaloPFCluster.h:40