A beginner with a specific task - where should I start?


I have quite a big root file (1.5GB) with many events and as a first task I was asked to filter the events so they all will be within a specific energy range. My question is where should I read in order to know how to do it?
I’ve found a few guides and tutorials, and if I had the time, I would start at the beginning. Unfortunately, I don’t so I ask for a more specific reading material.

Thanks in advance!

I assume you have a tree?

https://root.cern.ch/trees-five-steps (Intro)
https://root.cern.ch/root/htmldoc/guides/users-guide/ROOTUsersGuide.html#trees (More detailed User information.)
https://root.cern.ch/doc/master/copytree3_8C.html (an example that may be close to what you want to do.)
https://root.cern.ch/doc/master/classTTree.html (detailed programmer’s reference)

TDataFrame: (An alternative approach being developed.)

Thank you very much for the informative and fast reply.
I guess I will start at the first link but will read the “ROOT primer” before going on to the next links.

Will learning C++ help significantly?

This will probably be necessary (there are python bindings as well). Don’t expect this to be an overnight venture.

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