Message: How to vary the incident angle Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None How to vary the incident angle 

Forum: Event and Track Management
Date: 17 Sep, 2014
From: Pierre <Pierre>

Hi G4users,

I would like to modify the incident angle of my primary generator. Precisely, I want my particle has a 60°deg angle and cross my detector in its center.

1) With the ParticleGun, I tried this :


It gives me an incident angle of 45° and I don't know how to use this method by adding directly the angle in the G4ThreeVector. I mean I wish to have the possibility to just modify the angle and have the particle crossing the detector by its center. Do you have an idea ?

2) And with the GeneralParticleSource, I tried this :

 /gps/particle geantino
 /gps/pos/type Surface
 /gps/pos/shape Sphere
 /gps/pos/centre 0. 0. 0. cm
 /gps/ang/type cos
 /gps/ang/mintheta 60 deg
 /gps/ang/maxtheta 60 deg
 /gps/ang/minphi 0 deg
 /gps/ang/maxphi 0 deg

Could you help me to understand both methods ?

Thank you in advance,


 Add Message Add Message
to: "How to vary the incident angle"

 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 ]