Making Plots

Contents

Making Plots#

Overview

Teaching: 5 min | Exercises: 10 min

Questions

  • How do we make plots?

Objectives

  • Use everything you learned to make plots!

On Your Own#

So in order to make plots, we just need to take the skimmed file skim_ggH.root and pass it through the histograms.py code that exists. This can be run with the following code

python3 histograms.py skim_ggH.root ggH hist_ggH.root

This needs to be added to your .github/workflows/main.yml.

Adding Artifacts

So we need to do two things:

  1. add a plot job

  2. save the output hist_ggH.root as an artifact

You know what? While you’re at it, why not drop the version matrix from build_skim as well? We only need the pinned ROOT version from here on 🙂.

Once we’re done, we should probably start thinking about how to test some of these outputs we’ve made. We now have a skimmed ggH ROOT file and a file of histograms of the skimmed ggH.

Are we testing anything?

Continuous Integration is actually testing that the scripts we have still run. So we are constantly testing as we go here which is nice.

Additionally, there’s also continuous deployment because we’ve been making artifacts that are passed to other jobs.

Key Points

  • Another action, another job, another artifact.