Git Product home page Git Product logo

kanhaiya-gupta / dimuonspectrumnanoaodoutreachanalysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cms-opendata-analyses/dimuonspectrumnanoaodoutreachanalysis

0.0 0.0 0.0 81 KB

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

Home Page: http://opendata.web.cern.ch/record/12342

License: GNU General Public License v3.0

C 21.54% Python 18.41% Jupyter Notebook 60.05%

dimuonspectrumnanoaodoutreachanalysis's Introduction

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 v1.3

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

dimuonspectrumnanoaodoutreachanalysis's People

Contributors

katilp avatar stwunsch avatar tiborsimko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.