Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:08:38

0001 #ifndef DQM_SiStripCommon_APVShotFinder_h
0002 #define DQM_SiStripCommon_APVShotFinder_h
0003 
0004 #include <vector>
0005 #include "DQM/SiStripCommon/interface/APVShot.h"
0006 
0007 class SiStripDigi;
0008 
0009 namespace edm {
0010   template <class T>
0011   struct DetSet;
0012   template <class T>
0013   class DetSetVector;
0014 }  // namespace edm
0015 
0016 class APVShotFinder {
0017 public:
0018   APVShotFinder(const bool zs = true);
0019   APVShotFinder(const edm::DetSet<SiStripDigi>& digis, const bool zs = true);
0020   APVShotFinder(const edm::DetSetVector<SiStripDigi>& digicoll, const bool zs = true);
0021 
0022   void computeShots(const edm::DetSet<SiStripDigi>& digis);
0023   void computeShots(const edm::DetSetVector<SiStripDigi>& digicoll);
0024 
0025   const std::vector<APVShot>& getShots() const;
0026 
0027 private:
0028   void addShots(const edm::DetSet<SiStripDigi>& digis);
0029 
0030   bool _zs;
0031   std::vector<APVShot> _shots;
0032 };
0033 
0034 #endif  // DQM_SiStripCommon_APVShotFinder_h