@@ -150,6 +150,15 @@ struct deltaAnalysis {
150150
151151 histos.add (" hDeltaZeroInvMassGen" , " Invariant mass distribution for #Delta^{0} - generated" , kTH2F , {ptAxis, deltaZeroAxis});
152152 histos.add (" hAntiDeltaZeroInvMassGen" , " Invariant mass distribution for #bar{#Delta^{0}} - generated" , kTH2F , {ptAxis, antiDeltaZeroAxis});
153+
154+ histos.add (" hRecProtonAntiDeltaPlusPlus" , " Proton from #bar{#Delta^{++}}" , kTH1F , {ptAxis});
155+ histos.add (" hRecProtonDeltaPlusPlus" , " Proton from #Delta^{++}" , kTH1F , {ptAxis});
156+ histos.add (" hRecProtonAntiDeltaZero" , " Proton from #bar{#Delta^{0}}" , kTH1F , {ptAxis});
157+ histos.add (" hRecProtonDeltaZero" , " Proton from #Delta^{0}" , kTH1F , {ptAxis});
158+ histos.add (" hRecPionAntiDeltaPlusPlus" , " Pion from #bar{#Delta^{++}}" , kTH1F , {ptAxis});
159+ histos.add (" hRecPionDeltaPlusPlus" , " Pion from #Delta^{++}" , kTH1F , {ptAxis});
160+ histos.add (" hRecPionAntiDeltaZero" , " Pion from #bar{#Delta^{0}}" , kTH1F , {ptAxis});
161+ histos.add (" hRecPionDeltaZero" , " Pion from #Delta^{0}" , kTH1F , {ptAxis});
153162 }
154163 }
155164
@@ -405,6 +414,56 @@ struct deltaAnalysis {
405414 auto perColTracks = tracks.sliceBy (perColMC, collIdx);
406415 perColTracks.bindExternalIndices (&tracks);
407416
417+ for (auto & t0 : perColTracks) {
418+
419+ if (!selectionTrack (t0)) {
420+ continue ;
421+ }
422+ if (!t0.has_mcParticle ()) {
423+ continue ;
424+ }
425+
426+ const auto mcTrack = t0.mcParticle ();
427+
428+ if (std::abs (mcTrack.pdgCode ()) == protonPDG) {
429+ if (selectionPIDProton (t0)) {
430+ for (auto & motherTrackProton : mcTrack.mothers_as <aod::McParticles>()) {
431+ if (std::abs (motherTrackProton.pdgCode ()) == deltaPlusPlusPDG) {
432+ if (t0.sign () < 0 ) {
433+ histos.fill (HIST (" hRecProtonAntiDeltaPlusPlus" ), t0.pt ());
434+ } else {
435+ histos.fill (HIST (" hRecProtonDeltaPlusPlus" ), t0.pt ());
436+ }
437+ } else if (std::abs (motherTrackProton.pdgCode ()) == deltaZeroPDG) {
438+ if (t0.sign () < 0 ) {
439+ histos.fill (HIST (" hRecProtonAntiDeltaZero" ), t0.pt ());
440+ } else {
441+ histos.fill (HIST (" hRecProtonDeltaZero" ), t0.pt ());
442+ }
443+ }
444+ }
445+ }
446+ } else if (std::abs (mcTrack.pdgCode ()) == pionPDG) {
447+ if (selectionPIDPion (t0)) {
448+ for (auto & motherTrackPion : mcTrack.mothers_as <aod::McParticles>()) {
449+ if (std::abs (motherTrackPion.pdgCode ()) == deltaPlusPlusPDG) {
450+ if (t0.sign () < 0 ) {
451+ histos.fill (HIST (" hRecPionAntiDeltaPlusPlus" ), t0.pt ());
452+ } else {
453+ histos.fill (HIST (" hRecPionDeltaPlusPlus" ), t0.pt ());
454+ }
455+ } else if (std::abs (motherTrackPion.pdgCode ()) == deltaZeroPDG) {
456+ if (t0.sign () < 0 ) {
457+ histos.fill (HIST (" hRecPionDeltaZero" ), t0.pt ());
458+ } else {
459+ histos.fill (HIST (" hRecPionAntiDeltaZero" ), t0.pt ());
460+ }
461+ }
462+ }
463+ }
464+ }
465+ }
466+
408467 for (auto & [t0, t1] : o2::soa::combinations (o2::soa::CombinationsFullIndexPolicy (perColTracks, perColTracks))) {
409468
410469 if (t0.globalIndex () == t1.globalIndex ()) {
0 commit comments