Skip to content
Analysis using reduced NanoAOD files created from CMS open data producing a high statistics di-muon spectrum
Jupyter Notebook C Python
Branch: master
Clone or download
Latest commit 36eaebc Jul 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore add notebook and binder environment Jun 13, 2019
LICENSE Initial commit May 23, 2019
README.md change to correct remote for binder Jun 13, 2019
dimuonSpectrum.C set changed eos path to file Jun 24, 2019
dimuonSpectrum.ipynb
dimuonSpectrum.png add resulting plot to repo May 23, 2019
dimuonSpectrum.py set changed eos path to file Jun 24, 2019
environment.yml add notebook and binder environment Jun 13, 2019

README.md

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:

source /cvmfs/sft.cern.ch/lcg/views/LCG_95/x86_64-slc6-gcc8-opt/setup.sh

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:

Python (notebook):

The notebook can either be run locally or via binder in the browser. To run locally, use the following command.

jupyter notebook

To run via binder, you just have to click the following link and follow the instructions.

Binder

Python (interactive):

Note the -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

C++ (interactive):

root -l dimuonSpectrum.C

C++ (compiled):

Note that you have to select the compiler based on your system.

g++ -O3 -o dimuonSpectrum dimuonSpectrum.C $(root-config --cflags --libs)
./dimuonSpectrum
You can’t perform that action at this time.