PandaRoot
PndMvdTopixClusterFinder.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 PNDMVDTOPIXCLUSTERFINDER_H
14 #define PNDMVDTOPIXCLUSTERFINDER_H
15 
16 #include "PndSdsDigiTopix4.h"
17 
18 #include <vector>
19 
34 
36  public:
38  PndMvdTopixClusterFinder(int maxrows, int maxcols, double radius) : frows(maxrows), fcols(maxcols), fradius(radius){};
40 
43  std::vector<std::vector<Int_t>> GetClusters(std::vector<PndSdsDigiTopix4> &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  // std::vector<PndSdsDigiTopix4> fHits;
60 };
61 #endif
virtual void SetRadius(Double_t rad)
PndMvdTopixClusterFinder(int maxrows, int maxcols, double radius)
virtual void SetMaxRows(Int_t row)
virtual void SetMaxCols(Int_t col)
Data class to store the digi output of a pixel module.
std::vector< std::vector< Int_t > > GetClusters(std::vector< PndSdsDigiTopix4 > &hits)