34 : G4CascadeInterface{}, count_light_ions_{count_light_ions} {}
42 virtual bool acceptEvent()
const = 0;
52 virtual bool acceptProjectile(
const G4HadProjectile& projectile)
const = 0;
62 virtual bool acceptTarget(
const G4Nucleus& targetNucleus)
const = 0;
70 G4HadFinalState* ApplyYourself(
const G4HadProjectile& projectile,
71 G4Nucleus& targetNucleus)
override;
80 void cleanupSecondaries();
92 if (pdgCode > 1000000000) {
94 return ((pdgCode / 10) % 1000) <= 4;
112 return !(pdgcode < 10000 || (count_light_ions_ &&
isLightIon(pdgcode)));
123 virtual void incrementEventWeight(
int N) {
125 G4EventManager::GetEventManager()->GetUserInformation())};
126 event_info->incWeight(1. / N);
130 bool count_light_ions_;