• Help
    Discussion forum
    Search tips
  • About
    CERN Open Data
    ALICE
    ATLAS
    CMS
    DELPHI
    JADE
    LHCb
    OPERA
    TOTEM
    Glossary

Important notice: opendata-qa.cern.ch is a quality-assurance server. Please use it for testing purposes only. The content may be erased from time to time. Please use opendata.cern.ch for production.

Analysis examples using CMS 2010, 2011, or 2012 derived data in the NanoAODRun1 format

CMS Open data group

Software Analysis CMS CERN-LHC


Description

This repository contains example analysis scripts using NanoAODRun1 derived data from 2010, 2011, or 2012 CMS Open Data. These are pedagogical examples that show users how to analyze NanoAOD-format ROOT files using event loops in C++ as well as ROOT's RDataFrame package in C++ and Python. The examples all reproduce a public dimuon mass spectrum histogram from data, highlighting the mass peaks of various particles. The scripts provide real-life examples of creating complex histograms with publication-style labels in ROOT.


For use with nanoaod-run1 data and simulation samples on this portal.

Use with

These examples can be run with the datasets in the nanoaod-run1 or nanoaodsim-run1 formats

Characteristics

1 files. 104.3 KiB in total.

System details

ROOT 6.30 or later

How can you use this?

The analysis can be run with a plain ROOT installation. Go to root.cern for instructions how to install the software, or use the ROOT docker container documented on the CMS docker guide.

To download the files, you can either use directly the web browser or the following command.

$ git clone https://github.com/cms-opendata-analyses/NanoAODRun1Examples

To run an example, enter one of the dimuon_20XX directories and execute the ROOT macro inside with a command such as:

$ root -l Dimuon2011_eospublic.C

Step-by-step commands and output examples are provided on the Github repository. The final plots of the analysis are also included in the source code repository.

Source code repository

https://github.com/cms-opendata-analyses/NanoAODRun1Examples

      

Disclaimer

These open data are released under the GNU General Public License v3.0.

Logo GPL-3.0-only

Neither the experiment(s) ( CMS ) nor CERN endorse any works, scientific or otherwise, produced using these data.

ALICE experiment
ATLAS experiment
CMS experiment
DELPHI experiment
JADE experiment
LHCb experiment
OPERA experiment
PHENIX experiment
TOTEM experiment
© CERN, 2014–2025 ·
Terms of Use ·
Privacy Policy ·
Help ·
GitHub ·
Twitter ·
Email
Powered by Invenio
Open Data Portal v0.3.0
CERN