From 4fb1b723965460183024e8962ff966b5abec474b Mon Sep 17 00:00:00 2001
From: adrien-matta <a.matta@surrey.ac.uk>
Date: Fri, 25 Apr 2014 12:28:54 +0100
Subject: [PATCH] * Fixing minor bug  - The header of the tree was written
 multiple time in certain case  - The tree was appering twice, even everything
 was perfectly    functionnal

---
 NPLib/IORoot/RootOutput.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/NPLib/IORoot/RootOutput.cxx b/NPLib/IORoot/RootOutput.cxx
index 736de7f9a..28e3eddba 100644
--- a/NPLib/IORoot/RootOutput.cxx
+++ b/NPLib/IORoot/RootOutput.cxx
@@ -134,7 +134,7 @@ RootOutput::~RootOutput()
       cout << endl;
       cout << "Got histograms and Tree !" << endl;
       cout << "  - Number of entries in the Tree: " << pRootTree->GetEntries() << endl;
-      cout << "  - Number of bites written to file: " << pRootTree->Write() << endl;
+      cout << "  - Number of bites written to file: " << pRootTree->Write("", TObject::kOverwrite) << endl;
 
       // write TAsciiFile if used
       // EventGenerator
-- 
GitLab