A python-based command line tool to peruse ROOT files.
A python-based command line tool to peruse ROOT (https://root.cern.ch/) 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.
print(filelist) # see the files that were found. tree.Draw("branch_name") # make a plot! tfile.ls() # 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
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|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|