Message: Angle distribution from direction cosines Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Angle distribution from direction cosines 

Keywords: angle
Forum: Particles
Date: 04 Feb, 2008
From: valentina <valentina>

Hi, my Geant4 output file gives me the direction cosines (DX, DY, DZ) of the particle. I have to calculate theta and phi (spherical coordinates) from these cosines and I'm using:

theta = acos(-MZ) phi = atan(DY/DX)

From the GPS Users Manual I have found:

The direction cosines are calculated as

        Px = - sin(q) cos(f)
        Py = - sin(q) sin(f)
        Pz = - cos(q)

The problem is that the result is bit strange and I don't know if I'm using a wrong transformation. Can someone help me?

Thanks! Valentina

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

1 Idea: Re: Angle distribution from direction cosines   (G.A.P.Cirrone - 04 Feb, 2008)
3 None: Re: Angle distribution from direction cosines   (Marc Verderi - 04 Feb, 2008)
1 None: Re: Angle distribution from direction cosines   (michel maire - 04 Feb, 2008)
(_ None: Re: Angle distribution from direction cosines   (Vladimir IVANTCHENKO - 05 Feb, 2008)
4 Ok: Re: Angle distribution from direction cosines   (valentina - 06 Feb, 2008)
 Add Message Add Message
to: "Angle distribution from direction cosines"

 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 ]