FairRoot/PandaRoot
PndMQMvdChargeWeightedPixelMapping.cxx
Go to the documentation of this file.
4 #include "FairLogger.h"
5 
9  FairRun* ana = FairRun::Instance();
10  FairRuntimeDb* rtdb=ana->GetRuntimeDb();
11  fDigiPar = (PndSdsPixelDigiPar*)(rtdb->getContainer("MVDPixelDigiPar"));
12  fTotDigiPar = (PndSdsTotDigiPar*)(rtdb->getContainer("MVDPixelTotDigiPar"));
13 
15 
16 }
17 
20  fVerbose = verbose;
21  FairRun* ana = FairRun::Instance();
22  FairRuntimeDb* rtdb=ana->GetRuntimeDb();
23  fDigiPar = (PndSdsPixelDigiPar*)(rtdb->getContainer("MVDPixelDigiPar"));
24  fTotDigiPar = (PndSdsTotDigiPar*)(rtdb->getContainer("MVDPixelTotDigiPar"));
25 
27 
28 }
29 
30 
32 :PndMQSdsChargeWeightedPixelMapping(geo), fDigiPar(digiPar), fTotDigiPar(totPar)
33 {
35 }
36 
38 {
39  LOG(INFO) << "ChargeConversionMethod: " << fDigiPar->GetChargeConvMethod() << " " << fDigiPar->GetThreshold() << FairLogger::endl;
40  if (fDigiPar->GetChargeConvMethod() == 0){
41  if(fVerbose>0) Info("PndMQMvdChargeWeightedPixelMapping","ideal charge conversion");
43  }
44  else if (fDigiPar->GetChargeConvMethod() == 1){
45  if(fVerbose>0) Info("PndMQMvdChargeWeightedPixelMapping","use TOT charge conversion");
51  fVerbose);
52  }
53  else {
54  Fatal("PndMQMvdChargeWeightedPixelMapping", "conversion method not defined!");
55  }
56  flx = fDigiPar->GetXPitch();
57  fly = fDigiPar->GetYPitch();
60  LOG(INFO) << "ChargeConversionMethod: " << fDigiPar->GetChargeConvMethod() << " " << fChargeConverter << FairLogger::endl;
61 }
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.