@@ -1584,17 +1584,17 @@ struct StrangenessInJetsIons {
15841584 case kXiMinus :
15851585 if (particleOfInterestDict[ParticleOfInterest::kCascades ] || calculateFeeddownMatrix) {
15861586 registryMC.fill (HIST (" XiNeg_generated_MB" ), genMultiplicity, particle.pt ());
1587- if (hasReco) {
1588- registryMC. fill ( HIST ( " XiNeg_generated_w_reco_MB " ), genMultiplicity, particle. pt ());
1589- }
1587+ }
1588+ if (particleOfInterestDict[ParticleOfInterest:: kCascades ] && hasReco) {
1589+ registryMC. fill ( HIST ( " XiNeg_generated_w_reco_MB " ), genMultiplicity, particle. pt ());
15901590 }
15911591 break ;
15921592 case kXiPlusBar :
15931593 if (particleOfInterestDict[ParticleOfInterest::kCascades ] || calculateFeeddownMatrix) {
15941594 registryMC.fill (HIST (" XiPos_generated_MB" ), genMultiplicity, particle.pt ());
1595- if (hasReco) {
1596- registryMC. fill ( HIST ( " XiPos_generated_w_reco_MB " ), genMultiplicity, particle. pt ());
1597- }
1595+ }
1596+ if (particleOfInterestDict[ParticleOfInterest:: kCascades ] && hasReco) {
1597+ registryMC. fill ( HIST ( " XiPos_generated_w_reco_MB " ), genMultiplicity, particle. pt ());
15981598 }
15991599 break ;
16001600 case kOmegaMinus :
@@ -1775,30 +1775,30 @@ struct StrangenessInJetsIons {
17751775 continue ;
17761776 if (std::abs (motherPos.pdgCode ()) != kLambda0 )
17771777 continue ;
1778- if (std::abs (motherPos .eta ()) > 0.8 )
1778+ if (std::abs (motherBach .eta ()) > 0.8 )
17791779 continue ;
17801780
17811781 // Xi+
17821782 if (passedXiSelection (casc, pos, neg, bach, collision) && bach.sign () > 0 &&
1783- motherPos .pdgCode () == kXiPlusBar &&
1783+ motherBach .pdgCode () == kXiPlusBar &&
17841784 passedRapidityCut (casc.yXi (), configV0.rapidityMax )) {
17851785 registryMC.fill (HIST (" XiPos_reconstructed_MB_incl" ), multiplicity, casc.pt ());
17861786 }
17871787 // Xi-
17881788 if (passedXiSelection (casc, pos, neg, bach, collision) && bach.sign () < 0 &&
1789- motherPos .pdgCode () == kXiMinus &&
1789+ motherBach .pdgCode () == kXiMinus &&
17901790 passedRapidityCut (casc.yXi (), configV0.rapidityMax )) {
17911791 registryMC.fill (HIST (" XiNeg_reconstructed_MB_incl" ), multiplicity, casc.pt ());
17921792 }
17931793 // Omega+
17941794 if (passedOmegaSelection (casc, pos, neg, bach, collision) && bach.sign () > 0 &&
1795- motherPos .pdgCode () == kOmegaPlusBar &&
1795+ motherBach .pdgCode () == kOmegaPlusBar &&
17961796 passedRapidityCut (casc.yOmega (), configV0.rapidityMax )) {
17971797 registryMC.fill (HIST (" OmegaPos_reconstructed_MB_incl" ), multiplicity, casc.pt ());
17981798 }
17991799 // Omega-
18001800 if (passedOmegaSelection (casc, pos, neg, bach, collision) && bach.sign () < 0 &&
1801- motherPos .pdgCode () == kOmegaMinus &&
1801+ motherBach .pdgCode () == kOmegaMinus &&
18021802 passedRapidityCut (casc.yOmega (), configV0.rapidityMax )) {
18031803 registryMC.fill (HIST (" OmegaNeg_reconstructed_MB_incl" ), multiplicity, casc.pt ());
18041804 }
@@ -1807,11 +1807,11 @@ struct StrangenessInJetsIons {
18071807 continue ;
18081808
18091809 // Rapidity generated particle
1810- double yGen = motherPos .y ();
1810+ double yGen = motherBach .y ();
18111811
18121812 // Histograms below are filled only for PhysicalPrimary particles
18131813 // Xi+ (primary)
1814- if (motherPos .pdgCode () == kXiPlusBar ) {
1814+ if (motherBach .pdgCode () == kXiPlusBar ) {
18151815 if (passedRapidityCut (yGen, configV0.rapidityMax )) {
18161816 registryMC.fill (HIST (" XiPos_gen_recoEvent_MB" ), multiplicity, casc.pt ());
18171817 }
0 commit comments