root-gen-datareader

command
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 9 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       `rootio:"Int32"`
	Int64        int64       `rootio:"Int64"`
	UInt32       int32       `rootio:"UInt32"`
	UInt64       int64       `rootio:"UInt64"`
	Float32      float32     `rootio:"Float32"`
	Float64      float64     `rootio:"Float64"`
	ArrayInt32   [10]int32   `rootio:"ArrayInt32"`
	ArrayInt64   [10]int64   `rootio:"ArrayInt64"`
	ArrayInt32   [10]int32   `rootio:"ArrayInt32"`
	ArrayInt64   [10]int64   `rootio:"ArrayInt64"`
	ArrayFloat32 [10]float32 `rootio:"ArrayFloat32"`
	ArrayFloat64 [10]float64 `rootio:"ArrayFloat64"`
	N            int32       `rootio:"N"`
	SliceInt32   []int32     `rootio:"SliceInt32"`
	SliceInt64   []int64     `rootio:"SliceInt64"`
	SliceInt32   []int32     `rootio:"SliceInt32"`
	SliceInt64   []int64     `rootio:"SliceInt64"`
	SliceFloat32 []float32   `rootio:"SliceFloat32"`
	SliceFloat64 []float64   `rootio:"SliceFloat64"`
}

Jump to

Keyboard shortcuts

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