Skip to content

Commit 2de68c1

Browse files
ariedel-cernalibuild
authored andcommitted
[PWGCF] Fix process functions in collision tagger in femto framework (#18631)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 00083db commit 2de68c1

2 files changed

Lines changed: 264 additions & 186 deletions

File tree

‎PWGCF/Femto/Core/collisionTagger.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ struct TrackSelectionValues {
7575
// V0-specific: MAKE_CASCADE_PARTITION, MAKE_SIGMA_PARTITION, MAKE_SIGMAPLUS_PARTITION,
7676
// MAKE_D0_PARTITION, and MAKE_CHARM3PRONG_PARTITION in Core/partitions.h are all byte-for-byte
7777
// identical to MAKE_LAMBDA_PARTITION, and CascadeMaskType/KinkMaskType/CharmHadronMaskType are
78-
// all, like V0MaskType, uint32_t -- so this one struct (and lambdaPasses()/readV0Selection()
78+
// all, like V0MaskType, uint32_t -- so this one struct (and signedV0Passes()/readV0Selection()
7979
// below) is reused verbatim for Xi/Omega (cascade), Sigma/SigmaPlus (kink), and D0/Lc
8080
// (charm hadron) selections too, not just Lambda. Only SigmaPlusPcm needs its own struct
8181
// (KinkPcmSelectionValues below), for the one extra mlScoreMin field it has beyond this shape.
@@ -506,7 +506,7 @@ bool trackPasses(T const& track, TrackSelectionValues const& sel)
506506
// as-is for Xi/Omega, Sigma/SigmaPlus, and D0/Lc candidates too (see the comment on
507507
// V0SelectionValues above).
508508
template <typename T>
509-
bool lambdaPasses(T const& v0, V0SelectionValues const& sel)
509+
bool signedV0Passes(T const& v0, V0SelectionValues const& sel)
510510
{
511511
if (sel.sign != 0 && ((sel.sign > 0) != (v0.signedPt() > 0.f))) {
512512
return false;
@@ -527,7 +527,7 @@ bool lambdaPasses(T const& v0, V0SelectionValues const& sel)
527527
return (v0.mask() & sel.mask) == sel.mask;
528528
}
529529

530-
// mirrors MAKE_SIGMAPLUSPCM_PARTITION(selection) in Core/partitions.h -- lambdaPasses() above
530+
// mirrors MAKE_SIGMAPLUSPCM_PARTITION(selection) in Core/partitions.h -- signedV0Passes() above
531531
// plus the one extra mlScoreMin check.
532532
template <typename T>
533533
bool kinkPcmPasses(T const& kink, KinkPcmSelectionValues const& sel)
@@ -654,7 +654,7 @@ using CollisionTagBitset = std::bitset<MaxTagBits>;
654654

655655
// true if at least `needed` entries in `range` satisfy `passes(entry, sel)`. The one primitive
656656
// every per-collision tagging check below is built from; a new particle type only ever needs a
657-
// new `passes` function (trackPasses/lambdaPasses/k0shortPasses above are examples), never a new
657+
// new `passes` function (trackPasses/signedV0Passes/k0shortPasses above are examples), never a new
658658
// copy of this loop.
659659
template <typename Range, typename Selection, typename PassesFn>
660660
inline bool hasAtLeast(Range const& range, Selection const& sel, PassesFn const& passes, int needed = 1)

0 commit comments

Comments
 (0)