Go to the documentation of this file.00001 #ifndef DQM_SiStripCommon_APVShot_h
00002 #define DQM_SiStripCommon_APVShot_h
00003
00004 #include <vector>
00005 #include "DataFormats/DetId/interface/DetId.h"
00006
00007 class SiStripDigi;
00008
00009
00010 class APVShot {
00011
00012 public:
00013 APVShot();
00014 APVShot(const bool zs=true);
00015 APVShot(const std::vector<SiStripDigi>& digis, const DetId& detid, const bool zs=true);
00016
00017 void computeShot(const std::vector<SiStripDigi>& digis, const DetId& detid, const bool zs=true);
00018
00019 const bool isGenuine() const;
00020 const int apvNumber() const;
00021 const int nStrips() const;
00022 const float median() const;
00023 const int subDet() const;
00024 const unsigned int detId() const;
00025
00026 private:
00027
00028 bool _zs;
00029 int _apv;
00030 int _nstrips;
00031 float _median;
00032 DetId _detid;
00033
00034 const static int _threshold;
00035
00036 };
00037
00038 #endif // DQM_SiStripCommon_APVShot_h