2 =================================================
3 * @file clitkMergeRootFiles.cxx
4 * @author David Sarrut <david.sarrut@creatis.insa-lyon.fr>
9 =================================================*/
11 #include "clitkMergeRootFiles_ggo.h"
12 #include "clitkCommon.h"
16 #include "TFileMerger.h"
18 //-----------------------------------------------------------------------------
19 int main(int argc, char * argv[]) {
22 GGO(clitkMergeRootFiles, args_info);
25 if (args_info.input_given < 2) {
26 FATAL("Error, please provide at least two inputs files");
30 TFileMerger * merger = new TFileMerger;
31 for (uint i=0; i<args_info.input_given; i++) merger->AddFile(args_info.input_arg[i]);
32 merger->OutputFile(args_info.output_arg);
35 // this is the end my friend
38 //-----------------------------------------------------------------------------