Skip to main content
https://img.shields.io/pypi/v/qhist.svg https://gitlab.com/ckhurewa/qhist/badges/master/pipeline.svg https://gitlab.com/ckhurewa/qhist/badges/master/coverage.svg https://img.shields.io/badge/License-GPL%20v3-blue.svg Documentation Status https://img.shields.io/pypi/pyversions/qhist.svg

QHist – A Quick Histogram drawer for ROOT::TTree for smoother HEP analysis!

Examples:

  • Simple draw from tree and parameter (branch name):

    h1 = QHist()
    h1.trees = t1
    h1.params = 'M'
    h1.draw()
    https://gitlab.com/ckhurewa/qhist/raw/master/docs/figs/1.png
  • Overlaid comparison between branches, compact syntax:

    QHist(trees=t1, params=['mu_PT/1e3','pi_PT/1e3'], xlabel='PT [GeV]', xmax=60).draw()
    https://gitlab.com/ckhurewa/qhist/raw/master/docs/figs/2.png
  • Compare between trees, with filtering, and reusable via templating:

    H = QHist(trees=[t1, t2, t3], filters=['mu_PT>20e3'])
    H(params='APT'  , xmin=0  , xlabel='PT-asymmetry').draw()
    H(params='M/1e3', xmax=120, xlabel='Mass [GeV]').draw()
    https://gitlab.com/ckhurewa/qhist/raw/master/docs/figs/3a.png https://gitlab.com/ckhurewa/qhist/raw/master/docs/figs/3b.png

Read more on https://qhist.readthedocs.io

Installation & dependencies

It’s available from pip install qhist. The package requires an existing installation of PyROOT.

Disclaimer

This packacge was written and used during my PhD in 2013-2017 at EPFL (Lausanne) and LHCb collaboration (CERN), for the work in Z->tau tau cross-section measurement and H->mu tau searches at LHCb (8TeV). I hope it can be of a good use for future analysis…

Release files for qhist 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qhist 0.1.2
File Size Uploaded
qhist-0.1.2.tar.gz 1.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for qhist 0.1.2
File Interpreter ABI Platform
qhist-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 1.6 MB

Release files / qhist-0.1.2.tar.gz

Download URL qhist-0.1.2.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
79d5aec3e7a1fad76ddd5e7395978c365a0ed66dc33cfa5a3dfa96b3ce5daa12
BLAKE2b-256 checksum
How to use checksums
84c78c6e08c7387a983cd696a916ec6969cded5a5818d54ec3f57ee8fa08257e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0

Release files / qhist-0.1.2-py2.py3-none-any.whl

Download URL qhist-0.1.2-py2.py3-none-any.whl
Size 67.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8aed18bcb6272825c28c8b27cc62d045aedc58ea2c0617516d707a9646225153
BLAKE2b-256 checksum
How to use checksums
0c2964947526ab67b1300587ac81b5e7fb7042e65325f7209da0c39e3f46db1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page