Skip to content

Commit f6b93e9

Browse files
authored
[PWGHF] correlatorLcScHadrons: Fix TOF condition and improve candidate check logic (#17201)
1 parent f13ec13 commit f6b93e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ struct HfCorrelatorLcScHadrons {
644644
// We evaluate both applicable hypotheses based on charge sign and pick the best match.
645645
double tofLa = (pid > 0) ? v0.tofNSigmaALaPi() : v0.tofNSigmaLaPi();
646646

647-
passTOF = tofLa > cfgV0.cfgV0DaughPIDCutsTOFPi;
647+
passTOF = std::abs(tofLa) > cfgV0.cfgV0DaughPIDCutsTOFPi;
648648
} else {
649649
// Fallback to standard track TOF
650650
passTOF = std::abs(track.tofNSigmaPi()) > cfgV0.cfgV0DaughPIDCutsTOFPi;
@@ -836,7 +836,7 @@ struct HfCorrelatorLcScHadrons {
836836
auto posTrackV0 = v0.template posTrack_as<TrackType>();
837837
auto negTrackV0 = v0.template negTrack_as<TrackType>();
838838

839-
if ((candidate.prong0Id() == posTrackV0.globalIndex()) || (candidate.prong1Id() == posTrackV0.globalIndex()) || (candidate.prong2Id() == posTrackV0.globalIndex() || (candidate.prong0Id() == negTrackV0.globalIndex()) || (candidate.prong1Id() == negTrackV0.globalIndex()) || (candidate.prong2Id() == negTrackV0.globalIndex()))) {
839+
if ((candidate.prong0Id() == posTrackV0.globalIndex()) || (candidate.prong1Id() == posTrackV0.globalIndex()) || (candidate.prong2Id() == posTrackV0.globalIndex()) || (candidate.prong0Id() == negTrackV0.globalIndex()) || (candidate.prong1Id() == negTrackV0.globalIndex()) || (candidate.prong2Id() == negTrackV0.globalIndex())) {
840840
if (!cfgCharmCand.storeAutoCorrelationFlag) {
841841
continue;
842842
}

0 commit comments

Comments
 (0)