C++ and ROOT

C++ and ROOT pre-exercise logo

These pre-exercises are designed to prepare you for using C++ and ROOT, in a very specific context: editing and running much of the pre-existing code used to access some of the older open data files. This is not a full introduction to either C++ or ROOT, however we do take time to explain some key concepts that will help you feel more comfortably working with the open data codebase.

You should definitely take time to go through either this exercise before participating in the workshop.

If you run into problems with any of these steps, please reach out to the organizers through the dedicated Mattermost channel.

Schedule

Setup Before you start the lesson
00:00 1. Introduction What is C++?
What is ROOT?
What is the point of these exercises?
00:05 2. Lightning overview of C++ How do I write and execute C++ code?
00:20 3. Using ROOT with C++ to write and read a file Why do I need to use ROOT?
How do I use ROOT with C++?
01:20 4. Using ROOT with C++ to fill a histogram Is there more than reading and writing files that can be done with ROOT?
How do I run a ROOT script?
02:20 5. Using ROOT with python Can I call ROOT from python?
02:20 Finish

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.