PandaRoot
PndSdsSimplePixelClusterFinder.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDSDSSIMPLEPIXELCLUSTERFINDER_H
14 #define PNDSDSSIMPLEPIXELCLUSTERFINDER_H
15 
31 
33  public:
35  // PndSdsSimplePixelClusterFinder(std::vector<PndSdsDigiPixel> hits):
36  // PndSdsPixelClusterFinder(hits){
37  // if(fVerbose>0)std::cout << "Hits in array: " << fHits.size() << std::endl;
38  //};
40 
43  std::vector<std::vector<Int_t>> GetClusters(std::vector<PndSdsDigiPixel> hits);
44 
45  virtual void SetMaxCols(Int_t col) { fcols = col; }
46  virtual void SetMaxRows(Int_t row) { frows = row; }
47  virtual void SetRadius(Double_t rad) { fradius = rad; }
48 
49  protected:
50  Int_t fcols;
51  Int_t frows;
52  Double_t fradius;
53 
54  private:
55  // PndSdsDigiPixel MoveHit(std::vector<PndSdsDigiPixel>* hitVector, Int_t index);
56  Int_t MoveHit(std::vector<Int_t> *hitVector, Int_t index) const;
57  bool IsInRange(PndSdsDigiPixel hit1, PndSdsDigiPixel hit2) const;
58 };
59 #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.