From: Pierre Gueth Date: Fri, 1 Feb 2013 15:31:19 +0000 (+0100) Subject: fixed clitkMergeRootFiles build X-Git-Tag: v1.4.0~164^2~31 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=30d053d7332a384c7b80dc0c2e9da89ed822f503;p=clitk.git fixed clitkMergeRootFiles build --- diff --git a/tests_dav/clitkMergeRootFiles.cxx b/tests_dav/clitkMergeRootFiles.cxx index cb352be..4c86c57 100644 --- a/tests_dav/clitkMergeRootFiles.cxx +++ b/tests_dav/clitkMergeRootFiles.cxx @@ -11,10 +11,15 @@ #include "clitkMergeRootFiles_ggo.h" #include "clitkCommon.h" #include -#include "TROOT.h" -#include "TPluginManager.h" -#include "TFile.h" -#include "TFileMerger.h" +#include +#include +#include +#include +#include +#include + +using std::endl; +using std::cout; //----------------------------------------------------------------------------- int main(int argc, char * argv[]) { @@ -30,6 +35,20 @@ int main(int argc, char * argv[]) { FATAL("Error, please provide at least two inputs files"); } + // Detect Pet output + bool is_pet_output = true; + for (uint i=0; i(handle->Get("Hits")); + cout << "testing " << filename << " " << hits << endl; + handle->Close(); + delete handle; + is_pet_output &= (hits==NULL); + } + cout << "is_pet_output " << is_pet_output << endl; + // Merge TFileMerger * merger = new TFileMerger; for (uint i=0; iAddFile(args_info.input_arg[i]);