Nevis Labs ROOT tutorial Logo
28-May-2023

Contents

  • Introduction
  • Getting Started
  • The Basics
  • The Notebook Server
  • Decisions
  • The C++ Path
    • Differences between C++ and Python
    • Walkthrough: A simple analysis using the Draw command
    • Pointers: A too-short explanation (for those who don’t know C++ or C)
    • Walkthrough: A simple analysis using the Draw command, part 2
    • Walkthrough: Using C++ to analyze a Tree
    • Walkthrough: Running the Analyze macro
    • Walkthrough: Making a histogram with Analyze
    • Exercise 2: Add error bars to a histogram
    • Exercise 3: Drawing two histograms in the same loop
    • Exercise 4: Display fit parameters
    • Exercise 5: Scatterplots
    • Walkthrough: Calculate our own variables
    • Exercise 6: Plot a derived variable
    • Exercise 7: Trigonometric functions
    • Walkthrough: Apply a cut
    • Exercise 8: Pick a physics cut
    • Exercise 9: A little more physics
    • Exercise 10: Write histograms to a file
    • Exercise 11: A stand-alone program (optional)
  • The Python Path
  • The RDataframe Path
  • Intermediate Topics
  • Advanced Exercises
  • Expert Exercises
  • Wrap-up
  • Appendix
  • Version History
Nevis Labs ROOT tutorial
  • The C++ Path
  • View page source

The C++ Path

Congratulations on choosing to work with C++. It’s obviously better than The Python Path or The RDataframe Path. 1

There are a lot of topics listed below. Don’t let that discourage you. Many of the sections below are quite short. 2 Again, the important thing is for you to learn something from doing what exercises you can in the time we have.

  • Differences between C++ and Python
  • Walkthrough: A simple analysis using the Draw command
  • Pointers: A too-short explanation (for those who don’t know C++ or C)
  • Walkthrough: A simple analysis using the Draw command, part 2
  • Walkthrough: Using C++ to analyze a Tree
  • Walkthrough: Running the Analyze macro
  • Walkthrough: Making a histogram with Analyze
  • Exercise 2: Add error bars to a histogram
  • Exercise 3: Drawing two histograms in the same loop
  • Exercise 4: Display fit parameters
  • Exercise 5: Scatterplots
  • Walkthrough: Calculate our own variables
  • Exercise 6: Plot a derived variable
  • Exercise 7: Trigonometric functions
  • Walkthrough: Apply a cut
  • Exercise 8: Pick a physics cut
  • Exercise 9: A little more physics
  • Exercise 10: Write histograms to a file
  • Exercise 11: A stand-alone program (optional)

Footnotes

1

For one thing, the xkcd cartoons are funnier.

2

Many of the sections don’t have any footnotes or cartoons at all, just to make them shorter.

Previous Next

Built with Sphinx using a theme provided by Read the Docs.