Hello,
I want to create a 1D histogram using 4 variables from a TTree.
When I use 2 variables I write,
MyTree->Draw(“var_1>>hist”,“var_2”);
How do i do the same with 4 variables?
Thanks!
Hello,
I want to create a 1D histogram using 4 variables from a TTree.
When I use 2 variables I write,
MyTree->Draw(“var_1>>hist”,“var_2”);
How do i do the same with 4 variables?
Thanks!
What do you want to plot from your 4 variables? You want to sum up them, to use some of them as condition, … Could you give us more details?
Oops sorry!
Yes, I want to use them as conditions. Each variable has a specific cut.
You can specify any logical expression (combining any variables in the tree) in the “cut parameters”