PandaRoot
PndSdsSimplePixelClusterFinder.h
Go to the documentation of this file.
1 #ifndef PNDSDSSIMPLEPIXELCLUSTERFINDER_H
2 #define PNDSDSSIMPLEPIXELCLUSTERFINDER_H
3 
19 
21  public:
23  // PndSdsSimplePixelClusterFinder(std::vector<PndSdsDigiPixel> hits):
24  // PndSdsPixelClusterFinder(hits){
25  // if(fVerbose>0)std::cout << "Hits in array: " << fHits.size() << std::endl;
26  //};
28 
31  std::vector<std::vector<Int_t>> GetClusters(std::vector<PndSdsDigiPixel> hits);
32 
33  virtual void SetMaxCols(Int_t col) { fcols = col; }
34  virtual void SetMaxRows(Int_t row) { frows = row; }
35  virtual void SetRadius(Double_t rad) { fradius = rad; }
36 
37  protected:
38  Int_t fcols;
39  Int_t frows;
40  Double_t fradius;
41 
42  private:
43  // PndSdsDigiPixel MoveHit(std::vector<PndSdsDigiPixel>* hitVector, Int_t index);
44  Int_t MoveHit(std::vector<Int_t> *hitVector, Int_t index) const;
45  bool IsInRange(PndSdsDigiPixel hit1, PndSdsDigiPixel hit2) const;
46 };
47 #endif
std::vector< std::vector< Int_t > > GetClusters(std::vector< PndSdsDigiPixel > hits)
Base class for cluster finding algorithms.
Data class to store the digi output of a pixel module.