Skip to content
Snippets Groups Projects
Commit 2cc27528 authored by Philippe Canal's avatar Philippe Canal
Browse files

Output number of files merger in hadd -v1:

$ hadd -v 1 -f output.root input1.root input2.root 
Target file: output.root
Merged 2 input files.


git-svn-id: http://root.cern.ch/svn/root/trunk@41442 27541ba8-7e3a-0410-8455-c3a389f83636
parent bdeda2f3
No related branches found
No related tags found
No related merge requests found
......@@ -193,6 +193,7 @@ int main( int argc, char **argv )
exit(1);
}
for ( int i = ffirst; i < argc; i++ ) {
if (argv[i] && argv[i][0]=='@') {
std::ifstream indirect_file(argv[i]+1);
......@@ -229,8 +230,14 @@ int main( int argc, char **argv )
Bool_t status = merger.Merge();
if (status) {
if (verbosity == 1) {
cout << "Merged " << merger.GetMergeList()->GetEntries() << " input files.\n";
}
return 0;
} else {
if (verbosity == 1) {
cout << "Failure during the merge of " << merger.GetMergeList()->GetEntries() << " input files\n";
}
return 1;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment