Problem 628 - GetCharge method of G4StepPoint returns peculiar value for charge
Summary: GetCharge method of G4StepPoint returns peculiar value for charge
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: tracking (show other problems)
Version: 6.1
Hardware: PC Linux
: P2 normal
Assignee: kurasige
URL:
Depends on:
Blocks:
 
Reported: 2004-05-27 08:29 CEST by corneliu
Modified: 2004-06-06 10:10 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description corneliu 2004-05-27 08:29:40 CEST
Hi,
 I've encountered a problem with the GetCharge method of the G4StepPoint class.
It is returning very strange values for the charge of GenericIons (eg. 2.1 for
Oxygen-16??). These ions are produced in fragmentation reactions using the
G4LightIonBinaryCascade model. I am using geant4.6.1 linux redhat 9.0 gcc 3.2.
Regards,
Iwan
Comment 1 kurasige 2004-06-06 10:10:59 CEST
It is not a bug.
The GetCharge method of the G4StepPoint gives "dynamic" charge of the particle.
For the ions produced by hadronic processes, PDGCharge in G4ParticleDefinition
is the charge of the nucleus (i.e. equal to atomic number * eplus). On the other
hand, the dynamic charge is the effective charge of the ion (see
G4EffectiveCharge class under processes/hadronic/util).
In Geant4, eplus is set to 1 (see CLHEP/Units/SystemOfUnits.h). So, the value of
2.1 is OK.