Skip to content

Commit 00201c3

Browse files
Apply TOF only if available
1 parent ef10e98 commit 00201c3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,34 +1073,34 @@ struct derivedlambdakzeroanalysis {
10731073

10741074
// TOF PID in DeltaT
10751075
// Positive track
1076-
if (std::fabs(v0.posTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)
1076+
if (!posTrackExtra.hasTOF() || std::fabs(v0.posTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)
10771077
BITSET(bitMap, selTOFDeltaTPositiveProtonLambda);
1078-
if (std::fabs(v0.posTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)
1078+
if (!posTrackExtra.hasTOF() || std::fabs(v0.posTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)
10791079
BITSET(bitMap, selTOFDeltaTPositivePionLambda);
1080-
if (std::fabs(v0.posTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)
1080+
if (!posTrackExtra.hasTOF() || std::fabs(v0.posTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)
10811081
BITSET(bitMap, selTOFDeltaTPositivePionK0Short);
10821082
// Negative track
1083-
if (std::fabs(v0.negTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)
1083+
if (!negTrackExtra.hasTOF() || std::fabs(v0.negTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)
10841084
BITSET(bitMap, selTOFDeltaTNegativeProtonLambda);
1085-
if (std::fabs(v0.negTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)
1085+
if (!negTrackExtra.hasTOF() || std::fabs(v0.negTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)
10861086
BITSET(bitMap, selTOFDeltaTNegativePionLambda);
1087-
if (std::fabs(v0.negTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)
1087+
if (!negTrackExtra.hasTOF() || std::fabs(v0.negTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)
10881088
BITSET(bitMap, selTOFDeltaTNegativePionK0Short);
10891089

10901090
// TOF PID in NSigma
10911091
// Positive track
1092-
if (std::fabs(v0.tofNSigmaLaPr()) < v0Selections.tofPidNsigmaCutLaPr)
1092+
if (!posTrackExtra.hasTOF() || std::fabs(v0.tofNSigmaLaPr()) < v0Selections.tofPidNsigmaCutLaPr)
10931093
BITSET(bitMap, selTOFNSigmaPositiveProtonLambda);
1094-
if (std::fabs(v0.tofNSigmaALaPi()) < v0Selections.tofPidNsigmaCutLaPi)
1094+
if (!posTrackExtra.hasTOF() || std::fabs(v0.tofNSigmaALaPi()) < v0Selections.tofPidNsigmaCutLaPi)
10951095
BITSET(bitMap, selTOFNSigmaPositivePionLambda);
1096-
if (std::fabs(v0.tofNSigmaK0PiPlus()) < v0Selections.tofPidNsigmaCutK0Pi)
1096+
if (!posTrackExtra.hasTOF() || std::fabs(v0.tofNSigmaK0PiPlus()) < v0Selections.tofPidNsigmaCutK0Pi)
10971097
BITSET(bitMap, selTOFNSigmaPositivePionK0Short);
10981098
// Negative track
1099-
if (std::fabs(v0.tofNSigmaALaPr()) < v0Selections.tofPidNsigmaCutLaPr)
1099+
if (!negTrackExtra.hasTOF() || std::fabs(v0.tofNSigmaALaPr()) < v0Selections.tofPidNsigmaCutLaPr)
11001100
BITSET(bitMap, selTOFNSigmaNegativeProtonLambda);
1101-
if (std::fabs(v0.tofNSigmaLaPi()) < v0Selections.tofPidNsigmaCutLaPi)
1101+
if (!negTrackExtra.hasTOF() || std::fabs(v0.tofNSigmaLaPi()) < v0Selections.tofPidNsigmaCutLaPi)
11021102
BITSET(bitMap, selTOFNSigmaNegativePionLambda);
1103-
if (std::fabs(v0.tofNSigmaK0PiMinus()) < v0Selections.tofPidNsigmaCutK0Pi)
1103+
if (!negTrackExtra.hasTOF() || std::fabs(v0.tofNSigmaK0PiMinus()) < v0Selections.tofPidNsigmaCutK0Pi)
11041104
BITSET(bitMap, selTOFNSigmaNegativePionK0Short);
11051105

11061106
// ITS only tag

0 commit comments

Comments
 (0)