Added Reset function
[u/mrichter/AliRoot.git] / PWG0 / AliCorrectionMatrix.cxx
index 5137cbc91a000cad4098b7864565ae9e236163d0..5264dd3b2bbaa16b15bf552f3225e6fdb20566d8 100644 (file)
@@ -272,3 +272,18 @@ void AliCorrectionMatrix::ReduceInformation()
     fhGene = 0;
   }
 }
+
+//____________________________________________________________________
+void AliCorrectionMatrix::Reset(Option_t* option)
+{
+  // resets the histograms
+
+  if (fhGene)
+    fhGene->Reset(option);
+
+  if (fhMeas)
+    fhMeas->Reset(option);
+
+  if (fhCorr)
+    fhCorr->Reset(option);
+}