Skip to content

Commit c0f6781

Browse files
authored
[PWGLF] increase counter only for (physical) primary particles (#12135)
1 parent b3b74b3 commit c0f6781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PWGLF/TableProducer/Nuspex/ebyeMaker.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ struct EbyeMaker {
853853
if ((((mcPart.flags() & 0x8) || (mcPart.flags() & 0x2)) && (doprocessMcRun2 || doprocessMiniMcRun2)) || ((mcPart.flags() & 0x1) && !doprocessMiniMcRun2))
854854
continue;
855855
auto pdgCode = mcPart.pdgCode();
856-
if (std::abs(pdgCode) == PDG_t::kPiPlus || std::abs(pdgCode) == PDG_t::kElectron || std::abs(pdgCode) == PDG_t::kMuonMinus || std::abs(pdgCode) == PDG_t::kKPlus || std::abs(pdgCode) == PDG_t::kProton)
856+
if ((std::abs(pdgCode) == PDG_t::kPiPlus || std::abs(pdgCode) == PDG_t::kElectron || std::abs(pdgCode) == PDG_t::kMuonMinus || std::abs(pdgCode) == PDG_t::kKPlus || std::abs(pdgCode) == PDG_t::kProton) && mcPart.isPhysicalPrimary())
857857
nChPartGen++;
858858
if (std::abs(pdgCode) == PDG_t::kLambda0) {
859859
if (!mcPart.isPhysicalPrimary() && !mcPart.has_mothers())

0 commit comments

Comments
 (0)