Problem 228

Summary: DynamicParticle SetDefinition not consistent with le electromagnetic use.
Product: Geant4 Reporter: Hans-Peter.Wellisch
Component: particlesAssignee: kurasige
Status: RESOLVED FIXED    
Severity: major    
Priority: P1    
Version: 3.0   
Hardware: PC   
OS: Linux   

Description Hans-Peter.Wellisch 2001-03-03 03:46:07 CET
Hi Hisaya,

   the SetDefinition method of G4DynamicParticle looks like this:

inline void G4DynamicParticle::SetDefinition(G4ParticleDefinition *
aParticleDefinition)
{
  theParticleDefinition = aParticleDefinition;
  theDynamicalMass = theParticleDefinition->GetPDGMass();
}

Can you make it such that it also sets theDynamicalCharge to the PDG Charge.
(From what I see, the ion energy loss in low energy seems to always use
this variable, of course also for alpha, t and d; which then is never set.
This means they fly forever without energy loss....)

I know at present of two groups that ran into this problem.
Comment 1 kurasige 2001-03-05 01:36:59 CET
Bug Fixed version will be included the tag (particles-V03-00-02)