Just prints 60,000 which is the total number of events from the dataset.
Is there any command line function to get the right entries value, or is my best bet to write a script to draw this histogram from the tree and then get the entries?
There is potential in using RDF, since it is powerful and can be used to do much more than counting events (see e.g. ROOT: ROOT::RDataFrame Class Reference)
@Danilo the RDataFrame command printed 60,000 so it seems it’s getting total events too. However, I can see from the page that there are a lof of things I will use it for in future so thank you for the suggestion!
Matt, sorry for the misunderstanding. I did not understand you wanted to count collection elements “inside” the events.
Just for completeness, here is what I should have suggested in the first place: