FairRoot/PandaRoot
PndLmdChargeWeightedPixelMapping.cxx
Go to the documentation of this file.
3 #include "PndSdsPixelDigiPar.h"
5 #include "PndSdsTotDigiPar.h"
6 
8  Int_t verbose)
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  Info("PndLmdChargeWeightedPixelMapping", "ideal charge conversion");
21  } else if (fDigiPar->GetChargeConvMethod() == 1) {
22  if (fVerbose > 0)
23  Info("PndLmdChargeWeightedPixelMapping", "use TOT charge conversion");
25  fTotDigiPar->GetChargingTime(), fTotDigiPar->GetConstCurrent(),
26  fDigiPar->GetThreshold(), fTotDigiPar->GetClockFrequency(), fVerbose);
27  } else {
28  Fatal("PndLmdChargeWeightedPixelMapping", "conversion method not defined!");
29  }
30 
31  flx = fDigiPar->GetXPitch();
32  fly = fDigiPar->GetYPitch();
33  fcols = fDigiPar->GetFECols();
34  frows = fDigiPar->GetFERows();
35 }
36 
38  PndGeoHandling* geo, Int_t verbose)
40  fVerbose = verbose;
41  FairRun* ana = FairRun::Instance();
42  FairRuntimeDb* rtdb = ana->GetRuntimeDb();
43  PndSdsPixelDigiPar* fDigiPar =
44  (PndSdsPixelDigiPar*)(rtdb->getContainer("SDSPixelDigiPar"));
45  PndSdsTotDigiPar* fTotDigiPar =
46  (PndSdsTotDigiPar*)(rtdb->getContainer("SDSPixelTotDigiPar"));
47  if (fDigiPar->GetChargeConvMethod() == 0) {
48  if (fVerbose > 0)
49  Info("PndLmdChargeWeightedPixelMapping", "ideal charge conversion");
51  } else if (fDigiPar->GetChargeConvMethod() == 1) {
52  if (fVerbose > 0)
53  Info("PndLmdChargeWeightedPixelMapping", "use TOT charge conversion");
55  fTotDigiPar->GetChargingTime(), fTotDigiPar->GetConstCurrent(),
56  fDigiPar->GetThreshold(), fTotDigiPar->GetClockFrequency(), fVerbose);
57  } else {
58  Fatal("PndLmdChargeWeightedPixelMapping", "conversion method not defined!");
59  }
60  flx = fDigiPar->GetXPitch();
61  fly = fDigiPar->GetYPitch();
62  fcols = fDigiPar->GetFECols();
63  frows = fDigiPar->GetFERows();
64 }
Double_t GetXPitch() const
Int_t GetChargeConvMethod() const
#define verbose
PndSdsChargedWeightedPixelMapping: Gets a vector of DigiHits and calculates the cluster center weight...
Charge Digitization Parameter Class for SDS.
Double_t GetConstCurrent() const
Double_t GetNoise() const
Double_t GetClockFrequency() const
Class to access the naming information of the MVD.
Int_t GetFERows() const
Int_t GetFECols() const
FairRuntimeDb * rtdb
Definition: hit_dirc.C:66
Double_t GetYPitch() const
Double_t GetChargingTime() const
Double_t GetThreshold() const
Digitization Parameter Class for SDS-Pixel part.