hepgo-hep.org/x/hep/groot/cmd/root-gen-datareader

root-gen-datareader command

Command root-gen-datareader generates a Go struct to easily read the event data type stored inside a Tree.

Example:

$> root-gen-datareader -t tree testdata/small-flat-tree.root
// automatically generated by root-gen-datareader.
// DO NOT EDIT.

package event

type Data struct {
	ROOT_Int32        int32       `groot:"Int32"`
	ROOT_Int64        int64       `groot:"Int64"`
	ROOT_UInt32       int32       `groot:"UInt32"`
	ROOT_UInt64       int64       `groot:"UInt64"`
	ROOT_Float32      float32     `groot:"Float32"`
	ROOT_Float64      float64     `groot:"Float64"`
	ROOT_ArrayInt32   [10]int32   `groot:"ArrayInt32[10]"`
	ROOT_ArrayInt64   [10]int64   `groot:"ArrayInt64[10]"`
	ROOT_ArrayInt32   [10]int32   `groot:"ArrayInt32[10]"`
	ROOT_ArrayInt64   [10]int64   `groot:"ArrayInt64[10]"`
	ROOT_ArrayFloat32 [10]float32 `groot:"ArrayFloat32[10]"`
	ROOT_ArrayFloat64 [10]float64 `groot:"ArrayFloat64[10]"`
	ROOT_N            int32       `groot:"N"`
	ROOT_SliceInt32   []int32     `groot:"SliceInt32[N]"`
	ROOT_SliceInt64   []int64     `groot:"SliceInt64[N]"`
	ROOT_SliceInt32   []int32     `groot:"SliceInt32[N]"`
	ROOT_SliceInt64   []int64     `groot:"SliceInt64[N]"`
	ROOT_SliceFloat32 []float32   `groot:"SliceFloat32[N]"`
	ROOT_SliceFloat64 []float64   `groot:"SliceFloat64[N]"`
}
Version
v0.36.0 (latest)
Published
Nov 15, 2024
Platform
linux/amd64
Imports
13 packages
Last checked
1 day ago

Tools for package owners.