CMS 3D CMS Logo

SiStripApproximateCluster.h
Go to the documentation of this file.
1 #ifndef DataFormats_SiStripCluster_SiStripApproximateCluster_h
2 #define DataFormats_SiStripCluster_SiStripApproximateCluster_h
3 
5 
6 class SiStripCluster;
8 public:
10 
14  width_ = width;
16  filter_ = filter;
18  }
19 
20  explicit SiStripApproximateCluster(const SiStripCluster& cluster,
21  unsigned int maxNSat,
22  float hitPredPos,
23  bool peakFilter);
24 
25  cms_uint16_t barycenter() const { return barycenter_; }
26  cms_uint8_t width() const { return width_; }
27  cms_uint8_t avgCharge() const { return avgCharge_; }
28  bool filter() const { return filter_; }
29  bool isSaturated() const { return isSaturated_; }
30  bool peakFilter() const { return peakFilter_; }
31 
32 private:
36  bool filter_ = false;
37  bool isSaturated_ = false;
38  bool peakFilter_ = false;
39  static constexpr double trimMaxADC_ = 30.;
40  static constexpr double trimMaxFracTotal_ = .15;
41  static constexpr double trimMaxFracNeigh_ = .25;
42  static constexpr double maxTrimmedSizeDiffNeg_ = .7;
43  static constexpr double maxTrimmedSizeDiffPos_ = 1.;
44 };
45 #endif // DataFormats_SiStripCluster_SiStripApproximateCluster_h
static constexpr double maxTrimmedSizeDiffNeg_
unsigned char cms_uint8_t
Definition: typedefs.h:11
static constexpr double trimMaxFracTotal_
SiStripApproximateCluster(cms_uint16_t barycenter, cms_uint8_t width, cms_uint8_t avgCharge, bool filter, bool isSaturated)
unsigned short cms_uint16_t
Definition: typedefs.h:13
static constexpr double maxTrimmedSizeDiffPos_
static constexpr double trimMaxFracNeigh_
static constexpr double trimMaxADC_