source: PSPA/parmelaPSPA/trunk/rtrans.f @ 315

Last change on this file since 315 was 12, checked in by lemeur, 12 years ago

parmela pspa initial

File size: 751 bytes
Line 
1      subroutine rtrans(gt,bt)
2c---calculate gamma and beta for the transformations to and from
3c---the rest frame of the bunch.
4c---------------------------------------------------------------------------
5c
6      include 'param_sz.h'
7      include 'constcom.h'
8      include 'coordcom.h'
9      include 'ncordscom.h'
10      include 'ucom.h'
11c
12c--------------------------------------------------------------------------
13c*
14      bgb=0.
15c for average gt run loop to ngood and uncomment following and line after 10
16c      xnp=ngood
17      do 10 n=1,1
18      bgb=bgb+cord(6,n)
19  10  continue
20c     bgb=bgb/xnp
21      gt=sqrt(1.+bgb**2)
22      bt=sqrt(gt**2-1.)/gt
23      return
24      end
25c++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
Note: See TracBrowser for help on using the repository browser.