Laly86
1
Hi!
I have another problem…I’ve built a Tree (t1) and an alias for the Tree…now I would like to plot the spectrum of an alias, so I write:
t1.SetAlias(“termico_new”,“termico*3.14”);
t1.Write();
t1.Draw(“termico_new”);
I can see the histogram, but the binning is awful (only 512 bins, I would like to have 5000-6000 bins!)…is there a way to change it?
thanks!!
brun
2
Please read the documentation. You can specify as many bins as you like for the output histogram with something like
tree.Draw("var>>myhist(5000)") ; //to force the number of bins
tree.Draw("var>>myhist(5000,0,5)") ; //to force the number of bins and limits
Rene
PS: Do not post this type of questions to this thread dedicated to “Stats and Math”, but
to the “Support” thread