Giter Club home page Giter Club logo

dumbledraw's Introduction

Dumbledraw plotting tool

The Dumbledraw module receives, processes and plots ROOT histograms (TH1F) according to the common style in the Higgs to tau tau analyses.

Introduction

A basic introduction is given here. A detailed example showing most of the functionalities is given in example_script.py.

Every plot is created as an instance of the class plot containing one or more instances of the class subplot:

plot = dumbledraw.Plot([[0.5, 0.48]], <style args>)

This creates two subplots with a gap between 48% and 50% of the plotting area. The subplots are defined via a list of split points (top down), which can be doublets in case of gaps.

Histograms can be registered in a (sub)plot under a given nickname and modified e.g. normalized to other histograms before plotting:

plot.subplot(0).add_hist(histogram1, "signal")
plot.subplot(0).add_hist(histogram2, "background")
plot.subplot(0).normalize("signal", "background")

Many methods of subplot are also implemented for plot calling the same method for all subplots, e.g.:

plot.add_hist(histogram1, "signal")

Apply individual graph styles optionally making use of the Dumbledraw.styles module and finally plot and save selected histograms:

plot.subplot(0).setGraphStyle("signal", "hist", linecolor=styles.color_dict["ggH"], linewidth=3)
plot.subplot(0).Draw(["signal"])
plot.save("plot.pdf")

Dumbledraw/rootfile_parser.py

The rootfile_parser module is an independent module that can be used to easily extract the histograms from the CombineHarvester ROOT files.

dumbledraw's People

Contributors

a-monsch avatar arturakh avatar harrypuuter avatar mburkart avatar ralfschmieder avatar stwunsch avatar

Watchers

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