Skip to content

Commit d02562c

Browse files
authored
Update hStrangeCorrelation.cxx
1 parent 5103630 commit d02562c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,11 +2807,8 @@ struct HStrangeCorrelation {
28072807
histos.fill(HIST("Generated/hPositive") + HIST(Particlenames[Index]), mcParticle.pt(), mcParticle.eta(), 1);
28082808
else if (i == IndexPion && mcParticle.pdgCode() < Neutral)
28092809
histos.fill(HIST("Generated/hNegative") + HIST(Particlenames[Index]), mcParticle.pt(), mcParticle.eta(), 1);
2810-
else {
2811-
if (mcParticle.pdgCode() == PdgCodes[i]) {
2812-
histos.fill(HIST("Generated/h") + HIST(Particlenames[Index]), mcParticle.pt(), mcParticle.eta(), 1);
2813-
}
2814-
}
2810+
else if (mcParticle.pdgCode() == PdgCodes[i])
2811+
histos.fill(HIST("Generated/h") + HIST(Particlenames[Index]), mcParticle.pt(), mcParticle.eta(), 1);
28152812
});
28162813
}
28172814
if (collisions.size() < 1)

0 commit comments

Comments
 (0)