Skip to content

Commit a4b8e49

Browse files
committed
Fix fill of Xi MB histograms in MC gen
1 parent d462961 commit a4b8e49

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎PWGLF/Tasks/Strangeness/strangenessInJetsIons.cxx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,17 +1582,17 @@ struct StrangenessInJetsIons {
15821582
}
15831583
break;
15841584
case kXiMinus:
1585-
if (particleOfInterestDict[ParticleOfInterest::kCascades]) {
1585+
if (particleOfInterestDict[ParticleOfInterest::kCascades] || calculateFeeddownMatrix) {
15861586
registryMC.fill(HIST("XiNeg_generated_MB"), genMultiplicity, particle.pt());
1587-
if (hasReco) {
1587+
if (hasReco && particleOfInterestDict[ParticleOfInterest::kCascades]) {
15881588
registryMC.fill(HIST("XiNeg_generated_w_reco_MB"), genMultiplicity, particle.pt());
15891589
}
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) {
1595+
if (hasReco && particleOfInterestDict[ParticleOfInterest::kCascades]) {
15961596
registryMC.fill(HIST("XiPos_generated_w_reco_MB"), genMultiplicity, particle.pt());
15971597
}
15981598
}

0 commit comments

Comments
 (0)