COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cbst1.f
Go to the documentation of this file.
1 #include "ZsaveStruc.h"
2 ! testing cbst0, 1
3 ! include 'cbst0.f'
4 ! include 'clorep.f'
5 ! include 'clorez.f'
6 ! include 'cgetRotMat4.f'
7 ! include 'cgetlf.f'
8 ! include 'cpm2e.f'
9 ! include 'cibst1.f'
10 !c-----------------------
11 ! implicit none
12 ! include '../Zptcl.h'
13 !
14 ! type(ptcl):: p1, p2, po, pox
15 ! real*8 m
16 !
17 ! m=.938
18 !
19 ! p1.fm.p(1)=1.5
20 ! p1.fm.p(2)=-8.5e1
21 ! p1.fm.p(3)=5.e4
22 ! p2.fm.p(1)=-1.0
23 ! p2.fm.p(2)=10.
24 ! p2.fm.p(3)=3000.
25 ! p1.mass=m
26 ! p2.mass=m
27 ! call cpm2e(p2, p2)
28 ! call cpm2e(p1, p1)
29 ! call cbst1(1, p1, p1, po)
30 ! call cibst1(1, p1, po, pox)
31 ! write(*,*) po.fm.p, pox.fm.p
32 ! end
33 ! **************************************************************
34 ! *
35 ! * cbst1: boost a partilce into the rest system of another
36 ! * particle
37 ! *
38 ! **************************************************************
39 !
40 ! /usage/ call cbst1(init, p1, p2, po)
41 !
42 ! Suppose two particles p1, p2, given in the system K.
43 ! This boosts particle 2 into the rest frame of particle 1.
44 ! The z axis of p1 is made to be the direction of p1.
45 ! init: integer. Input. If p1 is the same as the previous call to this
46 ! subroutine, give a value other than 1. If p1 is different
47 ! from the previous call, use 1.
48 ! p1: type ptcl. Input. particle 1
49 ! p2: type ptcl. Input. particle 2
50 ! po: type ptcl. Output. particle seen at the rest system
51 ! of particle 1.
52 !
53  subroutine cbst1(init, p1, p2, po)
54  implicit none
55 !---- include '../Zptcl.h'
56 #include "Zptcl.h"
57  type(ptcl):: p1, p2, po
58  integer init
59 !
60  type(fmom):: g
61 #ifdef USESAVE
62  save g
63 #endif
64 !
65  if(init .eq. 1) then
66 ! get Lorent factor of p1
67  call cgetlf(p1, g)
68  endif
69 ! boost
70  call cbst0(init, g, p2, po)
71  end
72 
73 
74 
75 
76 
77 
subroutine cbst1(init, p1, p2, po)
Definition: cbst1.f:54
subroutine cbst0(init, gb, p, po)
Definition: cbst0.f:25
Definition: Zptcl.h:72
subroutine cgetlf(p, gb)
Definition: cgetlf.f:2
Definition: Zptcl.h:75