PandaRoot
PndSdsSimplePixelClusterFinder Class Reference

#include <PndSdsSimplePixelClusterFinder.h>

Inheritance diagram for PndSdsSimplePixelClusterFinder:
PndSdsPixelClusterFinder PndLmdSimplePixelClusterFinder PndMvdSimplePixelClusterFinder

Public Member Functions

 PndSdsSimplePixelClusterFinder ()
 
virtual ~PndSdsSimplePixelClusterFinder ()
 
std::vector< std::vector< Int_t > > GetClusters (std::vector< PndSdsDigiPixel > hits)
 
virtual void SetMaxCols (Int_t col)
 
virtual void SetMaxRows (Int_t row)
 
virtual void SetRadius (Double_t rad)
 
- Public Member Functions inherited from PndSdsPixelClusterFinder
 PndSdsPixelClusterFinder ()
 
 PndSdsPixelClusterFinder (PndSdsPixelClusterFinder &other)
 
PndSdsPixelClusterFinderoperator= (PndSdsPixelClusterFinder &other)
 
virtual ~PndSdsPixelClusterFinder ()
 
void Print ()
 
void Print (std::vector< PndSdsDigiPixel > hits)
 
void PrintResult (std::vector< std::vector< Int_t >> clusters)
 
void SetVerbose (Int_t level)
 
 ClassDef (PndSdsPixelClusterFinder, 2)
 

Protected Attributes

Int_t fcols
 
Int_t frows
 
Double_t fradius
 

Additional Inherited Members

- Public Attributes inherited from PndSdsPixelClusterFinder
std::vector< PndSdsDigiPixelfHits
 
Int_t fVerbose
 
PndSdsChargeConversionfChargeConverter
 

Detailed Description

PndSdsSimplePixelClusterFinder.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 20 of file PndSdsSimplePixelClusterFinder.h.

Constructor & Destructor Documentation

◆ PndSdsSimplePixelClusterFinder()

PndSdsSimplePixelClusterFinder::PndSdsSimplePixelClusterFinder ( )
inline

◆ ~PndSdsSimplePixelClusterFinder()

virtual PndSdsSimplePixelClusterFinder::~PndSdsSimplePixelClusterFinder ( )
inlinevirtual

Definition at line 27 of file PndSdsSimplePixelClusterFinder.h.

References GetClusters().

27 {};

Member Function Documentation

◆ GetClusters()

std::vector<std::vector<Int_t> > PndSdsSimplePixelClusterFinder::GetClusters ( std::vector< PndSdsDigiPixel hits)
virtual

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

Implements PndSdsPixelClusterFinder.

Referenced by ~PndSdsSimplePixelClusterFinder().

◆ SetMaxCols()

virtual void PndSdsSimplePixelClusterFinder::SetMaxCols ( Int_t  col)
inlinevirtual

Definition at line 33 of file PndSdsSimplePixelClusterFinder.h.

References fcols.

◆ SetMaxRows()

virtual void PndSdsSimplePixelClusterFinder::SetMaxRows ( Int_t  row)
inlinevirtual

Definition at line 34 of file PndSdsSimplePixelClusterFinder.h.

References frows.

◆ SetRadius()

virtual void PndSdsSimplePixelClusterFinder::SetRadius ( Double_t  rad)
inlinevirtual

Definition at line 35 of file PndSdsSimplePixelClusterFinder.h.

References fradius.

Member Data Documentation

◆ fcols

Int_t PndSdsSimplePixelClusterFinder::fcols
protected

Definition at line 38 of file PndSdsSimplePixelClusterFinder.h.

Referenced by SetMaxCols().

◆ fradius

Double_t PndSdsSimplePixelClusterFinder::fradius
protected

Definition at line 40 of file PndSdsSimplePixelClusterFinder.h.

Referenced by SetRadius().

◆ frows

Int_t PndSdsSimplePixelClusterFinder::frows
protected

Definition at line 39 of file PndSdsSimplePixelClusterFinder.h.

Referenced by SetMaxRows().


The documentation for this class was generated from the following file: