You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Option parsing in hadd demands a space between -n and the value. The value is passed on to TFileMerger::SetMaxOpenedFiles() which in turn sets it to a minimum value of fMaxOpenedFiles = 2.
From my tests, it appears that TFileMerger merges the first fMaxOpenedFiles - 1 input files, which is probably not the desired behavior.
I'm reassigning to Philippe. I think it boils down to this: when processing the excess files, TFileMerger switches to the incremental mode. In this mode, TFileMerger::MergeOne sets canBeFound = true, which in turn at the end of MergeOne skips the if block commented with // Don't write the partial result for TTree and TH1. Perhaps canBeFound should not be true for a histogram that is not (yet) found in the target file?
I haven't had a chance to look into the hadd code (TFileMerger) but in 6.24/04 I the following problem. Create two files like this:
now if we hadd these as normal (
hadd merge.root f1.root f2.root
) we get both histograms:but do this with the
-n 1
option I only get h1:The text was updated successfully, but these errors were encountered: