File indexing completed on 2024-04-06 12:08:38
0001 #ifndef DQM_SiStripCommon_APVShot_h
0002 #define DQM_SiStripCommon_APVShot_h
0003
0004 #include <vector>
0005 #include "DataFormats/DetId/interface/DetId.h"
0006
0007 class SiStripDigi;
0008
0009 class APVShot {
0010 public:
0011 APVShot();
0012 APVShot(const bool zs = true);
0013 APVShot(const std::vector<SiStripDigi>& digis, const DetId& detid, const bool zs = true);
0014
0015 void computeShot(const std::vector<SiStripDigi>& digis, const DetId& detid, const bool zs = true);
0016
0017 const bool isGenuine() const;
0018 const int apvNumber() const;
0019 const int nStrips() const;
0020 const float median() const;
0021 const int subDet() const;
0022 const unsigned int detId() const;
0023
0024 private:
0025 bool _zs;
0026 int _apv;
0027 int _nstrips;
0028 float _median;
0029 DetId _detid;
0030
0031 const static int _threshold;
0032 };
0033
0034 #endif