Coder Social home page Coder Social logo

ttbb-analysis's Introduction

ttbb analysis repository instructions

The python scripts for this repository use the ntuples created by the code in the repo:

https://gitlab.cern.ch/jpata/tthbb13/tree/FH_systematics

The code is the based on the analysis of the ttbb croiss section meaurement on the all hadronic channel described on the AN:

Skimming even more

After the creation of the ntuples, we can create skims to further reduce the size, while also adding new useful variables (like our BDTs). This can be done py running the python script Skim_NoBtagSys.py and changing Skim_cfg.py for input paths, samples and outputs.

In case the BDT variables are already in your ntuples (plus the systematic variations) you can also run the fast version of the code Skim_NoBtagSys_Fast.py .

Plotting

To get a fast check that all the samples are there and to produce control plots after the cuts on the chi2 probability, you can use the Plotting.py script running on the reduced ntuples you created in the previous section. In case you are interested in control plots using the ntuples created directly from the framework, you can use the plotting codes of the framewrok, under the folder Plots/Daniel.

Other plotting tools are available too, like:

Plot_variations.py : Plot in the same canvas a distribution of a given variable and its variations under systematic uncertainties. Uses the root file produces by the Plot_Sys2.py

Plot_correlation.py : Plot a 2D histogram of given variables and calculate the linear correlation factor between each.

Plot_Eff.py : Used to plot the efficiency of the Permutation BDT.

Plot_postfit.py : Plot the prefit and postfit distributions. Requires the root file output from the Combine Harvester.

Plot_regions.py : Plot the normalized distribution of given variables in different regions of the phase space but for the same sample.

Plot_ROC.py : Plot the ROC curve for QCD rejection for different variables in the same canvas.

Plot_same.py : Used to plot a normalized distribution for different samples in the same canvas.

Systematic uncertainties

The variated distributions should already exist in the ntuples for the JECs. The same should apply for the weights and its variations.

To create a root file that stores the systematic variations while also creating the templates with the data driven QCD method you can use the Plot_Sys2.py script. This script loads the configurations from the sys.cfg, in which you can change cuts, samples and which systematic variations to use. As the name of the script suggests, you can also produce plots. To test if the data driven QCD estimation method works you have the option to plot the distributions on the VR and SR.

ttbb-analysis's People

Contributors

viniciusmikuni avatar

Watchers

James Cloos avatar Sébastien Wertz 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.