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

Command root-gen-datareader

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 {
	Int32        int32       `groot:"Int32"`
	Int64        int64       `groot:"Int64"`
	UInt32       int32       `groot:"UInt32"`
	UInt64       int64       `groot:"UInt64"`
	Float32      float32     `groot:"Float32"`
	Float64      float64     `groot:"Float64"`
	ArrayInt32   [10]int32   `groot:"ArrayInt32"`
	ArrayInt64   [10]int64   `groot:"ArrayInt64"`
	ArrayInt32   [10]int32   `groot:"ArrayInt32"`
	ArrayInt64   [10]int64   `groot:"ArrayInt64"`
	ArrayFloat32 [10]float32 `groot:"ArrayFloat32"`
	ArrayFloat64 [10]float64 `groot:"ArrayFloat64"`
	N            int32       `groot:"N"`
	SliceInt32   []int32     `groot:"SliceInt32"`
	SliceInt64   []int64     `groot:"SliceInt64"`
	SliceInt32   []int32     `groot:"SliceInt32"`
	SliceInt64   []int64     `groot:"SliceInt64"`
	SliceFloat32 []float32   `groot:"SliceFloat32"`
	SliceFloat64 []float64   `groot:"SliceFloat64"`
}

Package Files

main.go

Package main imports 10 packages (graph). Updated 2019-02-21. Refresh now. Tools for package owners.