getTreeNames: Get Tree Names

Description Usage Arguments Details Value Author(s) Examples

View source: R/utils.R

Description

Get tree names stored in a ROOT file.

Usage

1
getTreeNames(rootfile, treetype = "*", setname = NULL, gettitle = FALSE)

Arguments

rootfile

name of ROOT file, including full path.

treetype

tree type.

setname

name of ROOT subdirectory containing trees.

gettitle

If TRUE the titles of the trees will be returned.

Details

Extracts the tree names of treetype stored in ROOT file rootfile.
Valid tree types are listed in validTreetype. For treetype="*" names for all trees in rootfile are returned.
If setname is provided, only tree names in subdirectory setname are returned.

Value

A vector of tree names. For gettitle=TRUE a vector of tree titles.

Author(s)

Christian Stratowa

Examples

1
2
3
getTreeNames(paste(path.package("xps"),"schemes/SchemeTest3.root",sep="/"))
getTreeNames(paste(path.package("xps"),"schemes/SchemeTest3.root",sep="/"), "scm")
getTreeNames(paste(path.package("xps"),"rootdata/DataTest3_cel.root",sep="/"))

xps documentation built on Nov. 8, 2020, 6 p.m.