Scaling a tree branch


I wonder is there any method I can use to scale or normalize a branch of a tree;

I know there is a function called scale in histograms, but is there such a function for trees?

Thanks a lot in advance

Do you want to multiply each entry of a tree column by some value v ?
If that’s the case, you can do it “on the fly” without modifying the data.
For instance with TTree::Draw:

t->Draw("x*0.1"); // scale column x with 0.1
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.