Problem 846 - Cannot apply G4RadioactiveDecay to G4GenericIon with G4.8.0_p01
Summary: Cannot apply G4RadioactiveDecay to G4GenericIon with G4.8.0_p01
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: particles (show other problems)
Version: other
Hardware: All All
: P2 major
Assignee: kurasige
URL:
Depends on:
Blocks:
 
Reported: 2006-02-24 13:01 CET by jasondet
Modified: 2006-02-24 14:05 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.