1#include "SimCore/PhotoNuclearModels/BertiniEventTopologyProcess.h"
4void BertiniEventTopologyProcess::cleanupSecondaries() {
5 int secondaries{theParticleChange.GetNumberOfSecondaries()};
7 for (
int i{0}; i < secondaries; ++i) {
8 auto secondary{theParticleChange.GetSecondary(i)->GetParticle()};
13G4HadFinalState* BertiniEventTopologyProcess::ApplyYourself(
14 const G4HadProjectile& projectile, G4Nucleus& targetNucleus) {
16 if (!acceptProjectile(projectile) || !acceptTarget(targetNucleus)) {
18 return G4CascadeInterface::ApplyYourself(projectile, targetNucleus);
22 theParticleChange.Clear();
23 theParticleChange.SetStatusChange(stopAndKill);
24 G4CascadeInterface::ApplyYourself(projectile, targetNucleus);
26 incrementEventWeight(attempts);
27 return &theParticleChange;