GithubHelp home page GithubHelp logo

kreczko / root-dataframe-nanoaod Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stwunsch/root-dataframe-nanoaod

0.0 2.0 0.0 320 KB

Example of processing NanoAOD files with RDataFrame

Home Page: https://root.cern.ch

Python 17.43% Shell 1.28% C++ 78.85% C 2.44%

root-dataframe-nanoaod's Introduction

Example of processing NanoAOD files with RDataFrame

This project takes AOD files from CMS OpenData and rewrites these in a structure similar to the NanoAOD format (see here for documentation). The processed data is published on the CERN OpenData platform and contains data events taken with the CMS detector at the LHC during 2011. The output of the full toolchain described below results in the following plot of the Di-Muon spectrum.

Di-Muon spectrum

Compare with the published CMS plot produced in 2011 (Link):

Published Di-Muon spectrum

Setup CMSSW

source /cvmfs/cms.cern.ch/cmsset_default.sh
cmsrel CMSSW_5_3_32

Build module

cd CMSSW_5_3_32/src
cmsenv
mkdir workspace
cd workspace
git clone <THIS REPOSITORY> aod2nanoaod
cd aod2nanoaod
scram b -j8

Execute CMSSW config running conversion

cmsRun aod2nanoaod_cfg.py 2> log.txt

Postprocess ROOT file

cd scripts/
root -l -q postprocess_nanoaod.C

Build and run program analyzing the data with RDataFrame

# NOTE: Source recent ROOT version with RDataFrame support
# NOTE: The commited version of the program reads the file remotely from root.cern.ch.
./build.sh
./nanoaod_dimuon_spectrum

References

Reference project for implemenation of CMSSW analyzer:

http://opendata.cern.ch/record/5001

Documentation of physics objects in 2011 data:

http://opendata.cern.ch/docs/cms-physics-objects-2011

Getting started guide for CMS 2011 Open Data:

http://opendata.cern.ch/docs/cms-getting-started-2011

List of validated runs for primary datasets of 2011 data taking:

http://opendata.web.cern.ch/record/1001

root-dataframe-nanoaod's People

Contributors

stwunsch avatar

Watchers

 avatar  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.