5 * Revision 1.1.1.1 1995/10/24 10:21:26 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.22 by S.Giani
12 SUBROUTINE GLOREN(BETA,PA,PB)
14 C. ******************************************************************
16 C * Routine to transform momentum and energy from the *
17 C * Lorentz frame A to the Lorentz frame B *
20 C * PA(2) Momentum components in frame A *
23 C * PB(..) same quantities in frame B *
25 C * BETA(1) Components of velocity of frame B *
26 C * BETA(2) as seen from frame A *
28 C * BETA(4) 1./SQRT(1.-BETA**2) *
30 C. * ==>Called by : GDECAY,GDECA3 *
31 C. * Author M.Hansroul ********* *
33 C. ******************************************************************
35 DIMENSION BETA(4),PA(4),PB(4)
37 C. ------------------------------------------------------------------
39 BETPA = BETA(1)*PA(1) + BETA(2)*PA(2) + BETA(3)*PA(3)
40 BPGAM = (BETPA * BETA(4)/(BETA(4) + 1.) - PA(4)) * BETA(4)
41 PB(1) = PA(1) + BPGAM * BETA(1)
42 PB(2) = PA(2) + BPGAM * BETA(2)
43 PB(3) = PA(3) + BPGAM * BETA(3)
44 PB(4) =(PA(4) - BETPA) * BETA(4)