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  if(fVerbose>0) std::cout<<"Info in <PndMvdSimplePixelClusterFinder>: ideal charge conversion"<<std::endl;
35  }
36  else if (fDigiPar->GetChargeConvMethod() == 1){
37  if(fVerbose>0) std::cout<<"Info in <PndMvdSimplePixelClusterFinder>: TOT charge conversion"<<std::endl;
43  fVerbose);
44  }
45  else{
46  std::cout<<"Error in <PndMvdSimplePixelClusterFinder>: charge conversion method not defined, use ideal converter..."<<std::endl;
48  }
52 }
53 
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.