Message: Having trouble with gps angular directions Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Having trouble with gps angular directions 

Forum: Particles
Date: 02 Aug, 2017
From: <Emile>

Hello,

I'm trying to implement a cylindrical surface source using gps which generates particles traveling directly inwards, perpendicular to the surface. I'm using the commands:
/gps/ang/type cos
/gps/ang/mintheta 0 deg
/gps/ang/mintheta 0 deg
to achieve this.

This works perfectly until I try to rotate the cylinder. I rotate using:
/gps/pos/rot1 1 0 0
/gps/pos/rot2 0 0 1
such that the cylinder is now lying along the y axis. My understanding was that applying the same change to the angular axis (via /gps/ang/rot1 and rot2) would again cause the particles to travel directly towards the centre, however that does not work.

Would someone be able to explain how this could be done?

Thanks in advance.

 Add Message Add Message
to: "Having trouble with gps angular directions"

 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 ]