I have a root file with multiple TTree (different names )with same structure. usually I use makeclass() to handle one tree
I want to know if there is a way to do the same for multipe TTree at once
If you want to analyse all trees at one shot, you need to create a TChain and then run MakeClass on it.
If you want to analyse them one by one, you can easily reuse the current class (generated for a single tree) using its automatically generated “YourClass(TTree *tree)” constructor.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.