Skip to content

Commit 82f0069

Browse files
Switch from primary hasTOF() to strangeness hasTOF()
1 parent bd9d89f commit 82f0069

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,68 +1315,68 @@ struct derivedlambdakzeroanalysis {
13151315
// TOF PID in DeltaT
13161316
// Positive track
13171317
if (v0Selections.requirePosHasTOF) {
1318-
if (posTrackExtra.hasTOF() && std::fabs(v0.posTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)
1318+
if (v0.positiveHasTOF() && std::fabs(v0.posTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)
13191319
BITSET(bitMap, selTOFDeltaTPositiveProtonLambda);
1320-
if (posTrackExtra.hasTOF() && std::fabs(v0.posTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)
1320+
if (v0.positiveHasTOF() && std::fabs(v0.posTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)
13211321
BITSET(bitMap, selTOFDeltaTPositivePionLambda);
1322-
if (posTrackExtra.hasTOF() && std::fabs(v0.posTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)
1322+
if (v0.positiveHasTOF() && std::fabs(v0.posTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)
13231323
BITSET(bitMap, selTOFDeltaTPositivePionK0Short);
13241324
} else { // only apply TOF requirement if available
1325-
if (!posTrackExtra.hasTOF() || std::fabs(v0.posTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)
1325+
if (!v0.positiveHasTOF() || std::fabs(v0.posTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)
13261326
BITSET(bitMap, selTOFDeltaTPositiveProtonLambda);
1327-
if (!posTrackExtra.hasTOF() || std::fabs(v0.posTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)
1327+
if (!v0.positiveHasTOF() || std::fabs(v0.posTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)
13281328
BITSET(bitMap, selTOFDeltaTPositivePionLambda);
1329-
if (!posTrackExtra.hasTOF() || std::fabs(v0.posTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)
1329+
if (!v0.positiveHasTOF() || std::fabs(v0.posTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)
13301330
BITSET(bitMap, selTOFDeltaTPositivePionK0Short);
13311331
}
13321332
// Negative track
13331333
if (v0Selections.requireNegHasTOF) {
1334-
if (negTrackExtra.hasTOF() && std::fabs(v0.negTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)
1334+
if (v0.negativeHasTOF() && std::fabs(v0.negTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)
13351335
BITSET(bitMap, selTOFDeltaTNegativeProtonLambda);
1336-
if (negTrackExtra.hasTOF() && std::fabs(v0.negTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)
1336+
if (v0.negativeHasTOF() && std::fabs(v0.negTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)
13371337
BITSET(bitMap, selTOFDeltaTNegativePionLambda);
1338-
if (negTrackExtra.hasTOF() && std::fabs(v0.negTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)
1338+
if (v0.negativeHasTOF() && std::fabs(v0.negTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)
13391339
BITSET(bitMap, selTOFDeltaTNegativePionK0Short);
13401340
} else { // only apply TOF requirement if available
1341-
if (!negTrackExtra.hasTOF() || std::fabs(v0.negTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)
1341+
if (!v0.negativeHasTOF() || std::fabs(v0.negTOFDeltaTLaPr()) < v0Selections.maxDeltaTimeProton)
13421342
BITSET(bitMap, selTOFDeltaTNegativeProtonLambda);
1343-
if (!negTrackExtra.hasTOF() || std::fabs(v0.negTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)
1343+
if (!v0.negativeHasTOF() || std::fabs(v0.negTOFDeltaTLaPi()) < v0Selections.maxDeltaTimePion)
13441344
BITSET(bitMap, selTOFDeltaTNegativePionLambda);
1345-
if (!negTrackExtra.hasTOF() || std::fabs(v0.negTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)
1345+
if (!v0.negativeHasTOF() || std::fabs(v0.negTOFDeltaTK0Pi()) < v0Selections.maxDeltaTimePion)
13461346
BITSET(bitMap, selTOFDeltaTNegativePionK0Short);
13471347
}
13481348

13491349
// TOF PID in NSigma
13501350
// Positive track
13511351
if (v0Selections.requirePosHasTOF) {
1352-
if (posTrackExtra.hasTOF() && std::fabs(v0.tofNSigmaLaPr()) < v0Selections.tofPidNsigmaCutLaPr)
1352+
if (v0.positiveHasTOF() && std::fabs(v0.tofNSigmaLaPr()) < v0Selections.tofPidNsigmaCutLaPr)
13531353
BITSET(bitMap, selTOFNSigmaPositiveProtonLambda);
1354-
if (posTrackExtra.hasTOF() && std::fabs(v0.tofNSigmaALaPi()) < v0Selections.tofPidNsigmaCutLaPi)
1354+
if (v0.positiveHasTOF() && std::fabs(v0.tofNSigmaALaPi()) < v0Selections.tofPidNsigmaCutLaPi)
13551355
BITSET(bitMap, selTOFNSigmaPositivePionLambda);
1356-
if (posTrackExtra.hasTOF() && std::fabs(v0.tofNSigmaK0PiPlus()) < v0Selections.tofPidNsigmaCutK0Pi)
1356+
if (v0.positiveHasTOF() && std::fabs(v0.tofNSigmaK0PiPlus()) < v0Selections.tofPidNsigmaCutK0Pi)
13571357
BITSET(bitMap, selTOFNSigmaPositivePionK0Short);
13581358
} else { // only apply TOF requirement if available
1359-
if (!posTrackExtra.hasTOF() || std::fabs(v0.tofNSigmaLaPr()) < v0Selections.tofPidNsigmaCutLaPr)
1359+
if (!v0.positiveHasTOF() || std::fabs(v0.tofNSigmaLaPr()) < v0Selections.tofPidNsigmaCutLaPr)
13601360
BITSET(bitMap, selTOFNSigmaPositiveProtonLambda);
1361-
if (!posTrackExtra.hasTOF() || std::fabs(v0.tofNSigmaALaPi()) < v0Selections.tofPidNsigmaCutLaPi)
1361+
if (!v0.positiveHasTOF() || std::fabs(v0.tofNSigmaALaPi()) < v0Selections.tofPidNsigmaCutLaPi)
13621362
BITSET(bitMap, selTOFNSigmaPositivePionLambda);
1363-
if (!posTrackExtra.hasTOF() || std::fabs(v0.tofNSigmaK0PiPlus()) < v0Selections.tofPidNsigmaCutK0Pi)
1363+
if (!v0.positiveHasTOF() || std::fabs(v0.tofNSigmaK0PiPlus()) < v0Selections.tofPidNsigmaCutK0Pi)
13641364
BITSET(bitMap, selTOFNSigmaPositivePionK0Short);
13651365
}
13661366
// Negative track
13671367
if (v0Selections.requireNegHasTOF) {
1368-
if (negTrackExtra.hasTOF() && std::fabs(v0.tofNSigmaALaPr()) < v0Selections.tofPidNsigmaCutLaPr)
1368+
if (v0.negativeHasTOF() && std::fabs(v0.tofNSigmaALaPr()) < v0Selections.tofPidNsigmaCutLaPr)
13691369
BITSET(bitMap, selTOFNSigmaNegativeProtonLambda);
1370-
if (negTrackExtra.hasTOF() && std::fabs(v0.tofNSigmaLaPi()) < v0Selections.tofPidNsigmaCutLaPi)
1370+
if (v0.negativeHasTOF() && std::fabs(v0.tofNSigmaLaPi()) < v0Selections.tofPidNsigmaCutLaPi)
13711371
BITSET(bitMap, selTOFNSigmaNegativePionLambda);
1372-
if (negTrackExtra.hasTOF() && std::fabs(v0.tofNSigmaK0PiMinus()) < v0Selections.tofPidNsigmaCutK0Pi)
1372+
if (v0.negativeHasTOF() && std::fabs(v0.tofNSigmaK0PiMinus()) < v0Selections.tofPidNsigmaCutK0Pi)
13731373
BITSET(bitMap, selTOFNSigmaNegativePionK0Short);
13741374
} else { // only apply TOF requirement if available
1375-
if (!negTrackExtra.hasTOF() || std::fabs(v0.tofNSigmaALaPr()) < v0Selections.tofPidNsigmaCutLaPr)
1375+
if (!v0.negativeHasTOF() || std::fabs(v0.tofNSigmaALaPr()) < v0Selections.tofPidNsigmaCutLaPr)
13761376
BITSET(bitMap, selTOFNSigmaNegativeProtonLambda);
1377-
if (!negTrackExtra.hasTOF() || std::fabs(v0.tofNSigmaLaPi()) < v0Selections.tofPidNsigmaCutLaPi)
1377+
if (!v0.negativeHasTOF() || std::fabs(v0.tofNSigmaLaPi()) < v0Selections.tofPidNsigmaCutLaPi)
13781378
BITSET(bitMap, selTOFNSigmaNegativePionLambda);
1379-
if (!negTrackExtra.hasTOF() || std::fabs(v0.tofNSigmaK0PiMinus()) < v0Selections.tofPidNsigmaCutK0Pi)
1379+
if (!v0.negativeHasTOF() || std::fabs(v0.tofNSigmaK0PiMinus()) < v0Selections.tofPidNsigmaCutK0Pi)
13801380
BITSET(bitMap, selTOFNSigmaNegativePionK0Short);
13811381
}
13821382

0 commit comments

Comments
 (0)