From 56a80cb24748acd9a900e9922ffefed9523ed3f8 Mon Sep 17 00:00:00 2001 From: Felix Schlepper Date: Sat, 25 Nov 2023 16:29:15 +0100 Subject: [PATCH] fix photon check --- Detectors/Vertexing/src/SVertexer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Detectors/Vertexing/src/SVertexer.cxx b/Detectors/Vertexing/src/SVertexer.cxx index 842964f0c9861..cd694670a9baf 100644 --- a/Detectors/Vertexing/src/SVertexer.cxx +++ b/Detectors/Vertexing/src/SVertexer.cxx @@ -645,7 +645,7 @@ bool SVertexer::checkV0(const TrackCand& seedP, const TrackCand& seedN, int iP, bool goodHyp = false; std::array hypCheckStatus{}; - for (int ipid = 0; (ipid < ((usesTPCOnly) ? NHypV0 : (Photon + 1))) && mSVParams->checkV0Hypothesis; ipid++) { + for (int ipid = 0; (ipid < ((usesTPCOnly) ? (Photon + 1) : NHypV0)) && mSVParams->checkV0Hypothesis; ipid++) { if (mV0Hyps[ipid].check(p2Pos, p2Neg, p2V0, ptV0)) { goodHyp = hypCheckStatus[ipid] = true; }