Skip to content

Commit 884f0fb

Browse files
committed
[PWGLF] Minor bugfixes for QA histogram filling
1 parent ef7cc04 commit 884f0fb

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

PWGLF/TableProducer/Strangeness/strangenesstofpid.cxx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,16 +1397,6 @@ struct strangenesstofpid {
13971397
histos.fill(HIST("hV0NegativeBCShift"), deltaTimeNeg);
13981398
}
13991399

1400-
if (pTof.hasTOF) {
1401-
histos.fill(HIST("hTOFSignalPositive"), pTof.tofSignal);
1402-
histos.fill(HIST("h2dTOFSignalPositive"), pTof.tofSignal, deltaTimePos);
1403-
}
1404-
1405-
if (nTof.hasTOF) {
1406-
histos.fill(HIST("hTOFSignalNegative"), nTof.tofSignal);
1407-
histos.fill(HIST("h2dTOFSignalNegative"), nTof.tofSignal, deltaTimeNeg);
1408-
}
1409-
14101400
pTof.collisionId = pTra.collisionId();
14111401
pTof.hasITS = pTra.hasITS();
14121402
pTof.hasTPC = pTra.hasTPC();
@@ -1429,6 +1419,16 @@ struct strangenesstofpid {
14291419
nTof.tpcNSigmaPi = nTra.tpcNSigmaPi();
14301420
nTof.tpcNSigmaPr = nTra.tpcNSigmaPr();
14311421

1422+
if (pTof.hasTOF) {
1423+
histos.fill(HIST("hTOFSignalPositive"), pTof.tofSignal);
1424+
histos.fill(HIST("h2dTOFSignalPositive"), pTof.tofSignal, deltaTimePos);
1425+
}
1426+
1427+
if (nTof.hasTOF) {
1428+
histos.fill(HIST("hTOFSignalNegative"), nTof.tofSignal);
1429+
histos.fill(HIST("h2dTOFSignalNegative"), nTof.tofSignal, deltaTimeNeg);
1430+
}
1431+
14321432
v0TofInfo v0tof = calculateTofInfoV0(collisions, V0.collisionId(), V0, pTof, nTof);
14331433

14341434
if (doNSigmas) {
@@ -1490,7 +1490,7 @@ struct strangenesstofpid {
14901490
auto bcBach = bcs.rawIteratorAt(collisionBach.bcId());
14911491
const int64_t deltaBcBach = bcBach.globalBC() - bcV0.globalBC();
14921492
deltaTimeBach = o2::constants::lhc::LHCBunchSpacingNS * deltaBcBach * 1000.0f;
1493-
histos.fill(HIST("hCascadeNegativeBCShift"), deltaTimeBach);
1493+
histos.fill(HIST("hCascadeBachelorBCShift"), deltaTimeBach);
14941494
}
14951495

14961496
pTof.collisionId = pTra.collisionId();

0 commit comments

Comments
 (0)