FairRoot/PandaRoot
|
#include <PndMvdTopixClusterFinder.h>
Public Member Functions | |
PndMvdTopixClusterFinder () | |
PndMvdTopixClusterFinder (int maxrows, int maxcols, double radius) | |
virtual | ~PndMvdTopixClusterFinder () |
std::vector< std::vector< Int_t > > | GetClusters (std::vector< PndSdsDigiTopix4 > &hits) |
virtual void | SetMaxCols (Int_t col) |
virtual void | SetMaxRows (Int_t row) |
virtual void | SetRadius (Double_t rad) |
Protected Attributes | |
Int_t | fcols |
Int_t | frows |
Double_t | fradius |
Private Member Functions | |
Int_t | MoveHit (std::vector< Int_t > *hitVector, Int_t index) const |
bool | IsInRange (PndSdsDigiPixel *hit1, PndSdsDigiPixel *hit2) const |
PndMvdTopixClusterFinder.h Simple cluster finder for pixel detectors.
It takes the first hit in the DigiArray and moves it into a new cluster. Then it looks through the remaining hits in the DigiArray if there are hits which are in the area around the first hit and moves them into the cluster. The radius is given by the first parameter. Then it takes the new hits in the cluster and looks if there are other hits which are in the range of these hits and moves them into the cluster, too. This process is repeated until no hits around the cluster are found The the first hit of the remaining DigiHits is taken to create a new hit and the cluster search process is started again.
params: Number of columns in a front-end Number of rows in a front-end Range as Int_t at which a pixel belongs to a cluster or not params are taken from parameter database
Definition at line 24 of file PndMvdTopixClusterFinder.h.
|
inline |
Definition at line 27 of file PndMvdTopixClusterFinder.h.
|
inline |
Definition at line 28 of file PndMvdTopixClusterFinder.h.
|
inlinevirtual |
Definition at line 29 of file PndMvdTopixClusterFinder.h.
std::vector< std::vector< Int_t > > PndMvdTopixClusterFinder::GetClusters | ( | std::vector< PndSdsDigiTopix4 > & | hits | ) |
Main method which searches for the clusters. It returns a matrix of ints where a column corresponds to a cluster and an integer to a hit in the DigiArray
Definition at line 9 of file PndMvdTopixClusterFinder.cxx.
References i, IsInRange(), MoveHit(), and push_back().
Referenced by PndMQTopix4DigiToHit::Run().
|
private |
Definition at line 54 of file PndMvdTopixClusterFinder.cxx.
References Double_t, fcols, fradius, frows, PndSdsDigi::GetFE(), PndSdsDigiPixel::GetPixelColumn(), PndSdsDigiPixel::GetPixelRow(), and CAMath::Sqrt().
Referenced by GetClusters().
|
private |
Definition at line 44 of file PndMvdTopixClusterFinder.cxx.
Referenced by GetClusters().
|
inlinevirtual |
Definition at line 35 of file PndMvdTopixClusterFinder.h.
|
inlinevirtual |
Definition at line 36 of file PndMvdTopixClusterFinder.h.
|
inlinevirtual |
|
protected |
Definition at line 40 of file PndMvdTopixClusterFinder.h.
Referenced by IsInRange(), and SetMaxCols().
|
protected |
Definition at line 42 of file PndMvdTopixClusterFinder.h.
Referenced by IsInRange(), and SetRadius().
|
protected |
Definition at line 41 of file PndMvdTopixClusterFinder.h.
Referenced by IsInRange(), and SetMaxRows().