root-gen-datareader

command
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL