Skip to content

Commit 5e8e9ec

Browse files
committed
bugfix Ranges() when calculate BG chi2 sidebands
1 parent ec5f91f commit 5e8e9ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PWGHF/D2H/Macros/HFInvMassFitter.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ void HFInvMassFitter::doFit()
259259
// define the frame to evaluate background sidebands chi2 (bg pdf needs to be plotted within sideband ranges)
260260
RooPlot* frameTemporary = mass->frame(Title(Form("%s_temp", mHistoInvMass->GetTitle())));
261261
dataHistogram.plotOn(frameTemporary, Name("data_for_bkgchi2"));
262-
mBkgPdf->plotOn(frameTemporary, Range("SBL", true), Name("Bkg_sidebands"));
262+
mBkgPdf->plotOn(frameTemporary, Range(sbRanges.c_str()), Name("Bkg_sidebands"));
263263
mChiSquareOverNdfBkg = frameTemporary->chiSquare("Bkg_sidebands", "data_for_bkgchi2"); // calculate reduced chi2 / NDF of background sidebands (pre-fit)
264264
delete frameTemporary;
265265
if (mDrawBgPrefit) {

0 commit comments

Comments
 (0)