Prerequisites
To follow this lesson you need to start the python tools Docker container from the pre-exercises:
If you have already successfully installed and run the Docker example with python tools, then you need only execute the following command.
docker start -i my_python #give the name of your container
If this doesn’t work, return to the python tools Docker container lesson to work through how to start the container.
Additional prerequisites - extra libraries
In order to use the
coffea
framework for our analysis, we need to install these additional packages directly in our container. We are addingcabinetry
as well because we will use it later in our last episode. This can take a few minutes to install.Once you have launched the Docker container, type the following commands in that environment (terminal).
pip install vector hist mplhep coffea cabinetry
Also, download this file, which is our starting schema. Directly in your
/code
area (or locally in yourcms_open_data_python
directory) you can simply do:wget https://raw.githubusercontent.com/cms-opendata-workshop/workshop2022-lesson-ttbarljetsanalysis-payload/master/trunk/agc_schema.py