From d001b9bfc2b14bae20cf1577af06ba43f79ab013 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Wed, 17 Jan 2024 17:37:40 +0000 Subject: [PATCH] MegaLinter fixes --- PWGLF/TableProducer/lambdakzerobuilder.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/PWGLF/TableProducer/lambdakzerobuilder.cxx b/PWGLF/TableProducer/lambdakzerobuilder.cxx index fb2d7da4e22..3de7dc207ce 100644 --- a/PWGLF/TableProducer/lambdakzerobuilder.cxx +++ b/PWGLF/TableProducer/lambdakzerobuilder.cxx @@ -1001,7 +1001,7 @@ struct lambdakzeroPreselector { // crossed rows conditionals bool posRowsOK = lPosTrack.tpcNClsCrossedRows() >= dTPCNCrossedRows; bool negRowsOK = lNegTrack.tpcNClsCrossedRows() >= dTPCNCrossedRows; - + // check track explicitly for absence of TPC bool posITSonly = !lPosTrack.hasTPC(); bool negITSonly = !lNegTrack.hasTPC(); @@ -1010,20 +1010,20 @@ struct lambdakzeroPreselector { if (((bitcheck(maskElement, bitdEdxGamma) || bitcheck(maskElement, bitdEdxK0Short)) || passdEdx) && (posRowsOK && negRowsOK)) bitset(maskElement, bitTrackQuality); // With baryons in decay - if ((bitcheck(maskElement, bitdEdxLambda) || passdEdx) && - (posRowsOK && (negRowsOK || dPreselectOnlyBaryons)) && + if ((bitcheck(maskElement, bitdEdxLambda) || passdEdx) && + (posRowsOK && (negRowsOK || dPreselectOnlyBaryons)) && (!forceITSOnlyMesons || negITSonly)) bitset(maskElement, bitTrackQuality); - if ((bitcheck(maskElement, bitdEdxAntiLambda) || passdEdx) && - (negRowsOK && (posRowsOK || dPreselectOnlyBaryons)) && + if ((bitcheck(maskElement, bitdEdxAntiLambda) || passdEdx) && + (negRowsOK && (posRowsOK || dPreselectOnlyBaryons)) && (!forceITSOnlyMesons || posITSonly)) bitset(maskElement, bitTrackQuality); if ((bitcheck(maskElement, bitdEdxHypertriton) || passdEdx) && - (posRowsOK && (negRowsOK || dPreselectOnlyBaryons)) && + (posRowsOK && (negRowsOK || dPreselectOnlyBaryons)) && (!forceITSOnlyMesons || negITSonly)) bitset(maskElement, bitTrackQuality); - if ((bitcheck(maskElement, bitdEdxAntiHypertriton) || passdEdx) && - (negRowsOK && (posRowsOK || dPreselectOnlyBaryons)) && + if ((bitcheck(maskElement, bitdEdxAntiHypertriton) || passdEdx) && + (negRowsOK && (posRowsOK || dPreselectOnlyBaryons)) && (!forceITSOnlyMesons || posITSonly)) bitset(maskElement, bitTrackQuality); }