FairRoot/PandaRoot
Public Member Functions | Public Attributes | List of all members
PndSdsPixelClusterFinder Class Referenceabstract

Base class for cluster finding algorithms. More...

#include <PndSdsPixelClusterFinder.h>

Inheritance diagram for PndSdsPixelClusterFinder:
PndSdsIdealPixelClusterFinder PndSdsSimplePixelClusterFinder PndLmdSimplePixelClusterFinder PndMvdSimplePixelClusterFinder

Public Member Functions

 PndSdsPixelClusterFinder ()
 
 PndSdsPixelClusterFinder (PndSdsPixelClusterFinder &other)
 
PndSdsPixelClusterFinderoperator= (PndSdsPixelClusterFinder &other)
 
virtual ~PndSdsPixelClusterFinder ()
 
virtual std::vector
< std::vector< Int_t > > 
GetClusters (std::vector< PndSdsDigiPixel > hits)=0
 
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< PndSdsDigiPixelfHits
 
Int_t fVerbose
 
PndSdsChargeConversionfChargeConverter
 

Detailed Description

Base class for cluster finding algorithms.

Author
Tobias Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de As input it gets all digis to be analyzed and a set of parameters vector<Double_t> The output is a vector< vector <Int_t> > which contains the position of the hits in the TClonesArray containing the Digis

Definition at line 16 of file PndSdsPixelClusterFinder.h.

Constructor & Destructor Documentation

PndSdsPixelClusterFinder::PndSdsPixelClusterFinder ( )
inline

Definition at line 19 of file PndSdsPixelClusterFinder.h.

20  : fHits(),
21  fVerbose(0),
22  fChargeConverter(NULL)
23  {};
PndSdsChargeConversion * fChargeConverter
std::vector< PndSdsDigiPixel > fHits
PndSdsPixelClusterFinder::PndSdsPixelClusterFinder ( PndSdsPixelClusterFinder other)
inline

Definition at line 24 of file PndSdsPixelClusterFinder.h.

25  : fHits(other.fHits),
26  fVerbose(other.fVerbose),
28  {};
PndSdsChargeConversion * fChargeConverter
std::vector< PndSdsDigiPixel > fHits
virtual PndSdsPixelClusterFinder::~PndSdsPixelClusterFinder ( )
inlinevirtual

Definition at line 36 of file PndSdsPixelClusterFinder.h.

36 {};

Member Function Documentation

PndSdsPixelClusterFinder::ClassDef ( PndSdsPixelClusterFinder  ,
 
)
virtual std::vector< std::vector < Int_t > > PndSdsPixelClusterFinder::GetClusters ( std::vector< PndSdsDigiPixel hits)
pure virtual
PndSdsPixelClusterFinder& PndSdsPixelClusterFinder::operator= ( PndSdsPixelClusterFinder other)
inline

Definition at line 29 of file PndSdsPixelClusterFinder.h.

References fChargeConverter, fHits, and fVerbose.

30  {
31  fHits=other.fHits;
32  fVerbose=other.fVerbose;
34  return *this;
35  };
PndSdsChargeConversion * fChargeConverter
std::vector< PndSdsDigiPixel > fHits
void PndSdsPixelClusterFinder::Print ( )

Definition at line 20 of file PndSdsPixelClusterFinder.cxx.

References fHits.

Referenced by PndSdsIdealPixelClusterFinder::GetClusters(), and PrintResult().

21 {
22  Print(fHits);
23 }
std::vector< PndSdsDigiPixel > fHits
void PndSdsPixelClusterFinder::Print ( std::vector< PndSdsDigiPixel hits)

Definition at line 12 of file PndSdsPixelClusterFinder.cxx.

References i.

13 {
14  std::cout << "--------------" << std::endl;
15  for (UInt_t i = 0; i < hits.size(); i++){
16  std::cout << hits[i] << std::endl;
17  }
18 }
Int_t i
Definition: run_full.C:25
CbmHit * hits[nHits]
Definition: RiemannTest.C:19
void PndSdsPixelClusterFinder::PrintResult ( std::vector< std::vector< Int_t > >  clusters)

Definition at line 25 of file PndSdsPixelClusterFinder.cxx.

References fHits, i, and Print().

Referenced by PndSdsIdealPixelClusterFinder::GetClusters(), and PndSdsSimplePixelClusterFinder::GetClusters().

26 {
27  for (UInt_t i = 0; i < clusters.size(); i++){
28  std::cout << "PndSdsPixelClusterFinder::PrintResult(): Cluster " << i << ": " << std::endl;
29  for (UInt_t j = 0; j < clusters[i].size();j++)
30  fHits[clusters[i][j]].Print();
31  }
32 }
Int_t i
Definition: run_full.C:25
std::vector< PndSdsDigiPixel > fHits
void PndSdsPixelClusterFinder::SetVerbose ( Int_t  level)
inline

Definition at line 41 of file PndSdsPixelClusterFinder.h.

References fVerbose.

Referenced by PndSdsIdealClusterTask::Init().

Member Data Documentation

PndSdsChargeConversion* PndSdsPixelClusterFinder::fChargeConverter
std::vector<PndSdsDigiPixel> PndSdsPixelClusterFinder::fHits
Int_t PndSdsPixelClusterFinder::fVerbose

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