Skip to content

Commit ffa39a6

Browse files
committed
fix: EvaluateObservable instead of setBitmask in order for the selection to be passed
1 parent ea9ad1e commit ffa39a6

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

PWGCF/Femto/Core/cascadeBuilder.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <array>
3434
#include <cmath>
3535
#include <cstdint>
36-
#include <limits>
3736
#include <string>
3837
#include <unordered_map>
3938
#include <vector>
@@ -342,8 +341,8 @@ class CascadeSelection : public baseselection::BaseSelection<float, o2::analysis
342341
this->evaluateObservable(kBachelorTofPion, bachelor.tofNSigmaPi());
343342
this->evaluateObservable(kBachelorTofKaon, bachelor.tofNSigmaKa());
344343
} else if (mKeepTracksWithoutTof) {
345-
this->setBitmask(kBachelorTofPion, 0);
346-
this->setBitmask(kBachelorTofKaon, 0);
344+
this->evaluateObservable(kBachelorTofPion, 0);
345+
this->evaluateObservable(kBachelorTofKaon, 0);
347346
}
348347

349348
// depending on the charge, we check lambda or antilambda hypothesis
@@ -353,25 +352,25 @@ class CascadeSelection : public baseselection::BaseSelection<float, o2::analysis
353352
if (posDaughter.hasTOF()) {
354353
this->evaluateObservable(kPosDauTof, posDaughter.tofNSigmaPr());
355354
} else if (mKeepTracksWithoutTof) {
356-
this->setBitmask(kPosDauTof, 0);
355+
this->evaluateObservable(kPosDauTof, 0);
357356
}
358357
if (negDaughter.hasTOF()) {
359358
this->evaluateObservable(kNegDauTof, negDaughter.tofNSigmaPi());
360359
} else if (mKeepTracksWithoutTof) {
361-
this->setBitmask(kNegDauTof, 0);
360+
this->evaluateObservable(kNegDauTof, 0);
362361
}
363362
} else if (cascade.sign() > 0) {
364363
this->evaluateObservable(kPosDauTpc, posDaughter.tpcNSigmaPi());
365364
this->evaluateObservable(kNegDauTpc, negDaughter.tpcNSigmaPr());
366365
if (posDaughter.hasTOF()) {
367366
this->evaluateObservable(kPosDauTof, posDaughter.tofNSigmaPi());
368367
} else if (mKeepTracksWithoutTof) {
369-
this->setBitmask(kPosDauTof, 0);
368+
this->evaluateObservable(kPosDauTof, 0);
370369
}
371370
if (negDaughter.hasTOF()) {
372371
this->evaluateObservable(kNegDauTof, negDaughter.tofNSigmaPr());
373372
} else if (mKeepTracksWithoutTof) {
374-
this->setBitmask(kNegDauTof, 0);
373+
this->evaluateObservable(kNegDauTof, 0);
375374
}
376375
} else {
377376
LOG(warn) << "Encountered Cascade candidate with 0 charge";

PWGCF/Femto/Core/v0Builder.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <array>
3434
#include <cmath>
3535
#include <cstdint>
36-
#include <limits>
3736
#include <string>
3837
#include <unordered_map>
3938
#include <vector>
@@ -353,15 +352,15 @@ class V0Selection : public baseselection::BaseSelection<float, datatypes::V0Mask
353352
this->evaluateObservable(kPosDaughTofPion, posDaughter.tofNSigmaPi());
354353
this->evaluateObservable(kPosDaughTofProton, posDaughter.tofNSigmaPr());
355354
} else if (mKeepTracksWithoutTof) {
356-
this->setBitmask(kPosDaughTofPion, 0);
357-
this->setBitmask(kPosDaughTofProton, 0);
355+
this->evaluateObservable(kBachelorTofPion, 0);
356+
this->evaluateObservable(kPosDaughTofProton, 0);
358357
}
359358
if (negDaughter.hasTOF()) {
360359
this->evaluateObservable(kNegDaughTofPion, negDaughter.tofNSigmaPi());
361360
this->evaluateObservable(kNegDaughTofProton, negDaughter.tofNSigmaPr());
362361
} else if (mKeepTracksWithoutTof) {
363-
this->setBitmask(kNegDaughTofPion, 0);
364-
this->setBitmask(kNegDaughTofProton, 0);
362+
this->evaluateObservable(kNegDaughTofPion, 0);
363+
this->evaluateObservable(kNegDaughTofProton, 0);
365364
}
366365

367366
this->assembleBitmask<SelectionHistName>();

0 commit comments

Comments
 (0)