FairRoot/PandaRoot
PndMvdChargeWeightedPixelMapping.cxx
Go to the documentation of this file.
4 #include "FairLogger.h"
5 
8  fDigiPar(NULL),
9  fTotDigiPar(NULL)
10 {
11  fVerbose = verbose;
12  FairRun* ana = FairRun::Instance();
13  FairRuntimeDb* rtdb=ana->GetRuntimeDb();
14  fDigiPar = (PndSdsPixelDigiPar*)(rtdb->getContainer("MVDPixelDigiPar"));
15  fTotDigiPar = (PndSdsTotDigiPar*)(rtdb->getContainer("MVDPixelTotDigiPar"));
17 }
18 
21  fDigiPar(NULL),
22  fTotDigiPar(NULL)
23 {
24  fVerbose = verbose;
25  FairRun* ana = FairRun::Instance();
26  FairRuntimeDb* rtdb=ana->GetRuntimeDb();
27  fDigiPar = (PndSdsPixelDigiPar*)(rtdb->getContainer("MVDPixelDigiPar"));
28  fTotDigiPar = (PndSdsTotDigiPar*)(rtdb->getContainer("MVDPixelTotDigiPar"));
30 }
31 
32 
35  fDigiPar(digiPar),
36  fTotDigiPar(totPar)
37 {
39 }
40 
42 {
43  LOG(INFO) << "ChargeConversionMethod: " << fDigiPar->GetChargeConvMethod() << " " << fDigiPar->GetThreshold() << FairLogger::endl;
44  if (fDigiPar->GetChargeConvMethod() == 0){
45  if(fVerbose>0) Info("PndMvdChargeWeightedPixelMapping","ideal charge conversion");
47  }
48  else if (fDigiPar->GetChargeConvMethod() == 1){
49  if(fVerbose>0) Info("PndMvdChargeWeightedPixelMapping","use TOT charge conversion");
55  fVerbose);
56  }
57  else {
58  Fatal("PndMvdChargeWeightedPixelMapping", "conversion method not defined!");
59  }
60  flx = fDigiPar->GetXPitch();
61  fly = fDigiPar->GetYPitch();
64  LOG(INFO) << "ChargeConversionMethod: " << fDigiPar->GetChargeConvMethod() << " " << fChargeConverter << FairLogger::endl;
65 }
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.