]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/FORWARD/analysis2/AliPoissonCalculator.cxx
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliPoissonCalculator.cxx
index a240507ef159382fd68df703ef6ca1da59df5b3b..c37cd66595bb94be9e7814c7d17d740670548b01 100644 (file)
@@ -13,7 +13,7 @@
 // using Poisson statistics. 
 //
 // The input is assumed to be binned in @f$(x,y)@f$ as described by
-// the 2D histogram passwd to the Reset member function.
+// the 2D histogram passed to the Reset member function.
 //
 // The data is grouped in to regions as defined by the parameters
 // fXLumping and fYLumping.  The total number of cells and number of
@@ -406,6 +406,13 @@ AliPoissonCalculator::Result(Bool_t correct)
       fBasic->SetBinError(ix,iy,poissonE);
     }
   }
+  return fBasic;
+}
+  
+//____________________________________________________________________
+void
+AliPoissonCalculator::FillDiagnostics()
+{
   for (Int_t ix = 1; ix <= fEmpty->GetNbinsX(); ix++) { 
     for (Int_t iy = 1; iy <= fEmpty->GetNbinsY(); iy++) { 
       Double_t empty    = fEmpty->GetBinContent(ix, iy);
@@ -419,9 +426,7 @@ AliPoissonCalculator::Result(Bool_t correct)
       fCorr->Fill(mean, corr);
     }
   }
-  return fBasic;
 }
-  
 //____________________________________________________________________
 void
 AliPoissonCalculator::Print(const Option_t*) const