Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-18 08:23:35

0001 #ifndef L1Trigger_L1THGCal_HGCalCluster_SA_h
0002 #define L1Trigger_L1THGCal_HGCalCluster_SA_h
0003 
0004 #include <vector>
0005 
0006 namespace l1thgcfirmware {
0007 
0008   class HGCalCluster {
0009   public:
0010     HGCalCluster(float x,
0011                  float y,
0012                  float z,
0013                  int zside,
0014                  unsigned int layer,
0015                  float eta,
0016                  float phi,
0017                  float pt,
0018                  float mipPt,
0019                  unsigned int index_cmssw)
0020         : x_(x),
0021           y_(y),
0022           z_(z),
0023           zside_(zside),
0024           layer_(layer),
0025           eta_(eta),
0026           phi_(phi),
0027           pt_(pt),
0028           mipPt_(mipPt),
0029           index_cmssw_(index_cmssw) {}
0030 
0031     ~HGCalCluster() = default;
0032 
0033     float x() const { return x_; }
0034     float y() const { return y_; }
0035     float z() const { return z_; }
0036     float zside() const { return zside_; }
0037     unsigned int layer() const { return layer_; }
0038     float eta() const { return eta_; }
0039     float phi() const { return phi_; }
0040     float pt() const { return pt_; }
0041     float mipPt() const { return mipPt_; }
0042     unsigned int index_cmssw() const { return index_cmssw_; }
0043 
0044   private:
0045     float x_;
0046     float y_;
0047     float z_;
0048     int zside_;
0049     unsigned int layer_;
0050     float eta_;
0051     float phi_;
0052     float pt_;
0053     float mipPt_;
0054     unsigned int index_cmssw_;
0055   };
0056 
0057   typedef std::vector<HGCalCluster> HGCalClusterSACollection;
0058 
0059 }  // namespace l1thgcfirmware
0060 
0061 #endif