Skip to content

Commit 90e9aa2

Browse files
committed
Fix condition to disable V0/Cascade hypothesis in the SVertexer
1 parent cc8a075 commit 90e9aa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)