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

Go to the source code of this file.

Functions/Subroutines

subroutine cgetcm (p1, p2, gc, icon)
 

Function/Subroutine Documentation

◆ cgetcm()

subroutine cgetcm ( type(ptcl p1,
type(ptcl p2,
type(fmom gc,
integer  icon 
)

Definition at line 41 of file cgetcm.f.

References cgeqm(), and cgetlf().

Referenced by outresulc().

41 ! get Lorentz factor of the Center of Momentum
42 ! system of arbitrary two particles.
43 ! p1: type ptcl. Input. particle 1
44 ! p2: type ptcl. Input. particle 2
45 ! gc: type fmom. Output. (g*beta, g) of the
46 ! cm frame.
47 ! icon: integer. output. 0 -> ok. 1 -> no cms definable.
48 ! if icon = 1, gc is undef.
49  implicit none
50 !---- include '../Zptcl.h'
51 #include "Zptcl.h"
52  type(ptcl):: p1, p2
53  type(fmom):: gc
54 !
55  type(fmom):: q
56 
57  integer icon
58 !
59  call cgeqm(p1, p2, q, icon)
60  if(icon .eq. 0) then
61 ! get Lorentz factor of q
62  call cgetlf(q, gc)
63  endif
subroutine cgeqm(p1, p2, q, icon)
Definition: cgeqm.f:2
Definition: Zptcl.h:72
subroutine cgetlf(p, gb)
Definition: cgetlf.f:2
Definition: Zptcl.h:75
Here is the call graph for this function:
Here is the caller graph for this function: