Skip to main content

A python-based command line tool to peruse ROOT files.

Project description


Github Build Status PyPI License: MIT Last Commit

A python-based command line tool to peruse ROOT ( files.


pip install peroose


To inspect a ROOT file:

python -m peroose path/to/root/files/*.root

This will load the TTree (if the file contains one) and start an IPython REPL. The following variables will be defined:

  • filelist : List[str] list of files found.
  • tree : Optional[TTree] the ROOT TTree found.
  • tfile : Optional[TFile] the first ROOT TFile found.

Usage examples:

print(filelist) # see the files that were found.
tree.Draw("branch_name") # make a plot! # use the TFile
br = TBrowser() # inspect files in the TBrowser

For convenience, the following are imported into the REPL local scope:

import numpy as np
import matplotlib.pyplot as plt
import ROOT.TFile as TFile # only if pyROOT is installed
import ROOT.TBrowser as TBrowser # only if pyROOT is installed

For more options see:

python -m peroose --help

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 peroose, version 0.4.1
Filename, size File type Python version Upload date Hashes
Filename, size peroose-0.4.1-py3-none-any.whl (5.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size peroose-0.4.1.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page