Skip to content

Commit 6a863d5

Browse files
authored
GLO VTX: move fitting outside of the histogram filling loop (#2603)
1 parent 170a29a commit 6a863d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/GLO/src/VertexingQcTask.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,7 @@ void VertexingQcTask::monitorData(o2::framework::ProcessingContext& ctx)
209209
auto timeUnc = pvertices[i].getTimeStamp().getTimeStampError();
210210
ILOG(Debug, Support) << "x = " << x << ", y = " << y << ", z = " << z << ", nContributors = " << nContr << ", timeUnc = " << timeUnc << ENDM;
211211
mX->Fill(x);
212-
mX->Fit("fX", "Q", "", mX->GetMean() - mX->GetRMS(), mX->GetMean() + mX->GetRMS());
213212
mY->Fill(y);
214-
mY->Fit("fY", "Q", "", mY->GetMean() - mY->GetRMS(), mY->GetMean() + mY->GetRMS());
215213
mZ->Fill(z);
216214
mNContributors->Fill(nContr);
217215
mTimeUncVsNContrib->Fill(nContr, timeUnc);
@@ -233,6 +231,8 @@ void VertexingQcTask::monitorData(o2::framework::ProcessingContext& ctx)
233231
mVtxPullsZVsMult->Fill(mult, (vtMC[2] - pvertices[i].getZ()) / std::sqrt(pvertices[i].getSigmaZ2()));
234232
}
235233
}
234+
mX->Fit("fX", "Q", "", mX->GetMean() - mX->GetRMS(), mX->GetMean() + mX->GetRMS());
235+
mY->Fit("fY", "Q", "", mY->GetMean() - mY->GetRMS(), mY->GetMean() + mY->GetRMS());
236236
}
237237

238238
void VertexingQcTask::endOfCycle()

0 commit comments

Comments
 (0)