| Summary: | DynamicParticle SetDefinition not consistent with le electromagnetic use. | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Hans-Peter.Wellisch |
| Component: | particles | Assignee: | kurasige |
| Status: | RESOLVED FIXED | ||
| Severity: | major | ||
| Priority: | P1 | ||
| Version: | 3.0 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Bug Fixed version will be included the tag (particles-V03-00-02) |
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.