Skip to main content

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

Project description Documentation Status

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


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

    h1 = QHist()
    h1.trees = t1
    h1.params = 'M'
  • Overlaid comparison between branches, compact syntax:

    QHist(trees=t1, params=['mu_PT/1e3','pi_PT/1e3'], xlabel='PT [GeV]', xmax=60).draw()
  • 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()


Installation & dependencies

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


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…

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for qhist, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size qhist-0.1.2-py2.py3-none-any.whl (67.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size qhist-0.1.2.tar.gz (1.5 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page