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

Go to the source code of this file.

Functions/Subroutines

subroutine csampfermim (t)
 

Function/Subroutine Documentation

◆ csampfermim()

subroutine csampfermim ( type(fmom t)

Definition at line 2 of file csampFermiM.f.

References e, kcossn(), masp, parameter(), and rndc().

Referenced by cgplowexp().

2  implicit none
3 !---- include '../../Zmass.h'
4 #include "Zmass.h"
5 !---- include '../../Zptcl.h'
6 #include "Zptcl.h"
7 !
8  type(fmom):: t
9  real*8 ef
10  real*8 u, ek, p, cs, sn, cst, snt
11 ! sample fermi momentum and set 4 momentum in t
12 ! Fermi(surface) momentum is 200 MeV
13  parameter( ef=200.e-3**2/2/masp)
14 !
15  call rndc(u)
16  ek=ef*u
17  p=sqrt(ek*(ek+masp*2))
18  call kcossn(cs, sn)
19  call rndc(cst)
20  cst=cst*2-1.
21  snt=sqrt(1.-cst**2)
22  t%p(1) = p*snt*cs
23  t%p(2) = p*snt*sn
24  t%p(3) = p*cst
25  t%p(4) = ek+masp
integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
dE dx *! Nuc Int sampling table e
Definition: cblkMuInt.h:130
subroutine rndc(u)
Definition: rnd.f:91
Definition: Zptcl.h:72
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
Definition: cblkHeavy.h:7
subroutine kcossn(cs, sn)
Definition: kcossn.f:13
nodes t
masp
Definition: Zmass.h:5
Here is the call graph for this function:
Here is the caller graph for this function: