bug fix from prior checkin
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Aug 2010 21:14:23 +0000 (21:14 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Aug 2010 21:14:23 +0000 (21:14 +0000)
PWG2/FORWARD/analysis/AliFMDAnalysisTaskBackgroundCorrection.cxx

index 19e33b8..327d07d 100644 (file)
@@ -148,9 +148,9 @@ void AliFMDAnalysisTaskBackgroundCorrection::CreateOutputObjects()
     fOutputList->Add(hSPDMultTrVtx);
     
   }
-  
-  TH2F* dNdetadphiHistogram = new TH2F("dNdetadphiHistogramTrVtx","dNdetadphiHistogramTrVtx;#eta;#Phi",pars->GetNetaBins(),-6,6,20,0,2*TMath::Pi());
-  TH2F* dNdetadphiHistogramSPD = new TH2F("dNdetadphiHistogramSPDTrVtx","dNdetadphiHistogramSPDTrVtx;#eta;#Phi",pars->GetNetaBins(),-6,6,20,0,2*TMath::Pi());
+  TH2F* hBg = pars->GetBackgroundCorrection(1, 'I', 5);
+  TH2F* dNdetadphiHistogram = new TH2F("dNdetadphiHistogramTrVtx","dNdetadphiHistogramTrVtx;#eta;#Phi",pars->GetNetaBins(),hBg->GetXaxis()->GetXmin(),hBg->GetXaxis()->GetXmax(),20,0,2*TMath::Pi());
+  TH2F* dNdetadphiHistogramSPD = new TH2F("dNdetadphiHistogramSPDTrVtx","dNdetadphiHistogramSPDTrVtx;#eta;#Phi",pars->GetNetaBins(),hBg->GetXaxis()->GetXmin(),hBg->GetXaxis()->GetXmax(),20,0,2*TMath::Pi());
   //dNdetadphiHistogram->SetErrorOption("g");
   
   fHitList->Add(dNdetadphiHistogram);