Skip to content

Commit f410015

Browse files
committed
Fix codechecker readability-braces-around-statements violations
1 parent b5d96df commit f410015

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Detectors/Vertexing/src/SVertexHypothesis.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ void SVertexHypothesis::set(PID v0, PID ppos, PID pneg, float sig, float nSig, f
3333
mPars[CPt3] = cpt3;
3434
maxSigma = maxSigmaInput;
3535
float absBz{std::abs(bz)};
36-
if (cpt3 < 1)
36+
if (cpt3 < 1) {
3737
mPars[CPt] = absBz > 1e-3 ? cpt * 5.0066791 / absBz : 0.; // assume that pT dependent sigma is linear with B; case for HyperTriton and Hyperhydrog4
38+
}
3839
}
3940

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

Detectors/Vertexing/src/SVertexer.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,10 +569,12 @@ bool SVertexer::checkV0(const TrackCand& seedP, const TrackCand& seedN, int iP,
569569
}
570570
// check tight lambda mass only
571571
bool goodLamForCascade = false, goodALamForCascade = false;
572-
if (mV0Hyps[Lambda].checkTight(p2Pos, p2Neg, p2V0, ptV0))
572+
if (mV0Hyps[Lambda].checkTight(p2Pos, p2Neg, p2V0, ptV0)) {
573573
goodLamForCascade = true;
574-
if (mV0Hyps[AntiLambda].checkTight(p2Pos, p2Neg, p2V0, ptV0))
574+
}
575+
if (mV0Hyps[AntiLambda].checkTight(p2Pos, p2Neg, p2V0, ptV0)) {
575576
goodALamForCascade = true;
577+
}
576578

577579
// apply mass selections for 3-body decay
578580
bool good3bodyV0Hyp = false;

0 commit comments

Comments
 (0)