FairRoot/PandaRoot
|
#include <PndSdsSimplePixelClusterFinder.h>
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) |
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) | |
Public Attributes | |
std::vector< PndSdsDigiPixel > | fHits |
Int_t | fVerbose |
PndSdsChargeConversion * | fChargeConverter |
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 |
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 21 of file PndSdsSimplePixelClusterFinder.h.
|
inline |
Definition at line 24 of file PndSdsSimplePixelClusterFinder.h.
|
inlinevirtual |
Definition at line 29 of file PndSdsSimplePixelClusterFinder.h.
|
inherited |
|
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.
Definition at line 6 of file PndSdsSimplePixelClusterFinder.cxx.
References PndSdsChargeConversion::DigiValueToCharge(), PndSdsPixelClusterFinder::fChargeConverter, PndSdsPixelClusterFinder::fHits, PndSdsPixelClusterFinder::fVerbose, hits, i, IsInRange(), MoveHit(), PndSdsPixelClusterFinder::PrintResult(), and push_back().
|
private |
Definition at line 65 of file PndSdsSimplePixelClusterFinder.cxx.
References Double_t, fcols, fradius, frows, PndSdsPixelClusterFinder::fVerbose, PndSdsDigi::GetFE(), PndSdsDigiPixel::GetPixelColumn(), PndSdsDigiPixel::GetPixelRow(), PndSdsDigiPixel::Print(), and CAMath::Sqrt().
Referenced by GetClusters().
|
private |
Definition at line 55 of file PndSdsSimplePixelClusterFinder.cxx.
Referenced by GetClusters().
|
inherited |
Definition at line 20 of file PndSdsPixelClusterFinder.cxx.
References PndSdsPixelClusterFinder::fHits.
Referenced by PndSdsIdealPixelClusterFinder::GetClusters(), and PndSdsPixelClusterFinder::PrintResult().
|
inherited |
|
inherited |
Definition at line 25 of file PndSdsPixelClusterFinder.cxx.
References PndSdsPixelClusterFinder::fHits, i, and PndSdsPixelClusterFinder::Print().
Referenced by PndSdsIdealPixelClusterFinder::GetClusters(), and GetClusters().
|
inlinevirtual |
Definition at line 35 of file PndSdsSimplePixelClusterFinder.h.
|
inlinevirtual |
Definition at line 36 of file PndSdsSimplePixelClusterFinder.h.
|
inlinevirtual |
Definition at line 37 of file PndSdsSimplePixelClusterFinder.h.
References fradius.
|
inlineinherited |
Definition at line 41 of file PndSdsPixelClusterFinder.h.
References PndSdsPixelClusterFinder::fVerbose.
Referenced by PndSdsIdealClusterTask::Init().
|
inherited |
Definition at line 46 of file PndSdsPixelClusterFinder.h.
Referenced by GetClusters(), PndSdsPixelClusterFinder::operator=(), PndLmdSimplePixelClusterFinder::PndLmdSimplePixelClusterFinder(), and PndMvdSimplePixelClusterFinder::SetParameters().
|
protected |
Definition at line 40 of file PndSdsSimplePixelClusterFinder.h.
Referenced by IsInRange(), PndLmdSimplePixelClusterFinder::PndLmdSimplePixelClusterFinder(), SetMaxCols(), and PndMvdSimplePixelClusterFinder::SetParameters().
|
inherited |
Definition at line 41 of file PndSdsPixelClusterFinder.h.
Referenced by PndSdsIdealPixelClusterFinder::GetClusters(), GetClusters(), PndSdsPixelClusterFinder::operator=(), PndSdsPixelClusterFinder::Print(), and PndSdsPixelClusterFinder::PrintResult().
|
protected |
Definition at line 42 of file PndSdsSimplePixelClusterFinder.h.
Referenced by IsInRange(), PndLmdSimplePixelClusterFinder::PndLmdSimplePixelClusterFinder(), PndMvdSimplePixelClusterFinder::SetParameters(), and SetRadius().
|
protected |
Definition at line 41 of file PndSdsSimplePixelClusterFinder.h.
Referenced by IsInRange(), PndLmdSimplePixelClusterFinder::PndLmdSimplePixelClusterFinder(), SetMaxRows(), and PndMvdSimplePixelClusterFinder::SetParameters().
|
inherited |
Definition at line 44 of file PndSdsPixelClusterFinder.h.
Referenced by PndSdsIdealPixelClusterFinder::GetClusters(), GetClusters(), IsInRange(), PndSdsPixelClusterFinder::operator=(), PndLmdSimplePixelClusterFinder::PndLmdSimplePixelClusterFinder(), PndMvdSimplePixelClusterFinder::PndMvdSimplePixelClusterFinder(), PndMvdSimplePixelClusterFinder::SetParameters(), and PndSdsPixelClusterFinder::SetVerbose().