diff --git a/Modules/GLO/src/VertexingQcTask.cxx b/Modules/GLO/src/VertexingQcTask.cxx index 00f9880e8c..bfc1fcc353 100644 --- a/Modules/GLO/src/VertexingQcTask.cxx +++ b/Modules/GLO/src/VertexingQcTask.cxx @@ -209,9 +209,7 @@ void VertexingQcTask::monitorData(o2::framework::ProcessingContext& ctx) auto timeUnc = pvertices[i].getTimeStamp().getTimeStampError(); ILOG(Debug, Support) << "x = " << x << ", y = " << y << ", z = " << z << ", nContributors = " << nContr << ", timeUnc = " << timeUnc << ENDM; mX->Fill(x); - mX->Fit("fX", "Q", "", mX->GetMean() - mX->GetRMS(), mX->GetMean() + mX->GetRMS()); mY->Fill(y); - mY->Fit("fY", "Q", "", mY->GetMean() - mY->GetRMS(), mY->GetMean() + mY->GetRMS()); mZ->Fill(z); mNContributors->Fill(nContr); mTimeUncVsNContrib->Fill(nContr, timeUnc); @@ -233,6 +231,8 @@ void VertexingQcTask::monitorData(o2::framework::ProcessingContext& ctx) mVtxPullsZVsMult->Fill(mult, (vtMC[2] - pvertices[i].getZ()) / std::sqrt(pvertices[i].getSigmaZ2())); } } + mX->Fit("fX", "Q", "", mX->GetMean() - mX->GetRMS(), mX->GetMean() + mX->GetRMS()); + mY->Fit("fY", "Q", "", mY->GetMean() - mY->GetRMS(), mY->GetMean() + mY->GetRMS()); } void VertexingQcTask::endOfCycle() diff --git a/Modules/TPC/src/PID.cxx b/Modules/TPC/src/PID.cxx index 03d9951bb3..e4920a2496 100644 --- a/Modules/TPC/src/PID.cxx +++ b/Modules/TPC/src/PID.cxx @@ -114,7 +114,7 @@ void PID::endOfCycle() fitFunc.SetParameter(5, 10); // Sigma of the second Gaussian // Fit the histogram with the fitting function - hist->Fit(&fitFunc, "QRN"); + hist->Fit(&fitFunc, "QRNM"); const TString binLabels[8] = { "Amplitude Pi", "Mean Pi", "Sigma Pi", "Amplitude El", "Mean El", "Sigma El", "Separation Power", "chiSquare/ndf" };