root.call {xps}R Documentation

Create class CallTreeSet accessing ROOT detection call file

Description

Create class CallTreeSet accessing ROOT detection call file.

Usage

root.call(xps.scheme, rootfile = character(0), treetype = character(0), treenames = "*")

Arguments

xps.scheme A SchemeTreeSet containing the correct scheme for the ROOT data file.
rootfile name of ROOT data file, including full path.
treetype tree type.
treenames optional character vector of tree names to get only subset of trees.

Details

An S4 class CallTreeSet will be created, serving as R wrapper to the existing ROOT detection call file rootfile.

Parameter treetype must be supplied to identify the ROOT trees for slots data and detcall. Valid tree types are listed in validTreetype.

To get the names of all trees with their extensions treetype, which are stored in rootfile, you can call function getTreeNames first.

If the CallTreeSet should only handle a subset of the trees stored in rootfile, the tree names must be supplied as vector treenames.

Value

A CallTreeSet object.

Author(s)

Christian Stratowa

See Also

root.data, root.expr

Examples

## first, load ROOT scheme file and ROOT data file
scheme.test3 <- root.scheme(paste(.path.package("xps"),"schemes/SchemeTest3.root",sep="/"))
data.test3 <- root.data(scheme.test3, paste(.path.package("xps"),"rootdata/DataTest3_cel.root",sep="/"))

## MAS5 detection call
detcall.mas5 <- mas5.call(data.test3,"tmp_Test3CallAll",tmpdir="",verbose=FALSE)

## use subset of trees
sub.call <- root.call(scheme.test3, "tmp_Test3CallAll.root", "dc5", c("TestA2", "TestB1"))

[Package xps version 1.2.10 Index]