FairRoot/PandaRoot
PndMvdSimplePixelClusterFinder.cxx
Go to the documentation of this file.
1 // A simple clusterfinder for pixel detectors
5 #include "FairLogger.h"
6 
8 fParName(parName),
9 fTotParName(totParName),
10 fDigiPar(NULL),
11 fTotDigiPar(NULL)
12 {
13  fVerbose = verbose;
14  FairRun* ana = FairRun::Instance();
15  FairRuntimeDb* rtdb=ana->GetRuntimeDb();
16  fDigiPar = (PndSdsPixelDigiPar*)(rtdb->getContainer(fParName.Data()));
17  fTotDigiPar = (PndSdsTotDigiPar*)(rtdb->getContainer(fTotParName.Data()));
18  SetParameters();
19 };
20 
22 fParName(""),
23 fTotParName(""),
24 fDigiPar(digiPar),
25 fTotDigiPar(totPar)
26 {
27  SetParameters();
28 }
29 
31 {
32  if (fDigiPar->GetChargeConvMethod() == 0)
33  {
34  if (fVerbose > 0) std::cout << "Info in <PndMvdSimplePixelClusterFinder>: ideal charge conversion" << std::endl;
36  } else if (fDigiPar->GetChargeConvMethod() == 1)
37  {
38  if (fVerbose > 0) std::cout << "Info in <PndMvdSimplePixelClusterFinder>: TOT charge conversion" << std::endl;
41  } else
42  {
43  std::cout
44  << "Error in <PndMvdSimplePixelClusterFinder>: charge conversion method not defined, use ideal converter..."
45  << std::endl;
47  }
51 
52  if (fVerbose > 1)
53  std::cout << "PndMvdSimplePixelClusterFinder::SetParameters() Cols/Rows " << fcols << "/" << frows << " Radius: " << fradius << std::endl;
54 }
55 
Double_t GetClustRadius() const
Int_t GetChargeConvMethod() const
#define verbose
Charge Digitization Parameter Class for SDS.
Double_t GetConstCurrent() const
Double_t GetNoise() const
Double_t GetClockFrequency() const
PndSdsChargeConversion * fChargeConverter
Int_t GetFERows() const
Int_t GetFECols() const
FairRuntimeDb * rtdb
Definition: hit_dirc.C:66
PndMvdSimplePixelClusterFinder(TString parName="MVDPixelDigiPar", TString totParName="MVDPixelTotDigiPar", Int_t verbose=0)
Double_t GetChargingTime() const
Double_t GetThreshold() const
Digitization Parameter Class for SDS-Pixel part.