Skip to content

Commit

Permalink
smalll fix with k0s
Browse files Browse the repository at this point in the history
  • Loading branch information
f3sch committed Nov 16, 2023
1 parent 4ec81e3 commit 239d56e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Detectors/Vertexing/src/SVertexer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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]) /
Expand All @@ -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;
Expand Down

0 comments on commit 239d56e

Please sign in to comment.