Browser objects and histograms from ROOT files
Source code name: "browser_rootio.py"
Programming language: Python
Topic: File IO/Root
DMelt Version 2.5. Last modified: 02/16/1975. License: Free
https://datamelt.org/code/cache/browser_rootio_5613.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


# This example shows how to browser objects from ROOT files
# You can also browser and plot histograms from ROOT files
# ROOT version 3,4,5,6 are supported

from jhplot  import *
from jhplot.io  import *

f="Example_root6.root"
Web.get("https://datamelt.org/examples/data/"+f)

import rootio
# rootio.Browser(f) # browser all objects inside ROOT file
rootio.HBrowser(f)

# build interface if needed
# rootio.Build(f)