Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions PWGLF/Tasks/Nuspex/spectraTOFLight.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ struct SpectraTOFLight {
histos.add(hpt_numtof_str[i].data(), pTCharge[i], kTHnSparseD, {ptAxis, multAxis, dcaXyAxis});
histos.add(hpt_numtof_mat[i].data(), pTCharge[i], kTHnSparseD, {ptAxis, multAxis, dcaXyAxis});

histos.add(hpt_den_prm_goodev[i].data(), pTCharge[i], kTH3D, {ptAxis, multAxis, etaAxis});
histos.add(hpt_den_prm_goodev[i].data(), pTCharge[i], kTH2D, {ptAxis, multAxis});

} else {
histos.add(hpt_num_prm[i].data(), pTCharge[i], kTH2D, {ptAxis, dcaXyAxis});
Expand All @@ -387,7 +387,7 @@ struct SpectraTOFLight {
histos.add(hpt_den_str[i].data(), pTCharge[i], kTH1D, {ptAxis});
histos.add(hpt_den_mat[i].data(), pTCharge[i], kTH1D, {ptAxis});

histos.add(hpt_den_prm_goodev[i].data(), pTCharge[i], kTH2D, {ptAxis, etaAxis});
histos.add(hpt_den_prm_goodev[i].data(), pTCharge[i], kTH1D, {ptAxis});
}
histos.add(hpt_den_prm_mcgoodev[i].data(), pTCharge[i], kTH2D, {ptAxis, multAxis});
if (enableDCAxyzHistograms) {
Expand Down Expand Up @@ -860,7 +860,8 @@ struct SpectraTOFLight {
return; // Skips processing if no corresponding MC collision is found (rare case!)
}

const float multiplicity = getMultiplicity(collision);
const auto& mcCollision = collision.mcCollision_as<GenMCCollisions>();
const float multiplicity = getMultiplicityMC(mcCollision);

if (mcParticle.pdgCode() != PDGs[i]) {
return;
Expand Down Expand Up @@ -1032,9 +1033,9 @@ struct SpectraTOFLight {
if (mcParticle.isPhysicalPrimary()) {
if (isEventSelected<false, false>(collision)) {
if (includeCentralityMC) {
histos.fill(HIST(hpt_den_prm_goodev[i]), mcParticle.pt(), multiplicity, mcParticle.eta());
histos.fill(HIST(hpt_den_prm_goodev[i]), mcParticle.pt(), multiplicity);
} else {
histos.fill(HIST(hpt_den_prm_goodev[i]), mcParticle.pt(), mcParticle.eta());
histos.fill(HIST(hpt_den_prm_goodev[i]), mcParticle.pt());
}
}
}
Expand Down
Loading