Code Monkey home page Code Monkey logo

delphesntuplizer's Introduction

DelphesNtuplizer

This package allows you to produce to flat Ntuples from Delphes PhaseII samples.

Table of contents

Clone

If you do not attempt to contribute to this repository, simply clone it:

git clone [email protected]:recotoolsbenchmarks/DelphesNtuplizer.git

If you aim at contributing to the repository, you need to fork this repository (via the fork button) and then clone the forked repository:

git clone [email protected]:YOURGITUSERNAME/DelphesNtuplizer.git
cd DelphesNtuplizer
git remote add upstream [email protected]:recotoolsbenchmarks/DelphesNtuplizer.git

You can then regularly update your fork via:

git fetch upstream && git merge upstream/master

If you want to submit a new feature to recotoolsbenchmarks/DelphesNtuplizer you have to do it via pull-request (PR): So, first commit and push your changes to YOURGITUSERNAME/DelphesNtuplizer and then make a PR via the github interface.

Initialisation

This package requires Delphes to be installed, and CMSSW for gcc, ROOT, FWLite and other dependencies:

cd DelphesNtuplizer
cmsrel CMSSW_10_0_5
cd CMSSW_10_0_5
cmsenv
cd ..
git clone https://github.com/delphes/delphes.git
cd delphes
./configure
sed -i -e 's/c++0x/c++1y/g' Makefile
make -j 10
cp libDelphes.so ..

Make a dummy test to check Delphes runs properly on GEN-SIM samples (once few events have been processed you can stop processing with CTRL+C):

./DelphesCMSFWLite cards/gen_card.tcl test_gensim.root /eos/cms/store/relval/CMSSW_10_3_0/RelValZMM_13/GEN-SIM-RECO/PU25ns_103X_upgrade2018_realistic_v7-v1/10000/50FEF759-6699-7344-82CE-894E8A724442.root

Produce validation Delphes samples

For producing new validation samples you need to set-up the proper environment

cd CMSSW_10_0_5
cmsenv
cd ../delphes

The Delphes card stored in this repository is configured so that all needed information for validation is available in the Delphes output (gen particles, PF candidates etc ...) As a result, the output size increases substantially compared to normal Delphes samples.

To produce Delphes validation samples run this command (by changing the appropiate input GEN-SIM file of interest):

./DelphesCMSFWLite ../cards/CMS_PhaseII_200PU_v04VAL.tcl delphes.root /eos/cms/store/relval/CMSSW_10_3_0/RelValZMM_13/GEN-SIM-RECO/PU25ns_103X_upgrade2018_realistic_v7-v1/10000/50FEF759-6699-7344-82CE-894E8A724442.root

Produce Delphes flat trees

Set up the proper environment:

cd CMSSW_10_0_5
cmsenv
cd ..

The following command will produce a flat Ntuple, with 10 events.

python bin/Ntuplizer.py -i delphes/delphes.root -o flat_tree.root -n 10

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.