Plot variable vs event number from tree

Simple question:

I’d like to plot a variable from a tree vs it’s event number. e.g. if I had a variable “energy” stored in a tree “tree” I’d write something like:


The question is what should “eventNumber” be? I’m sure there’s some sort of internal variable in the tree but can’t remember the name.

Many thanks

See “Special functions and variables” (or search for “$”) in the TTree::Draw method description.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.