Added Reset function
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Oct 2006 15:27:34 +0000 (15:27 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Oct 2006 15:27:34 +0000 (15:27 +0000)
PWG0/AliCorrectionMatrix.cxx
PWG0/AliCorrectionMatrix.h

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);
+}
index 4f2783ca9f0c1ec1d92d4fd7a36ac8723de7420b..d4c490a018bb91e9f57f5a505b56b20148cb6531 100644 (file)
@@ -48,6 +48,8 @@ public:
 
   virtual void ReduceInformation();
 
+  virtual void Reset(Option_t* option = "");
+
 protected:
   TH1*    fhMeas;  // histogram of measured particles (or tracks)
   TH1*    fhGene;  // histogram of generated particles