36 : G4CascadeInterface{}, count_light_ions_{count_light_ions} {}
44 virtual bool acceptEvent()
const = 0;
54 virtual bool acceptProjectile(
const G4HadProjectile& projectile)
const = 0;
64 virtual bool acceptTarget(
const G4Nucleus& targetNucleus)
const = 0;
72 G4HadFinalState* ApplyYourself(
const G4HadProjectile& projectile,
73 G4Nucleus& targetNucleus)
override;
82 void cleanupSecondaries();
94 if (pdgCode > 1000000000) {
96 return ((pdgCode / 10) % 1000) <= 4;
114 return !(pdgcode < 10000 || (count_light_ions_ &&
isLightIon(pdgcode)));
125 virtual void incrementEventWeight(
int N) {
127 G4EventManager::GetEventManager()->GetUserInformation())};
132 bool count_light_ions_;