[quote]What I want to do, is to merge two files which have the same TTree names and events but different Branches in each TTree[/quote]What is the expected result? Should the resulting tree have the same number of entries as both TTree (and what happens if they do not have the same number of entries) or should it be the sum?
I.e. What is the semantic of ‘merge’ here?
The usual semantic is to serialize the input TTrees into a single TTree. If one of the TTree does not have the same branches as the others then the question is what values should the missing entries have for the missing branches?