Skip to content

Commit 8163558

Browse files
committed
greek mu and sigma in plot text
1 parent fcb2721 commit 8163558

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

PWGHF/D2H/Macros/HFInvMassFitter.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,10 @@ void HFInvMassFitter::drawFit(TVirtualPad* pad, const std::vector<std::string>&
612612
const std::string fixMeanStatus = mFixedMean ? "fixed" : "free";
613613
const std::string fixSigmaStatus = mFixedSigma ? "fixed" : "free";
614614
const std::string fixSigmaDoubleGausStatus = mFixedSigmaDoubleGaus ? "fixed" : "free";
615-
textSignalPar->AddText(Form("mean(%s) = %.3f #pm %.3f", fixMeanStatus.c_str(), mRooMeanSgn->getVal(), mRooMeanSgn->getError()));
616-
textSignalPar->AddText(Form("sigma(%s) = %.3f #pm %.3f", fixSigmaStatus.c_str(), mRooSigmaSgn->getVal(), mRooSigmaSgn->getError()));
615+
textSignalPar->AddText(Form("#mu(%s) = %.3f #pm %.3f", fixMeanStatus.c_str(), mRooMeanSgn->getVal(), mRooMeanSgn->getError()));
616+
textSignalPar->AddText(Form("#sigma(%s) = %.3f #pm %.3f", fixSigmaStatus.c_str(), mRooSigmaSgn->getVal(), mRooSigmaSgn->getError()));
617617
if (mTypeOfSgnPdf == DoubleGaus) {
618-
textSignalPar->AddText(Form("sigma 2(%s) = %.3f #pm %.3f", fixSigmaDoubleGausStatus.c_str(), mRooSecSigmaSgn->getVal(), mRooSecSigmaSgn->getError()));
618+
textSignalPar->AddText(Form("#sigma_{2}(%s) = %.3f #pm %.3f", fixSigmaDoubleGausStatus.c_str(), mRooSecSigmaSgn->getVal(), mRooSecSigmaSgn->getError()));
619619
}
620620
mInvMassFrame->addObject(textSignalPar);
621621
}
@@ -642,10 +642,10 @@ void HFInvMassFitter::drawResidual(TVirtualPad* pad)
642642
textInfo->SetTextColor(kBlue);
643643
textInfo->AddText(Form("S = %.0f #pm %.0f ", mRawYield, mRawYieldErr));
644644
textInfo->AddText(Form("S_{count} = %.0f #pm %.0f ", mRawYieldCounted, mRawYieldCountedErr));
645-
textInfo->AddText(Form("mean = %.3f #pm %.3f", mRooMeanSgn->getVal(), mRooMeanSgn->getError()));
646-
textInfo->AddText(Form("sigma = %.3f #pm %.3f", mRooSigmaSgn->getVal(), mRooSigmaSgn->getError()));
645+
textInfo->AddText(Form("#mu = %.3f #pm %.3f", mRooMeanSgn->getVal(), mRooMeanSgn->getError()));
646+
textInfo->AddText(Form("#sigma = %.3f #pm %.3f", mRooSigmaSgn->getVal(), mRooSigmaSgn->getError()));
647647
if (mTypeOfSgnPdf == DoubleGaus) {
648-
textInfo->AddText(Form("sigma 2 = %.3f #pm %.3f", mRooSecSigmaSgn->getVal(), mRooSecSigmaSgn->getError()));
648+
textInfo->AddText(Form("#sigma_{2} = %.3f #pm %.3f", mRooSecSigmaSgn->getVal(), mRooSecSigmaSgn->getError()));
649649
}
650650
mResidualFrame->addObject(textInfo);
651651
mResidualFrame->Draw();

0 commit comments

Comments
 (0)