COSMOS v7.655
COSMOSv7655
(AirShowerMC)
cbst0.f
Go to the documentation of this file.
1
#include "ZsaveStruc.h"
2
! **************************************************************
3
! *
4
! * cbst0: boost a partilce into the rest system of another
5
! * particle
6
! *
7
! **************************************************************
8
!
9
! /usage/ call cbst0(init, gb, p, po)
10
!
11
! Suppose two particles given in the system K.
12
! The Lorentz factor of particle 1 is given in K.
13
! 4 momentum of particle 2 is also given in K. This boosts
14
! particle 2 into the rest frame of particle 1.
15
16
! init: integer. Input. If gb is the same as the previous call to this
17
! subroutine, give a value other than 1. If gb is different
18
! from the previous call, use 1.
19
! gb: type fmom. Input. Lorentz factor of particle 1 in K.
20
! p: type ptcl. Input. particle 2
21
! po: type ptcl. Output. particle seen at the rest system
22
! of particle 1.
23
!
24
subroutine
cbst0
(init, gb, p, po)
25
implicit none
26
27
#include "Zptcl.h"
28
type
(
fmom
):: gb
29
type
(
ptcl
):: p, po
30
integer
init
31
!
32
type
(
fmom
):: ig
33
#ifdef USESAVE
34
save
ig
35
#endif
36
!
37
38
if
(init .eq. 1)
then
39
ig%p(1) = -gb%p(1)
40
ig%p(2) = -gb%p(2)
41
ig%p(3) = -gb%p(3)
42
ig%p(4) = gb%p(4)
43
endif
44
po = p
45
call
clorep
(init, ig, p, po)
46
end
47
48
cbst0
subroutine cbst0(init, gb, p, po)
Definition:
cbst0.f:25
fmom
Definition:
Zptcl.h:72
clorep
subroutine clorep(j, gb, q, p)
Definition:
clorep.f:88
ptcl
Definition:
Zptcl.h:75
Particle
Clib
cbst0.f
Generated by
1.8.13