Skip to content
Snippets Groups Projects

ISFTruthIncident / ISF_Fatras - Improve robustness + fix warnings

Merged John Derek Chapman requested to merge jchapman/athena:FixISFTruthIncident_main into main
Compare and Show latest version
2 files
+ 8
10
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -529,12 +529,12 @@ ISF::ISFParticleVector iFatras::G4HadIntProcessor::getHadState(const ISF::ISFPar
//Let's make sure the new ISFParticles get a valid TruthBinding
// FIXME check that this does not cause problems in the TruthSvc
ISF::TruthBinding& truthBinding = *(parent->getTruthBinding());
const ISF::TruthBinding *truthBinding = parent->getTruthBinding();
if (truthBinding) {
ATH_MSG_VERBOSE("Could retrieve TruthBinding from original ISFParticle");
for (unsigned int i=0; i<children.size(); i++) {
if (!children[i]->getTruthBinding()) {
children[i]->setTruthBinding(new ISF::TruthBinding(truthBinding));
children[i]->setTruthBinding(new ISF::TruthBinding(*truthBinding));
}
}
}
Loading