Is there anywhere an example code for accessing multiple Trees from a single ROOT file? I have been looking for this for a while and I am still unable to find a minimal working example. I am sure there are many people out there with a similar situation. So how is this handled ?
Using Makeclass and Friendship is not at all straight forward it seems. I’d be happy to be proven wrong by someone.
Hi attikis,
I don’t know if we have a tutorial that shows what you are asking, but this should work – given you have a file “f.root” which contains tree “t” with branch “x” and tree “t2” with branch “y”, both of type int:
(edit: forget what I wrote before about MakeClass )
Also take a look at TTree::MakeSelector if you want your skeleton analysis generated automatically, I think MakeClass is a bit outdated.