if you’re trying to inspect your tree i prefer to use scan.
tree.Scan("myenergy","","colsize=20")
this will print all the myenergy elements. then you do something similar if you’re trying to draw it with the Draw() function. The syntax will be using -> pointers instead of . operators, since I’m using python (and your using C++).
What im trying to do is to read certain values from a tree , from certain events. I know that i can read values and print them in screen with Scan , but my idea is to save these values into an array, for example.