FairRoot/PandaRoot
PndLmdSimplePixelClusterFinder.cxx
Go to the documentation of this file.
1 // A simple clusterfinder for pixel detectors
4 #include "PndSdsPixelDigiPar.h"
6 #include "PndSdsTotDigiPar.h"
7 
10  fVerbose = verbose;
11  FairRun* ana = FairRun::Instance();
12  FairRuntimeDb* rtdb = ana->GetRuntimeDb();
13  PndSdsPixelDigiPar* fDigiPar =
14  (PndSdsPixelDigiPar*)(rtdb->getContainer("SDSPixelDigiPar"));
15  PndSdsTotDigiPar* fTotDigiPar =
16  (PndSdsTotDigiPar*)(rtdb->getContainer("SDSPixelTotDigiPar"));
17  if (fDigiPar->GetChargeConvMethod() == 0) {
18  if (fVerbose > 0)
19  std::cout
20  << "Info in <PndLmdSimplePixelClusterFinder>: ideal charge conversion"
21  << std::endl;
23  } else if (fDigiPar->GetChargeConvMethod() == 1) {
24  if (fVerbose > 0)
25  std::cout
26  << "Info in <PndLmdSimplePixelClusterFinder>: TOT charge conversion"
27  << std::endl;
29  fTotDigiPar->GetChargingTime(), fTotDigiPar->GetConstCurrent(),
30  fDigiPar->GetThreshold(), fTotDigiPar->GetClockFrequency(), fVerbose);
31  } else {
32  std::cout << "Error in <PndLmdSimplePixelClusterFinder>: charge conversion "
33  "method not defined, use ideal converter..."
34  << std::endl;
36  }
37  fcols = fDigiPar->GetFECols();
38  frows = fDigiPar->GetFERows();
39  fradius = fDigiPar->GetClustRadius();
40 };
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
Double_t GetChargingTime() const
Double_t GetThreshold() const
Digitization Parameter Class for SDS-Pixel part.