- #1

- 20

- 0

## Main Question or Discussion Point

Hello

I have this problem - From a generator, I get a compton scattering with the electrons theta and phi angles.

where I having the following equations for a particle

px = E_particle * sin (theta) * cos (phi);

py = E_particle * sin (theta) * sin (phi);

pz = E_particle * cos (theta);

where polar angle θ (theta), and azimuthal angle φ (phi). So, I am trying to build some kind of spherical-Cartesian transformation, as I need to have y'=dx/dy and x'=dz/dx in order to build the transfer matrix for beam dynamics (ie transport of the beam inside a magnet following thin lens approximation)

Would that be possible to have such transformation ?

Thanks

Alex

I have this problem - From a generator, I get a compton scattering with the electrons theta and phi angles.

where I having the following equations for a particle

px = E_particle * sin (theta) * cos (phi);

py = E_particle * sin (theta) * sin (phi);

pz = E_particle * cos (theta);

where polar angle θ (theta), and azimuthal angle φ (phi). So, I am trying to build some kind of spherical-Cartesian transformation, as I need to have y'=dx/dy and x'=dz/dx in order to build the transfer matrix for beam dynamics (ie transport of the beam inside a magnet following thin lens approximation)

Would that be possible to have such transformation ?

Thanks

Alex

Last edited: