From 30d053d7332a384c7b80dc0c2e9da89ed822f503 Mon Sep 17 00:00:00 2001 From: Pierre Gueth Date: Fri, 1 Feb 2013 16:31:19 +0100 Subject: [PATCH] fixed clitkMergeRootFiles build --- tests_dav/clitkMergeRootFiles.cxx | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) 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]); -- 2.47.1