Hello,
I have multiple root files each containing the same number of entries. I want to read trees and branches from these files. I think there is something as TChain. Can someone help me with this?
Thanks!
Hello,
I have multiple root files each containing the same number of entries. I want to read trees and branches from these files. I think there is something as TChain. Can someone help me with this?
Thanks!
Hi @tanmaya_shree,
Yes, vertical combinations, i.e. reading entries from multiple TTree
s is supported via the TChain
class. For more information, refer to this section of the manual.
Cheers,
J.
If I add the root files one by one, its working fine. But I want to add large number of files using a for loop. I have tried something like this, but it is not working.
Thanks!
ch1->Add(TString::Format("blahblah_%d.root", i));
Thanks !
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.