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  bool filter,
15  bool isSaturated,
16  bool peakFilter = false)
18  width_(width),
20  filter_(filter),
23 
24  explicit SiStripApproximateCluster(const SiStripCluster& cluster,
25  unsigned int maxNSat,
26  float hitPredPos,
27  bool peakFilter);
28 
29  cms_uint16_t barycenter() const { return barycenter_; }
30  cms_uint8_t width() const { return width_; }
31  cms_uint8_t avgCharge() const { return avgCharge_; }
32  bool filter() const { return filter_; }
33  bool isSaturated() const { return isSaturated_; }
34  bool peakFilter() const { return peakFilter_; }
35 
36 private:
40  bool filter_ = false;
41  bool isSaturated_ = false;
42  bool peakFilter_ = false;
43  static constexpr double trimMaxADC_ = 30.;
44  static constexpr double trimMaxFracTotal_ = .15;
45  static constexpr double trimMaxFracNeigh_ = .25;
46  static constexpr double maxTrimmedSizeDiffNeg_ = .7;
47  static constexpr double maxTrimmedSizeDiffPos_ = 1.;
48 };
49 #endif // DataFormats_SiStripCluster_SiStripApproximateCluster_h
static constexpr double maxTrimmedSizeDiffNeg_
SiStripApproximateCluster(cms_uint16_t barycenter, cms_uint8_t width, cms_uint8_t avgCharge, bool filter, bool isSaturated, bool peakFilter=false)
unsigned char cms_uint8_t
Definition: typedefs.h:11
static constexpr double trimMaxFracTotal_
unsigned short cms_uint16_t
Definition: typedefs.h:13
static constexpr double maxTrimmedSizeDiffPos_
static constexpr double trimMaxFracNeigh_
static constexpr double trimMaxADC_