Skip to content

Commit f9c073b

Browse files
authored
Fix condition to disable V0/Cascade hypothesis in the SVertexer + other minor fix (#14324)
* Fix condition to disable V0/Cascade hypothesis in the SVertexer * Fix some rejection status assignments
1 parent cc8a075 commit f9c073b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Common/DCAFitter/include/DCAFitter/DCAFitterN.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ class DCAFitterN
142142
FailInv2ndDeriv, // inversion of 2nd derivatives failed
143143
FailCorrTracks, // correction of tracks to updated x failed
144144
FailCloserAlt, // alternative PCA is closer
145+
//
146+
NStatusesDefined
145147
};
146148

147149
static constexpr int getNProngs() { return N; }
@@ -989,7 +991,7 @@ GPUd() bool DCAFitterN<N, Args...>::minimizeChi2()
989991
}
990992

991993
if (mMaxDZIni > 0 && !roughDZCut()) { // apply rough cut on tracks Z difference
992-
mFitStatus[mCurHyp] = FitStatus::RejTrackX;
994+
mFitStatus[mCurHyp] = FitStatus::RejTrackRoughZ;
993995
return false;
994996
}
995997

@@ -1063,7 +1065,7 @@ GPUd() bool DCAFitterN<N, Args...>::minimizeChi2NoErr()
10631065
setTrackPos(mTrPos[mCurHyp][i], mCandTr[mCurHyp][i]); // prepare positions
10641066
}
10651067
if (mMaxDZIni > 0 && !roughDZCut()) { // apply rough cut on tracks Z difference
1066-
mFitStatus[mCurHyp] = FitStatus::RejTrackX;
1068+
mFitStatus[mCurHyp] = FitStatus::RejTrackRoughZ;
10671069
return false;
10681070
}
10691071

Detectors/Vertexing/include/DetectorsVertexing/SVertexHypothesis.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class SVertexHypothesis
6060

6161
bool check(float p2Pos, float p2Neg, float p2V0, float ptV0) const
6262
{ // check if given mass and pt is matching to hypothesis
63-
return mPars[SigmaM] > 0 && check(calcMass(p2Pos, p2Neg, p2V0), ptV0);
63+
return mPars[SigmaM] >= 0.f && check(calcMass(p2Pos, p2Neg, p2V0), ptV0);
6464
}
6565
bool check(float mass, float pt) const
6666
{ // check if given mass and pt is matching to hypothesis
@@ -151,7 +151,7 @@ class SVertex3Hypothesis
151151

152152
bool check(float p2Pos, float p2Neg, float p2Bach, float p2Tot, float ptV0) const
153153
{ // check if given mass and pt is matching to hypothesis
154-
return mPars[SigmaM] > 0 && check(calcMass(p2Pos, p2Neg, p2Bach, p2Tot), ptV0);
154+
return mPars[SigmaM] >= 0.f && check(calcMass(p2Pos, p2Neg, p2Bach, p2Tot), ptV0);
155155
}
156156

157157
bool check(float mass, float pt) const

0 commit comments

Comments
 (0)