Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:38

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