Hi, I need to rebin histograms of my macro. Running I would like a bin width =1 …Looking the plot that I got by running the macro I see the range is [-600;600], so I wrote:
and I get plots having the ROOT automatically binning ( bin width =50).
Isn’t possible to set an user binning? Obiuvlsy if it’s possible to get a width=1 without knowing the range it should be better!
Hi @Wile_E_Coyote ,i used your code for the re-binning and it worked, but I had also to cut some data and I need 2 use 2 gaussian fit. Following your reply in this topic Fitting with two gaussian curves , I got a good 2 gaussian fit. Anyway, in the statistical box, I get the mean value of the 2 separated fits, instead I’d like to get also the mean and sigma values of the produced by your code of the total fit.
Should it be possible?
Following @couet reply to this topic Adding text to statistics box I wrote
because the \n
command didn’t work and I also tried
\r\n
but it didn’t work too.
But I’ve 1 more question please currently it center all the text, should it be possible to get “Mean” on the left and the value on the right (similiar to what ROOT does)?
thanks
// Note that "=" is a control character
statsgdeltatime->AddText(TString::Format("Mean = %g", mean));
statsgdeltatime->AddText(TString::Format("Sigma = %g", sigma));