The Python Path
Congratulations on choosing to work with Python. It’s obviously better than the The C++ 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.
- A brief review (5 minutes)
- Python Walkthrough: Simple analysis using the Draw command (10 minutes)
- Python Walkthrough: Simple analysis using the Draw command, part 2 (10 minutes)
- Walkthrough: Using Python to analyze a Tree (10 minutes)
- Walkthrough: Using the Python Analyze script (10 minutes)
- Python Exercise 2: Adding error bars to a histogram (5 minutes)
- Python Exercise 3: Two histograms in the same loop (15 minutes)
- Python Exercise 4: Displaying fit parameters (10 minutes)
- Python Exercise 5: Scatterplot (10 minutes)
- Python Walkthrough: Calculating our own variables (10 minutes)
- Python Exercise 6: Plotting a derived variable (10 minutes)
- Python Exercise 7: Trig functions (15 minutes)
- Python Walkthrough: Applying a cut (10 minutes)
- Python Exercise 8: Picking a physics cut (15 minutes)
- Python Exercise 9: A bit more physics (15 minutes)
- Python Exercise 10: Writing histograms to a file (10 minutes)
- Python Exercise 11: Stand-alone program (optional) (30 minutes)
Footnotes