Skip to content

Commit 2e2a07e

Browse files
authored
Update nucleitpcpbpb.cxx
1 parent 708f530 commit 2e2a07e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

PWGLF/Tasks/Nuspex/nucleitpcpbpb.cxx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,16 @@ struct NucleitpcPbPb {
742742
histomc.fill(HIST("hNumerEffAcc"), i, ptReco, matchedMCParticle.y(), collision.centFT0C(), particleAnti, decayType);
743743
}
744744

745+
float ptTOF = -1.0; // Default: no TOF
746+
if (track.hasTOF()) {
747+
ptTOF = ptReco;
748+
}
749+
750+
if (cfgTrackPIDsettings2->get(i, "fillsparsh") == 1) {
751+
histomc.fill(HIST("hSpectramc"), i, particleAnti, collision.centFT0C(),
752+
ptReco, ptTOF);
753+
}
754+
745755
histos.fill(HIST("Tpcsignal"), getRigidity(track) * track.sign(), track.tpcSignal());
746756

747757
// Fill the requested histograms

0 commit comments

Comments
 (0)