COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cgetlf.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine cgetlf (p, gb)
 

Function/Subroutine Documentation

◆ cgetlf()

subroutine cgetlf ( type(ptcl p,
type(fmom gb 
)

Definition at line 2 of file cgetlf.f.

References cbacktrace(), and d0.

Referenced by cbst1(), cgetcm(), cibst1(), cibstpol(), and cs2lp().

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
subroutine cbacktrace(a, b, c)
Definition: cerrorMsg.f:25
Definition: Zptcl.h:72
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
Definition: cblkHeavy.h:7
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5
Definition: Zptcl.h:75
Here is the call graph for this function:
Here is the caller graph for this function: