COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cgetlf.f
Go to the documentation of this file.
1  subroutine cgetlf(p, gb)
2 ! get Lorentz factor of a particle or
3 ! system of particles of which 4 momentum
4 ! is given in p.
5 ! p: type ptcl, Input. 4 momentum and mass
6 ! must be given
7 ! gb: type fmom, Output. (g*beta, g)
8 !
9  implicit none
10 !---- include '../Zptcl.h'
11 #include "Zptcl.h"
12  type(ptcl):: p
13  type(fmom):: gb
14 !
15  if(p%mass .gt. 0.d0) then
16  gb%p(1)=p%fm%p(1)/p%mass
17  gb%p(2)=p%fm%p(2)/p%mass
18  gb%p(3)=p%fm%p(3)/p%mass
19  gb%p(4)=max(p%fm%p(4)/p%mass, 1.d0)
20  else
21  write(0, *) ' mass=', p%mass, ' invalid to cgetlf'
22  call cbacktrace(p)
23  stop 9999
24  endif
25  end
26 
subroutine cbacktrace(a, b, c)
Definition: cerrorMsg.f:25
Definition: Zptcl.h:72
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5
subroutine cgetlf(p, gb)
Definition: cgetlf.f:2
Definition: Zptcl.h:75