Coder Social home page Coder Social logo

singlelepanalyzer's Introduction

singleLepAnalyzer

Analyzer for plotting the output of "StepX" ROOT files, slimmed versions of "LJMet" ROOT files.


makeTemplates: plot kinematic distributions and templates for limits

-- Categories: anything you define! see isEMlist, catList, tagList objects. Typically E/M/L for basic kinematics, more specific categories for limit templates.

-- Regions: define "PS", "CR", "SR" cuts, or make new regions. Passed to analyze.py to control cuts

-- One job per category, giving one distribution

PREP:

1. Edit weights.py and samples.py to define files/counts/xsecs

2. Edit analyze.py to control TTree->Draw cuts/weights/hists. Teach it how to interpret your regions and categories.

3. Edit doHists.py to control histogram names/bins/labels, samples to run, and files to read in

4. Edit doCondorTemplates.py to control output directory, categories, and cuts. 

RUN:

1. python -u doHists.py --> this is a test, does it crash?

2. python -u doCondorTemplates.py

PLOT:

1. Edit doTemplates.py to control samples and uncertainties. This script converts pickle files to ROOT files and write a latex-formatted yield table. You can choose to do a branching ratio scan here.

2. Edit modifyBinning.py to control binning and add certain uncertainties. Edit runRebinning.sh to rebin multiple plots

3. python -u doTemplates.py

4. sh runRebinning.sh

5. Edit plotTemplates.py for all plot-level controls, including systematic uncertainties. Edit runPlotting.sh for multiple plots.

6. sh runPlotting.sh

Uncertainties: various special scripts to treat them

-- makeTemplates/getCRUncerts.py: Given 3 yield files (templates, ttbar CR, wjets CR), this script returns flat uncertainties based on control regions corresponding to signal region categories.

-- plotShapeShifts: creates plots of each individual shape uncertainty for cross checks

makeLimits: set limits

Prep:

1. Set up theta_config_template(_*).py of your choice with your uncertainties

2. Set up doThetaLimits.py with directories and an types of histograms to remove from the file

RUN:

1. python -u doThetaLimits.py

PLOT:

1. python -u PlotLimits.py

singlelepanalyzer's People

Contributors

brennanluetke avatar escharnick avatar jmhogan avatar sinansagir avatar

Stargazers

 avatar

Watchers

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