Message: Re: G4DynamicParticle - Energy and momentum Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: G4DynamicParticle - Energy and momentum 

Forum: Processes Involving Optical Photons
Re: Question G4DynamicParticle - Energy and momentum (Beatrice Panico)
Re: Feedback Re: G4DynamicParticle - Energy and momentum (Gumplinger Peter)
Date: 31 Jul, 2013
From: Beatrice Panico <Beatrice Panico>

Hi, the code I use is effectively the following

  G4VParticleChange* FDsimG4OpBoundaryProcess::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)

   const G4DynamicParticle* aParticle = aTrack.GetDynamicParticle();
	thePhotonMomentum = aParticle->GetTotalMomentum();

The problem is that I pass the energy in the setting and I find a different value in this point. Your answer suggests to me that the code is correct and that there is no additional factor to consider, but I'm asking why I don't have any problem with previous geant version?

Thanks Beatrice

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: G4DynamicParticle - Energy and momentum   (Gumplinger Peter - 31 Jul, 2013)
 Add Message Add Message
to: "Re: G4DynamicParticle - Energy and momentum"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews