Skip to content
Snippets Groups Projects

Fixed for SingleParticleGun, the truth daughters info. Needs to be verified on Powheg

Merged Gregory James Ottino requested to merge TruthDaughterInfoFix into master
1 file
+ 7
4
Compare changes
  • Side-by-side
  • Inline
@@ -188,10 +188,13 @@ namespace TruthUtils {
if (daughter == NULL) {
continue;
}
if (abs(daughter->pdgId()) == 321 || abs(daughter->pdgId()) == 211 || abs(daughter->pdgId()) == 111) {
resultsVec.push_back(daughter);
} else if (daughter->status() == 1) {
continue;
if (daughter->status() == 1 && daughter->nChildren() >0){
if(abs(daughter->pdgId())==3122)
resultsVec.push_back(daughter);
std::vector<const xAOD::TruthParticle *> resultsVecTmp;
resultsVecTmp = findStatusOneChildren(daughter);
resultsVec.insert(resultsVec.end(), resultsVecTmp.begin(), resultsVecTmp.end());
} else {
std::vector<const xAOD::TruthParticle *> resultsVecTmp;
resultsVecTmp = findStatusOneChildren(daughter);
Loading