Message: Re: Initial angle of secondary particles Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Initial angle of secondary particles 

Forum: Event and Track Management
Re: Question Initial angle of secondary particles (Clara)
Re: Feedback Re: Initial angle of secondary particles (Gumplinger Peter)
Date: 16 Sep, 2013
From: Clara <Clara>

Dear Peter,

Thank you for your reply! Although I'm having a little trouble understanding the result of your suggestion. I added the code for post 9.6, but the angle I get out is always 1.5708. I output the momentum calculated to the screen and it was always (0,0,0). If I change the line:

     G4ThreeVector momentum =(*fSecondary)[lp1]->GetVertexMomentumDirection();

to

     G4ThreeVector momentum =(*fSecondary)[lp1]->GetMomentumDirection();

then the angle changes for each new particle as expected. But this might not be the right way to do it. Could you please explain to me which angle is being calculated with this code?

Many thanks, Clara

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

1 Agree: Re: Initial angle of secondary particles   (Gumplinger Peter - 16 Sep, 2013)
 Add Message Add Message
to: "Re: Initial angle of secondary particles"

 Subscribe Subscribe

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


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]