CMS 3D CMS Logo

HGCalCluster_SA.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1THGCal_HGCalCluster_SA_h
2 #define L1Trigger_L1THGCal_HGCalCluster_SA_h
3 
4 #include <vector>
5 
6 namespace l1thgcfirmware {
7 
8  class HGCalCluster {
9  public:
10  HGCalCluster(float x,
11  float y,
12  float z,
13  int zside,
14  unsigned int layer,
15  float eta,
16  float phi,
17  float pt,
18  float mipPt,
19  unsigned int index_cmssw)
20  : x_(x),
21  y_(y),
22  z_(z),
23  zside_(zside),
24  layer_(layer),
25  eta_(eta),
26  phi_(phi),
27  pt_(pt),
28  mipPt_(mipPt),
30 
31  ~HGCalCluster() = default;
32 
33  float x() const { return x_; }
34  float y() const { return y_; }
35  float z() const { return z_; }
36  float zside() const { return zside_; }
37  unsigned int layer() const { return layer_; }
38  float eta() const { return eta_; }
39  float phi() const { return phi_; }
40  float pt() const { return pt_; }
41  float mipPt() const { return mipPt_; }
42  unsigned int index_cmssw() const { return index_cmssw_; }
43 
44  private:
45  float x_;
46  float y_;
47  float z_;
48  int zside_;
49  unsigned int layer_;
50  float eta_;
51  float phi_;
52  float pt_;
53  float mipPt_;
54  unsigned int index_cmssw_;
55  };
56 
57  typedef std::vector<HGCalCluster> HGCalClusterSACollection;
58 
59 } // namespace l1thgcfirmware
60 
61 #endif
std::vector< HGCalCluster > HGCalClusterSACollection
HGCalCluster(float x, float y, float z, int zside, unsigned int layer, float eta, float phi, float pt, float mipPt, unsigned int index_cmssw)
unsigned int index_cmssw() const
unsigned int layer() const