Analysis of the di-muon spectrum using data from the CMS detector
Analysis using reduced NanoAOD files created from CMS open data producing a high statistics di-muon spectrum
How to run this?
The analysis needs solely a ROOT installation (6.16 or greater). You can get the software easily using the CMS Open Data VM and CVMFS. Just run the following command in the terminal to source an appropriate software stack:
To download the files, you can either use
git with the following command or download them directly via the web browser.
git clone git://github.com/cms-opendata-analyses/DimuonSpectrumNanoAODOutreachAnalysis -b master
The analysis code itself is provided in Python and C++. The instructions to run the scripts is shown below:
The notebook can either be run locally or via binder in the browser. To run locally, use the following command.
To run via binder, you just have to click the following link and follow the instructions.
-i flag, which keeps the Python interpreter alive after the end of the script so that the interactive plot can still be explored.
python -i dimuonSpectrum.py
root -l dimuonSpectrum.C
Note that you have to select the compiler based on your system.
g++ -O3 -o dimuonSpectrum dimuonSpectrum.C $(root-config --cflags --libs) ./dimuonSpectrum