Documentation
¶
Overview ¶
Package rcmd provides helper functions containing the logic of various root-xyz commands.
Index ¶
- func Copy(oname string, fnames []string) error
- func Diff(w io.Writer, ref, chk *riofs.File, keys []string) error
- func Dump(w io.Writer, fname string, deep bool, filter func(name string) bool) error
- func List(w io.Writer, fname string, opts ...ListOption) error
- func Merge(oname string, fnames []string, verbose bool) error
- func Split(oname, fname, tname string, nevts int64, verbose bool) ([]string, error)
- type ListOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
Diff compares the values of the list of keys between the two provided ROOT files. Diff writes the differing data (if any) to w.
if w is nil, os.Stdout is used. if the slice of keys is nil, all keys are considered.
func Dump ¶
Dump dumps the content of the fname ROOT file to the provided io.Writer. If deep is true, Dump will recursively inspect directories and trees. Dump only display the content of ROOT objects satisfying the provided filter function.
If filter is nil, Dump will consider all ROOT objects.
func List ¶ added in v0.28.0
func List(w io.Writer, fname string, opts ...ListOption) error
List displays the summary content of the named ROOT file into the provided io Writer.
List's behaviour can be customized with a set of optional ListOptions.
Types ¶
type ListOption ¶ added in v0.28.0
type ListOption func(*lsCmd)
ListOption controls how List behaves.
func ListStreamers ¶ added in v0.28.0
func ListStreamers(v bool) ListOption
ListStreamers enables the display of streamer informations contained in the provided ROOT file.
func ListTrees ¶ added in v0.28.0
func ListTrees(v bool) ListOption
ListTrees enables the detailed display of trees contained in the provided ROOT file.