-
Notifications
You must be signed in to change notification settings - Fork 35
/
doc.go
30 lines (29 loc) · 1021 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2017 The go-hep Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package rootio provides a pure-go read-access to ROOT files.
// rootio might, with time, provide write-access too.
//
// A typical usage is as follows:
//
// f, err := rootio.Open("ntup.root")
// if err != nil {
// log.Fatal(err)
// }
// defer f.Close()
//
// obj, err := f.Get("tree")
// if err != nil {
// log.Fatal(err)
// }
// tree := obj.(rootio.Tree)
// fmt.Printf("entries= %v\n", tree.Entries())
//
// More complete examples on how to iterate over the content of a Tree can
// be found in the examples attached to rootio.TreeScanner and rootio.Scanner:
// https://godoc.org/go-hep.org/x/hep/rootio#pkg-examples
//
// Another possibility is to look at:
// https://godoc.org/go-hep.org/x/hep/rootio/cmd/root-ls,
// a command that inspects the content of ROOT files.
package rootio // import "go-hep.org/x/hep/rootio"