hep: go-hep.org/x/hep/groot/cmd/root-dump Files

Command root-dump

root-dump dumps the content of a ROOT file, including the content of the Trees (for all entries), if any.

Example:

$> root-dump ./testdata/small-flat-tree.root
>>> file[./testdata/small-flat-tree.root]
key[000]: tree;1 "my tree title" (TTree)
[000][Int32]: 0
[000][Int64]: 0
[000][UInt32]: 0
[000][UInt64]: 0
[000][Float32]: 0
[000][Float64]: 0
[000][Str]: evt-000
[000][ArrayInt32]: [0 0 0 0 0 0 0 0 0 0]
[000][ArrayInt64]: [0 0 0 0 0 0 0 0 0 0]
[000][ArrayInt32]: [0 0 0 0 0 0 0 0 0 0]
[000][ArrayInt64]: [0 0 0 0 0 0 0 0 0 0]
[000][ArrayFloat32]: [0 0 0 0 0 0 0 0 0 0]
[000][ArrayFloat64]: [0 0 0 0 0 0 0 0 0 0]
[000][N]: 0
[000][SliceInt32]: []
[000][SliceInt64]: []
[...]

$> root-dump -h
Usage: root-dump [options] f0.root [f1.root [...]]

ex:
 $> root-dump ./testdata/small-flat-tree.root
 $> root-dump -deep=0 ./testdata/small-flat-tree.root

options:
  -deep
    	enable deep dumping of values (including Trees' entries) (default true)
  -name string
    	regex of object names to dump

Package Files

main.go

Package main imports 18 packages (graph). Updated 2019-03-06. Refresh now. Tools for package owners.