Description Usage Arguments Details Value Note Author(s) See Also Examples
Create class DataTreeSet accessing ROOT data file.
1 |
xps.scheme |
A |
rootfile |
name of ROOT data file, including full path. |
celnames |
optional |
An S4 class DataTreeSet
will be created, serving as R wrapper to the
existing ROOT
data file rootfile
.
If the DataTreeSet
should only handle a subset of the trees stored in
rootfile
, the tree names must be supplied as vector celnames
.
To get the names of all trees stored in rootfile
you can call function
getTreeNames
first.
A DataTreeSet
object.
Use root.data
to access the ROOT data file from new R sessions
to avoid creating a new ROOT
data file for every R session.
Christian Stratowa
1 2 3 4 5 6 | ## get scheme and import CEL-files from package
scheme.test3 <- root.scheme(paste(path.package("xps"),"schemes/SchemeTest3.root",sep="/"))
data.test3 <- import.data(scheme.test3,"tmp_datatest3",celdir=paste(path.package("xps"),"raw",sep="/"),verbose=FALSE)
## use subset of CEL-files
subdata.test3 <- root.data(scheme.test3,"tmp_datatest3_cel.root", celnames=c("TestA1.cel","TestB2.cel"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.