CMS 3D CMS Logo

APVShot.h
Go to the documentation of this file.
1 #ifndef DQM_SiStripCommon_APVShot_h
2 #define DQM_SiStripCommon_APVShot_h
3 
4 #include <vector>
6 
7 class SiStripDigi;
8 
9 class APVShot {
10 public:
11  APVShot();
12  APVShot(const bool zs = true);
13  APVShot(const std::vector<SiStripDigi>& digis, const DetId& detid, const bool zs = true);
14 
15  void computeShot(const std::vector<SiStripDigi>& digis, const DetId& detid, const bool zs = true);
16 
17  const bool isGenuine() const;
18  const int apvNumber() const;
19  const int nStrips() const;
20  const float median() const;
21  const int subDet() const;
22  const unsigned int detId() const;
23 
24 private:
25  bool _zs;
26  int _apv;
27  int _nstrips;
28  float _median;
30 
31  const static int _threshold;
32 };
33 
34 #endif // DQM_SiStripCommon_APVShot_h
static const int _threshold
Definition: APVShot.h:31
DetId _detid
Definition: APVShot.h:29
float _median
Definition: APVShot.h:28
const unsigned int detId() const
Definition: APVShot.cc:57
const int apvNumber() const
Definition: APVShot.cc:49
const int subDet() const
Definition: APVShot.cc:55
bool _zs
Definition: APVShot.h:25
void computeShot(const std::vector< SiStripDigi > &digis, const DetId &detid, const bool zs=true)
Definition: APVShot.cc:16
const float median() const
Definition: APVShot.cc:53
int _apv
Definition: APVShot.h:26
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
Definition: SiStripDigi.h:12
const bool isGenuine() const
Definition: APVShot.cc:47
const int nStrips() const
Definition: APVShot.cc:51
APVShot()
Definition: APVShot.cc:7
Definition: DetId.h:17
Definition: APVShot.h:9
int _nstrips
Definition: APVShot.h:27