Skip to content

Analysis using reduced NanoAOD files created from CMS open data producing a high statistics di-muon spectrum

License

Notifications You must be signed in to change notification settings

cms-opendata-analyses/DimuonSpectrumNanoAODOutreachAnalysis

Repository files navigation

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. You can get the software easily using the CMS Open Data VM and CVMFS. Note that version 6.28.00 is used in the environment.yml and reana.yaml files but it may be different when set up through 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 https://github.com/cms-opendata-analyses/DimuonSpectrumNanoAODOutreachAnalysis.git -b v1.5
cd DimuonSpectrumNanoAODOutreachAnalysis

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. You can ignore the two error messages.

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

About

Analysis using reduced NanoAOD files created from CMS open data producing a high statistics di-muon spectrum

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •