I am trying to TChain two .root files, each one with a different TTree name and structure . Is it possible?
I first thought to use the MakeClass, with TFriend, but does not work (actually, same problem as in here root.cern.ch/phpBB2/viewtopic.php?t=8238 )
so, my only hope is to TChain them…
[code] TChain * chain = new TChain();
Thanks in advance
[quote]each one with a different TTree name and structure[/quote]A TChain assumes that each of the tree have a similar structure (but possibly different tree name). You indeed will need to use Friends (and 2 separate MakeClass)
Can you plz give a specific example?
TChain *ch1 = new TChain(“Dir1”);
TChain *ch2 = new TChain(“Dir2”);
and then what???
will create two seperate classes, but how can I have 1 class out of those two above?
Thanks for your time and help