Giter VIP home page Giter VIP logo

delphestools's Introduction

nurion4hep/DelphesTools

Setup Delphes to produce/preprocess input data for DL

Prerequisites

  • A Linux workstation configured with CVMFS, CMSSW

Step1: Install packages

git clone https://github.com/nurion4hep/DelphesTools
./install.sh

Step2: Run the Delphes

Example: extract prunedGenParticles+packedGenParticles from CMS MiniAOD and run the Delphes simulator.

cd Delphes
./DelphesCMSFWLite cards/delphes_card_CMS.tcl ../DELPHES.root root://cms-xrd-global.cern.ch//store/mc/RunIISummer16MiniAODv2/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/MINIAODSIM/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/80000/FED04F50-A3BE-E611-A893-0025900E3502.root
cd ..

You will have DELPHES.root

Step3: project on a MxM "image"

We use NERSC's script to convert Delphes root files to hdf5 with image projections.

  • File names should be in a form of SAMPLENAME-SUFFIX.root
  • SAMPLENAME should be in the cross section table, config/DelphesXSec
    • RPV10_1400_850
    • QCDBkg_JZ3_160_400
    • QCDBkg_JZ4_400_800
    • QCDBkg_JZ5_800_1300
    • QCDBkg_JZ6_1300_1800
    • QCDBkg_JZ7_1800_2500
    • QCDBkg_JZ8_2500_3200
    • QCDBkg_JZ9_3200_3900
    • QCDBkg_JZ10_3900_4600
    • QCDBkg_JZ11_4600_5300
    • QCDBkg_JZ12_5300_7000
  • List of files in a txt file

Example:

mv DELPHES.root RPV10_1400_850-xxxx.root
echo ../RPV10_1400_850-xxxx.root > fileList.txt ## NOTE the relative path
git clone https://github.com/eracah/atlas_dl
cd atlas_dl
./scripts/prepare_data.py --input-type delphes --output-h5 ../../data.h5 --bins 64 ../fileList.txt 

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.