Closed cnatzke closed 4 months ago
I can draw both the ggPeakFunc
and the bgPeakFunc
without problem
bgPeakFunc->Draw();
ggPeakFunc->Draw("same");
without issue, but the bgFunc
does not draw.
What happens if you use:
bgPeakFunc->SetRange(fitRangeLow, fitRangeHigh)
before you call the Draw command?
That fixed it, thanks. I knew it would be something simple.
Okay, thanks for confirming. I will have to look into the peak fitter code to see why the range isn't set automatically.
I am fitting a combination of two peaks with
TPeakFitter
and would like to draw the background function. I use the following (simplified) code to extract the function:I get a blank canvas and the following error:
I suspect it's an error on my part but I can't find it.