Skip to content

Commit

Permalink
Set daugther relations as well
Browse files Browse the repository at this point in the history
This doesn't happen automatically in EDM4hep but does in LCIO!
  • Loading branch information
tmadlener authored and MarkusFrankATcernch committed Dec 16, 2021
1 parent ffa340e commit 1a4c2fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DDG4/edm4hep/Geant4Output2EDM4hep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ void Geant4Output2EDM4hep::saveParticles(Geant4ParticleMap* particles) {
int iqdau = (*k).second;
auto qdau = (*mcpc)[iqdau];
qdau.addToParents(q);
q.addToDaughters(qdau);
}

for (const auto& ipar : p->parents) {
Expand All @@ -367,6 +368,7 @@ void Geant4Output2EDM4hep::saveParticles(Geant4ParticleMap* particles) {
int iqpar = (*k).second;
auto qpar = (*mcpc)[iqpar];
q.addToParents(qpar);
qpar.addToDaughters(q);
}
}
}
Expand Down

0 comments on commit 1a4c2fb

Please sign in to comment.