TTree::MakeClass

TTree::MakeClass generate a pretty code to access data in your TTree. But in python? How to access to the brach data without become crazy with SetBranchAddress and others?

You can access branches directly, and the getattr pythonization of TTree will take care of the rest. This is slower at this point, but there’s a workaround within ATLAS that I still have to port into PyROOT.

Cheers,
Wim

Does anyone have a minimal working example for this in python? I’m interested in it too.