You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto PDGPaticle = std::abs(particleMother.pdgCode());
1076
+
if (
1077
+
(PDGParticleIMother / 100 == 5 || // b mesons
1078
+
PDGParticleIMother / 1000 == 5) // b baryons
1079
+
) {
1080
+
return OriginType::NonPrompt; // beauty
1081
+
}
1082
+
if (
1083
+
(PDGParticleIMother / 100 == 4 || // c mesons
1084
+
PDGParticleIMother / 1000 == 4) // c baryons
1085
+
) {
1086
+
return OriginType::Prompt; // charm
1087
+
}
1088
+
break;
1089
+
}
1090
+
}
1091
+
1092
+
for (auto iMother = particleMother.mothersIds().front(); iMother <= particleMother.mothersIds().back(); ++iMother) { // loop over the mother particles of the analysed particle
1093
+
if (std::find(arrayIdsStage.begin(), arrayIdsStage.end(), iMother) != arrayIdsStage.end()) { // if a mother is still present in the vector, do not check it again
1094
+
continue;
1095
+
}
1096
+
auto mother = particlesMC.rawIteratorAt(iMother - particlesMC.offset());
1097
+
// Check status code
1098
+
auto motherStatusCode = std::abs(mother.getGenStatusCode());
1099
+
auto PDGParticleIMother = std::abs(mother.pdgCode()); // PDG code of the mother
1100
+
// Check mother's PDG code.
1101
+
// printf("getMother: ");
1102
+
// for (int i = stage; i < 0; i++) // Indent to make the tree look nice.
0 commit comments