dear experts,
i’m trying to access a vector in a tree, say JetsPt, which contains various numbers of jets depending on the event and the Pt for each of them.
Directly from the command line in root, I can access say JetsPt[0] and plot it fine with
tree->Draw(“JetsPt[0]”)
I can also, from the command line, do tree->Draw("@JetsPt.size()") and this returns the number of jets in each event.
Trying to do this in pyroot though does not seem to work. I can draw JetsPt[0] but not the size… Is there a way to do this properly?
Thanks in advance!
Mike