Skip to content

Commit 2bcf8d5

Browse files
mpuccioshahor02
authored andcommitted
Sign of sigma shouldn't flip with bz
Spotted by @wang-yuanzhe
1 parent 0b66ff9 commit 2bcf8d5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Detectors/Vertexing/src/SVertexHypothesis.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ void SVertexHypothesis::set(PID v0, PID ppos, PID pneg, float sig, float nSig, f
2525
mPars[SigmaM] = sig;
2626
mPars[NSigmaM] = nSig;
2727
mPars[MarginM] = margin;
28-
mPars[CPt] = std::abs(bz) > 1e-3 ? cpt * 5.0066791 / bz : 0.; // assume that pT dependent sigma is linear with B
28+
float absBz{std::abs(bz)};
29+
mPars[CPt] = absBz > 1e-3 ? cpt * 5.0066791 / absBz : 0.; // assume that pT dependent sigma is linear with B
2930
}
3031

3132
void SVertexHypothesis::set(PID v0, PID ppos, PID pneg, const float pars[NPIDParams], float bz)

0 commit comments

Comments
 (0)