19 TFile oldfile(
"tree108.root");
21 oldfile.GetObject(
"t4", oldtree);
27 for (
auto activeBranchName : {
"event_split",
"fNtrack",
"fNseg",
"fH"})
31 TFile newfile(
"tree110.root",
"recreate");
43 gROOT->ProcessLine(
".L " + tutdir +
"/io/tree/Event.cxx+");
44 gROOT->ProcessLine(
"#define ACTUAL_RUN yes");
45 gROOT->ProcessLine(
"#include \"" __FILE__
"\"");
46 gROOT->ProcessLine(
"run()");
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
A TTree represents a columnar dataset.
virtual void SetBranchStatus(const char *bname, bool status=true, UInt_t *found=nullptr)
Set branch status to Process or DoNotProcess.
void Print(Option_t *option="") const override
Print a summary of the tree contents.
virtual TTree * CloneTree(Long64_t nentries=-1, Option_t *option="")
Create a clone of this tree and copy nentries.