diff --git a/Detectors/Vertexing/src/SVertexer.cxx b/Detectors/Vertexing/src/SVertexer.cxx index e7a9834fcaad8..085c40bfdd904 100644 --- a/Detectors/Vertexing/src/SVertexer.cxx +++ b/Detectors/Vertexing/src/SVertexer.cxx @@ -605,7 +605,8 @@ bool SVertexer::checkV0(const TrackCand& seedP, const TrackCand& seedN, int iP, } // apply loose Armenteros-Podolanski cut to photons and K0 - if (mSVParams->checkV0Hypothesis && mSVParams->checkV0AP && (hypCheckStatus[HypV0::Photon] || hypCheckStatus[HypV0::K0] || goodLamForCascade || goodALamForCascade)) { + if (mSVParams->checkV0Hypothesis && mSVParams->checkV0AP && + (hypCheckStatus[HypV0::Photon] || hypCheckStatus[HypV0::K0] || goodLamForCascade || goodALamForCascade)) { float pV0Abs = std::sqrt(p2V0); float pPos = std::sqrt(p2Pos); float p1 = (pV0[0] * pP[0] + pV0[1] * pP[1] + pV0[2] * pP[2]) / @@ -620,7 +621,7 @@ bool SVertexer::checkV0(const TrackCand& seedP, const TrackCand& seedN, int iP, hypCheckStatus[HypV0::Photon] = false; } if (hypCheckStatus[HypV0::K0] && pT1 < mSVParams->pidCutsK0AP_qT) { - hypCheckStatus[HypV0::Photon] = false; + hypCheckStatus[HypV0::K0] = false; } if ((goodLamForCascade || goodALamForCascade) && std::abs(alpha) > mSVParams->pidCutsLambdaAP_a && pT1 > mSVParams->pidCutsLambdaAP_qT) { goodLamForCascade = false;