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