From 21d194c32ceb1620c34f7439389e2460687d82ef Mon Sep 17 00:00:00 2001 From: Pierre Gueth Date: Thu, 7 Feb 2013 15:01:20 +0100 Subject: [PATCH] switched to gjm merger for pet --- tests_dav/GateMergeManager.cc | 3 +-- tests_dav/GateMergeManager.hh | 25 ++++++------------------- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/tests_dav/GateMergeManager.cc b/tests_dav/GateMergeManager.cc index 0de9794..dc190fc 100644 --- a/tests_dav/GateMergeManager.cc +++ b/tests_dav/GateMergeManager.cc @@ -123,9 +123,8 @@ void GateMergeManager::FastMergeRoot() exit(0); } //we try to recover the last_event_ID in all root files - filearr=new TFile*[nfiles]; for(int i=0;i::const_iterator iter=filearr.begin(); iter!=filearr.end(); iter++) + { + (*iter)->Close(); + delete *iter; + } } @@ -74,10 +62,9 @@ private: bool FastMergeCoin(string name); bool m_forced; // if to overwrite existing files int m_verboseLevel; - TFile** filearr; + std::vector filearr; Long64_t m_maxRoot; // maximum size of root output file int m_CompLevel; // compression level for root output - string m_dir; // .Gate directory path string m_outDir; // where to save the output files int m_Nfiles; // number of files to mergw vector m_lastEvents; // latestevent from al files -- 2.47.1