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

Go to the source code of this file.

Functions/Subroutines

subroutine cadjm (p, q)
 

Function/Subroutine Documentation

◆ cadjm()

subroutine cadjm ( type(ptcl p,
type(ptcl q 
)

Definition at line 14 of file cadjm.f.

References cpxyzp(), and d0.

Referenced by cfakegh(), cgextx(), and cleadingpiaftercol().

14 !---- include '../Zptcl.h'
15 #include "Zptcl.h"
16  type(ptcl):: p, q
17 !
18  real*8 pabs, cpabs, r
19 ! |p| from 3 momentum
20  call cpxyzp(p%fm, pabs)
21 ! true |p|
22  cpabs = p%fm%p(4)**2 - p%mass**2
23  if(cpabs .gt. 0.d0 .and. pabs .gt. 0.d0) then
24  cpabs = sqrt(cpabs)
25  r = cpabs/pabs
26  q%fm%p(1) = p%fm%p(1) * r
27  q%fm%p(2) = p%fm%p(2) * r
28  q%fm%p(3) = p%fm%p(3) * r
29  else
30  q%fm%p(1) =0.
31  q%fm%p(2) =0.
32  q%fm%p(3) =0.
33  endif
34  q%fm%p(4) = p%fm%p(4)
35  q%mass = p%mass
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz r
Definition: ZavoidUnionMap.h:1
subroutine cpxyzp(po, pabs)
Definition: cpxyzp.f:3
********************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: