From: Pierre Gueth Date: Thu, 7 Feb 2013 14:01:20 +0000 (+0100) Subject: switched to gjm merger for pet X-Git-Tag: v1.4.0~164^2~20 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=21d194c32ceb1620c34f7439389e2460687d82ef;p=clitk.git switched to gjm merger for pet --- 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