Copy a subset of a Tree to a new Tree
The input file has been generated by the program in $ROOTSYS/test/Event
with Event 1000 1 1 1
.
TString dir =
"$ROOTSYS/test/Event.root";
{oldfile =
new TFile(
"$ROOTSYS/test/Event.root");}
else {oldfile =
new TFile(
"./Event.root");}
Event *event = new Event();
TFile *newfile =
new TFile(
"small.root",
"recreate");
delete oldfile;
delete newfile;
}
- Author
- Rene Brun
Definition in file copytree.C.