Skip to content

Commit 5f936e5

Browse files
Update PWGHF/D2H/Tasks/taskLcToK0sP.cxx
Co-authored-by: Vít Kučera <[email protected]>
1 parent de20919 commit 5f936e5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PWGHF/D2H/Tasks/taskLcToK0sP.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,7 @@ struct HfTaskLcToK0sP {
557557

558558
if (particle.originMcGen() == RecoDecay::OriginType::Prompt) {
559559
registry.fill(HIST("MC/Gen/hPtCandGenPrompt"), ptCand);
560-
}
561-
if (particle.originMcGen() == RecoDecay::OriginType::NonPrompt) {
560+
} else if (particle.originMcGen() == RecoDecay::OriginType::NonPrompt) {
562561
registry.fill(HIST("MC/Gen/hPtCandGenNonPrompt"), ptCand);
563562
}
564563
}

0 commit comments

Comments
 (0)