Skip to content

Commit b381946

Browse files
author
Shirajum Monira
committed
fixed remaining code-check errors
1 parent f27a8ee commit b381946

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackV0Extended.cxx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,11 @@ struct FemtoUniversePairTaskTrackV0Extended { // NOLINT(cppcoreguidelines-pro-ty
241241
{
242242
if (mom <= confmom) {
243243
return (std::abs(nsigmaTPCParticle) < confNsigmaTPCParticle);
244-
} else if (hasTOF) {
244+
}
245+
if (hasTOF) {
245246
return (std::hypot(nsigmaTOFParticle, nsigmaTPCParticle) < confNsigmaCombinedParticle);
246-
} else {
247-
return false;
248247
}
248+
return false;
249249
}
250250

251251
template <typename T>
@@ -263,7 +263,7 @@ struct FemtoUniversePairTaskTrackV0Extended { // NOLINT(cppcoreguidelines-pro-ty
263263
bool invMLambda(float invMassLambda, float invMassAntiLambda, int V0Type)
264264
{
265265
if (ConfV0Selection.confSeparateInvMassCheck) {
266-
const float pMass = V0Type ? invMassAntiLambda : invMassLambda;
266+
const float pMass = (V0Type == 1) ? invMassAntiLambda : invMassLambda;
267267
if (pMass < ConfV0Selection.confV0InvMassLowLimit || pMass > ConfV0Selection.confV0InvMassUpLimit) {
268268
return false;
269269
}
@@ -285,9 +285,8 @@ struct FemtoUniversePairTaskTrackV0Extended { // NOLINT(cppcoreguidelines-pro-ty
285285
// Cut only on daughter tracks, that have TOF signal
286286
if (mom > confmom && hasTOF) {
287287
return std::abs(nsigmaTOFParticle) < confNsigmaTOFParticle;
288-
} else {
289-
return true;
290288
}
289+
return true;
291290
}
292291

293292
template <typename T>

0 commit comments

Comments
 (0)