37 : G4CascadeInterface{}, count_light_ions_{count_light_ions} {}
45 virtual bool acceptEvent()
const = 0;
55 virtual bool acceptProjectile(
const G4HadProjectile& projectile)
const = 0;
65 virtual bool acceptTarget(
const G4Nucleus& targetNucleus)
const = 0;
73 G4HadFinalState* ApplyYourself(
const G4HadProjectile& projectile,
74 G4Nucleus& targetNucleus)
override;
83 void cleanupSecondaries();
95 if (pdgCode > 1000000000) {
97 return ((pdgCode / 10) % 1000) <= 4;
115 return !(pdgcode < 10000 || (count_light_ions_ &&
isLightIon(pdgcode)));
126 virtual void incrementEventWeight(
int N) {
128 G4EventManager::GetEventManager()->GetUserInformation())};
129 event_info->incWeight(1. / N);
133 bool count_light_ions_;