forked from cms-sw/cmssw
/
SiStripApproximateCluster.h
34 lines (28 loc) · 1.1 KB
/
SiStripApproximateCluster.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef DataFormats_SiStripCluster_SiStripApproximateCluster_h
#define DataFormats_SiStripCluster_SiStripApproximateCluster_h
#include "FWCore/Utilities/interface/typedefs.h"
class SiStripCluster;
class SiStripApproximateCluster {
public:
SiStripApproximateCluster() {}
explicit SiStripApproximateCluster(cms_uint16_t barycenter,
cms_uint8_t width,
cms_uint8_t avgCharge,
bool isSaturated) {
barycenter_ = barycenter;
width_ = width;
avgCharge_ = avgCharge;
isSaturated_ = isSaturated;
}
explicit SiStripApproximateCluster(const SiStripCluster& cluster, unsigned int maxNSat);
cms_uint16_t barycenter() const { return barycenter_; }
cms_uint8_t width() const { return width_; }
cms_uint8_t avgCharge() const { return avgCharge_; }
bool isSaturated() const { return isSaturated_; }
private:
cms_uint16_t barycenter_ = 0;
cms_uint8_t width_ = 0;
cms_uint8_t avgCharge_ = 0;
bool isSaturated_ = false;
};
#endif // DataFormats_SiStripCluster_SiStripApproximateCluster_h