@@ -268,7 +268,7 @@ class V0Selection : public BaseSelection<float, o2::aod::femtodatatypes::V0MaskT
268268 }
269269
270270 template <typename T>
271- bool checkCandidate (const T& v0) const
271+ bool checkFilters (const T& v0) const
272272 {
273273 // check kinematics first
274274 const bool kinematicsOK =
@@ -380,28 +380,29 @@ class V0Builder
380380 int64_t posDaughterIndex = 0 ;
381381 int64_t negDaughterIndex = 0 ;
382382 for (const auto & v0 : v0s) {
383- if (!mV0Selection .checkCandidate (v0)) {
383+ if (!mV0Selection .checkFilters (v0)) {
384384 continue ;
385385 }
386386 mV0Selection .applySelections (v0, tracks);
387- if (mV0Selection .passesAllRequiredSelections ()) {
388- auto posDaughter = v0.template posTrack_as <T7>();
389- auto negDaughter = v0.template negTrack_as <T7>();
390-
391- collisionBuilder.template fillCollision <system>(collisionProducts, col);
392-
393- posDaughterIndex = trackBuilder.template getDaughterIndex <modes::Track::kV0Daughter >(posDaughter, trackProducts, collisionProducts, indexMap);
394- negDaughterIndex = trackBuilder.template getDaughterIndex <modes::Track::kV0Daughter >(negDaughter, trackProducts, collisionProducts, indexMap);
395-
396- if constexpr (modes::isEqual (v0Type, modes::V0::kLambda )) {
397- fillLambda (collisionProducts, v0products, v0, 1 .f , posDaughterIndex, negDaughterIndex);
398- }
399- if constexpr (modes::isEqual (v0Type, modes::V0::kAntiLambda )) {
400- fillLambda (collisionProducts, v0products, v0, -1 .f , posDaughterIndex, negDaughterIndex);
401- }
402- if constexpr (modes::isEqual (v0Type, modes::V0::kK0short )) {
403- fillK0short (collisionProducts, v0products, v0, posDaughterIndex, negDaughterIndex);
404- }
387+ if (!mV0Selection .passesAllRequiredSelections ()) {
388+ continue ;
389+ }
390+ auto posDaughter = v0.template posTrack_as <T7>();
391+ auto negDaughter = v0.template negTrack_as <T7>();
392+
393+ collisionBuilder.template fillCollision <system>(collisionProducts, col);
394+
395+ posDaughterIndex = trackBuilder.template getDaughterIndex <modes::Track::kV0Daughter >(posDaughter, trackProducts, collisionProducts, indexMap);
396+ negDaughterIndex = trackBuilder.template getDaughterIndex <modes::Track::kV0Daughter >(negDaughter, trackProducts, collisionProducts, indexMap);
397+
398+ if constexpr (modes::isEqual (v0Type, modes::V0::kLambda )) {
399+ fillLambda (collisionProducts, v0products, v0, 1 .f , posDaughterIndex, negDaughterIndex);
400+ }
401+ if constexpr (modes::isEqual (v0Type, modes::V0::kAntiLambda )) {
402+ fillLambda (collisionProducts, v0products, v0, -1 .f , posDaughterIndex, negDaughterIndex);
403+ }
404+ if constexpr (modes::isEqual (v0Type, modes::V0::kK0short )) {
405+ fillK0short (collisionProducts, v0products, v0, posDaughterIndex, negDaughterIndex);
405406 }
406407 }
407408 }
0 commit comments