fixing warnings
[u/mrichter/AliRoot.git] / PWG0 / AliCorrectionMatrix2D.cxx
index e208f4357b663a1e9528516b03c78e7e69cc94e9..4d9a0dcc24bf208422979a1269b3dd8353f24ec4 100644 (file)
@@ -245,3 +245,13 @@ void AliCorrectionMatrix2D::RemoveEdges(Float_t cut, Int_t nBinsXedge, Int_t nBi
 
 }
 
+//____________________________________________________________________
+void AliCorrectionMatrix2D::Rebin(Int_t x, Int_t y)
+{
+       // rebins the histograms, recalculates the correction
+
+        GetGeneratedHistogram()->Rebin2D(x, y);
+        GetMeasuredHistogram()->Rebin2D(x, y);
+        GetCorrectionHistogram()->Rebin2D(x, y);
+        Divide();
+}