is it possible to generate a list of all the variable (with their types) of e.g. TTree of a ROOT file to some stdout? I would need to get a list of the variables and automatically edit/copy them to some other header file.
I know about the tree->MakeClass(“mytreeclass”) function but what I would need is just to get a list of the variables with their types. Is there a (maybe PyROOT) function already doing this or I would need to write some sed/awk script that takes the info out of e.g. a MakeClass() generated header file?
The result of MakeClass does not represent an exact copy of your original class design. Instead this is a variation thereof, tuned to allow reading of each of the leaf independently. In the case you mention this means that rather than having an embedded object, the access to your vector is done indirectly (via the pointer).