Problem 228 - DynamicParticle SetDefinition not consistent with le electromagnetic use.
Summary: DynamicParticle SetDefinition not consistent with le electromagnetic use.
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: particles (show other problems)
Version: 3.0
Hardware: PC Linux
: P1 major
Assignee: kurasige
URL:
Depends on:
Blocks:
 
Reported: 2001-03-03 03:46 CET by Hans-Peter.Wellisch
Modified: 2001-03-05 01:36 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 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)