I want to clone a TTree using PyROOT, and then to change some contents in the new TTree in the same way as this previous post: Cloning tree and changing contents in the new tree.
I tried to follow the explanation given there, but my understanding is far behind the required level so I would really appreciate if you can explain to me in simpler terms.
Looking at the C++ tutorials might help with understanding the ingredients. Does tutorials/tree/copytree3.C help?
I’ve seen that tutorial, but the “translation” C++ to Python is being hard for me, specially because I don’t know how to deal with pointers and addresses. Any thoughts?
Maybe using RDataFrame might be easier then: tutorials/dataframe/df007_snapshot.py
I will take a look, thanks!