Hello,
I have a branch with several leafs. I want to read the entries of one leaf to the histogram. How can I do that? Everything what I found since now is about the work with branches.
Can somebody give me a hint?
Thanks,
Aivaras
use tree.Draw(“leafname”)
or a simple loop with
TLeaf *leaf = tree.GetLeaf("leafname");
for (i=0;i<nentries;i++) {
leaf->GetBranch()->GetEntry(i);
myhist.Fill(leaf->GetValue());
}
Rene
Thankyou.