I am interested in quickly accessing all the entries for a few variables in a tree.
Let’s say I have a TFile file called f, a TTree called tree, and an interesting variable called v. Here is how I currently know how to fill a list with the value of v for all entries:
v_vals= for e in range(f.tree.GetEntries()): f.tree.GetEntry(e) v_vals.append( f.tree.v )
Is there a quicker way to fill this list?
Thanks for your help,