Git Product home page Git Product logo

atlas_susy_rpvmj_mergeftdijetntuples's Introduction

Add normweight branch to dijet TTrees

The normweight branch is constructed as follow:

mcEventWeight * cross-section * efficiency * kFactor / sum of weights

The PRW weight is missing, until it is fixed in the input samples.

1. Merge all ROOT files from a given DSID and add the normweight branch

How to use it?

1. Setup

source Setup.sh

2. Use MergeTTrees.py script to merge dijet ntuples.

Syntax:

python MergeTTrees.py --inDir [INPUT_DIRECTORY] --outDir [OUTPUT_DIRECTORY]

Optional flags:

  • --debug: enables debug logging
  • --dryRun: doesn't merge anything

Please note: INPUT_DIRECTORY must contain the dataset name of the grid job (in order to extract information)

2. Take each individual ROOT file, add normweight branch and create a new '_expanded.root' file

How to use it?

1. Setup

source Setup.sh

2. Use add_normweights.py script.

Syntax:

python add_normweights.py --inDir [INPUT_DIRECTORY] --outDir [OUTPUT_DIRECTORY]

Optional flags:

  • --debug: enables debug logging
  • --dryRun: doesn't create output ROOT files

Please note: INPUT_DIRECTORY must contain the dataset name of the grid job (in order to extract information)

An example submission script to run over all slices is provided: 'run_add_normweights.py'

atlas_susy_rpvmj_mergeftdijetntuples's People

Contributors

badeaa avatar badeaa3 avatar jbossios 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.