Problem 846

Summary: Cannot apply G4RadioactiveDecay to G4GenericIon with G4.8.0_p01
Product: Geant4 Reporter: jasondet
Component: particlesAssignee: kurasige
Status: RESOLVED FIXED    
Severity: major    
Priority: P2    
Version: other   
Hardware: All   
OS: All   

Description jasondet 2006-02-24 13:01:42 CET
Previously, G4GenericIon was derived from G4VIon, which overloaded
GetAtomicMass() to return the baryon number. G4GenericIon now inherits from
G4ParticleDefinition, whose GetAtomicMass() returns a (default) atomic mass
number of 0. This makes
G4RadioactiveDecay::IsApplicable(G4GenericIon*) fail (atomic mass is
out-of-range), and hence renders G4RadioactiveDecay essentially unusable: any
physics lists attempting to add G4RadioactiveDecay to ions will exit with an error.

A fix users can apply until this bug is fixed is to get the G4GenericIon and
call SetAtomicMass(1) before adding G4RadioactiveDecay.
Comment 1 kurasige 2006-02-24 14:05:59 CET
Fixed tag of particles-V08-00-01 will be included next release.

Before the next release, users need to
  call SetAtomicMass(1) for GenericIon before adding G4RadioactiveDecay.