Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-08-27 01:27:34

0001 #ifndef DataFormats_SiStripCluster_SiStripApproximateCluster_h
0002 #define DataFormats_SiStripCluster_SiStripApproximateCluster_h
0003 
0004 #include "FWCore/Utilities/interface/typedefs.h"
0005 
0006 class SiStripCluster;
0007 class SiStripApproximateCluster {
0008 public:
0009   SiStripApproximateCluster() {}
0010 
0011   explicit SiStripApproximateCluster(cms_uint16_t barycenter,
0012                                      cms_uint8_t width,
0013                                      cms_uint8_t avgCharge,
0014                                      bool isSaturated) {
0015     barycenter_ = barycenter;
0016     width_ = width;
0017     avgCharge_ = avgCharge;
0018     isSaturated_ = isSaturated;
0019   }
0020 
0021   explicit SiStripApproximateCluster(const SiStripCluster& cluster, unsigned int maxNSat);
0022 
0023   cms_uint16_t barycenter() const { return barycenter_; }
0024   cms_uint8_t width() const { return width_; }
0025   cms_uint8_t avgCharge() const { return avgCharge_; }
0026   bool isSaturated() const { return isSaturated_; }
0027 
0028 private:
0029   cms_uint16_t barycenter_ = 0;
0030   cms_uint8_t width_ = 0;
0031   cms_uint8_t avgCharge_ = 0;
0032   bool isSaturated_ = false;
0033 };
0034 #endif  // DataFormats_SiStripCluster_SiStripApproximateCluster_h