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

Go to the source code of this file.

Functions/Subroutines

subroutine ckpntotxs (p, xs)
 
subroutine ckpnelaxs (p, xs)
 
subroutine ckpninelaxs (p, xs)
 

Function/Subroutine Documentation

◆ ckpnelaxs()

subroutine ckpnelaxs ( real*8  p,
real*8  xs 
)

Definition at line 50 of file ckpnTotXs.f.

References ckpntotxs(), kpolintplogxyfe(), and parameter().

50 ! pi+ p elastic cross section in mb
51  implicit none
52  real*8 p ! input. momentum of n in GeV
53  real*8 xs ! output np elastic xs. mb.
54 
55  integer np, m, i
56  parameter(np=30, m=5)
57  real*8 px(np), mb(np)
58  real*8 error
59  real*8 xssave/-1./
60 
61  data ( px(i), i= 1 , np )/
62  1 0.499, 0.619, 0.759, 0.908, 0.992,
63  2 1.142, 1.348, 1.695, 2.053, 2.717,
64  3 4.086, 5.990, 8.451, 11.331, 15.387,
65  4 21.710, 33.066, 49.724, 75.734, 112.445,
66  5 146.967, 197.049, 271.020, 445.603, 661.604,
67  6 982.309, 1678.060, 2903.360, 5023.390, 7749.220
68  * /
69  data ( mb(i), i= 1 , np )/
70  1 5.160,5.942,6.661,7.318,7.567,
71  2 7.316,6.884,6.263,5.510,4.718,
72  3 4.150,3.505,3.146,2.901,2.711,
73  4 2.550,2.432,2.366,2.365,2.461,
74  5 2.477,2.561,2.648,2.793,2.926,
75  6 3.025,3.169,3.342,3.408,3.668
76  * /
77 
78 
79  save
80 !
81  if( p .gt. 197.) then
82 ! assume prop.to total
83  if( xssave .lt. 0.) then
84  call ckpntotxs(px(22), xssave)
85  endif
86  call ckpntotxs(p, xs)
87  xs = xs * mb(22)/xssave
88  elseif(p .gt. px(1)) then
89 ! take log x only
90  call kpolintplogxyfe(px, 1, mb, 1, np, m, 1, p, xs, error)
91  else
92 ! get value at 0.1
93  xs = mb(1)
94  endif
integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
nodes i
subroutine kpolintplogxyfe(xa, xstep, ya, ystep, nt, m, logxy, x, y, error)
Definition: kpolintp.f:22
! constants used for pair brem in Air real *mbtoPX0 ! mbtoPgrm x X0g If multiplied to sigma in mb
Definition: ZbpCnst.h:3
subroutine ckpntotxs(p, xs)
Definition: ckpnTotXs.f:3
! constants thru Cosmos real ! if multiplied to deg radian Torad ! light velocity m sec ! infinty ! kg m2 *Togpcm2 g cm2 ! g cm2 *Tokgpm2 kg m2 ! cm *Tom m ! m *Tocm cm ! g cm3 *Tokgpm3 kg m3 ! kg m3 *Togpcm3 g cm3 ! sec *Tonsec nsec ! Tesla m ! Avogadro *A2deninv ! mfp *n * xs
Definition: Zglobalc.h:18
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
Definition: cblkHeavy.h:7
block data include Zlatfit h c fitting region data data data data data d0 data data d0 data data m
Definition: ZlatfitBD.h:35
Here is the call graph for this function:

◆ ckpninelaxs()

subroutine ckpninelaxs ( real(8), intent(in)  p,
real(8), intent(out)  xs 
)

Definition at line 97 of file ckpnTotXs.f.

References ckpnelaxs(), ckpntotxs(), and d0.

97  implicit none
98  real(8),intent(in)::p
99  real(8),intent(out)::xs
100 
101  real(8)::txs, exs
102  call ckpntotxs(p, txs)
103  call ckpnelaxs(p, exs)
104  xs =max( txs - exs, 0.d0)
subroutine ckpntotxs(p, xs)
Definition: ckpnTotXs.f:3
! constants thru Cosmos real ! if multiplied to deg radian Torad ! light velocity m sec ! infinty ! kg m2 *Togpcm2 g cm2 ! g cm2 *Tokgpm2 kg m2 ! cm *Tom m ! m *Tocm cm ! g cm3 *Tokgpm3 kg m3 ! kg m3 *Togpcm3 g cm3 ! sec *Tonsec nsec ! Tesla m ! Avogadro *A2deninv ! mfp *n * xs
Definition: Zglobalc.h:18
********************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
subroutine ckpnelaxs(p, xs)
Definition: ckpnTotXs.f:43
Here is the call graph for this function:

◆ ckpntotxs()

subroutine ckpntotxs ( real*8  p,
real*8  xs 
)

Definition at line 3 of file ckpnTotXs.f.

References ckpnelaxs(), kpolintplogxyfe(), maskc, masp, and parameter().

3  implicit none
4 #include "Zmass.h"
5  real*8 p ! input. momentum of K+. in GeV
6  real*8 xs ! output. total Kn cross section in mb
7  integer np, i, m
8  real*8 error
9  parameter(np=26, m=5)
10  real*8 px(np), mb(np)
11  real*8 z, y1, y2, b, s, rts, s0, eta1, eta2
12 
13  parameter(z=17.91, y1=7.1, y2=13.45, b=0.308,
14  * s0=5.38**2, eta1=0.458, eta2=0.545)
15 
16  data ( px(i), i= 1 , np )/
17  1 0.499, 0.596, 0.769, 0.919, 0.967,
18  2 1.071, 1.233, 1.492, 2.001, 2.423,
19  3 3.087, 3.883, 5.140, 7.929, 13.895,
20  4 20.630, 32.647, 51.663, 80.719, 124.520,
21  5 207.359, 392.263, 811.319, 2005.980, 4959.750,
22  6 7848.650
23  * /
24 
25  data ( mb(i), i= 1 , np )/
26  1 10.185, 11.888, 14.742, 17.207, 18.529,
27  2 19.290, 19.418, 18.897, 18.389, 17.896,
28  3 17.652, 17.647, 17.642, 17.752, 17.860,
29  4 17.852, 18.084, 18.319, 18.683, 19.055,
30  5 19.828, 20.910, 21.901, 23.088, 24.670,
31  6 25.501
32  * /
33 
34  save
35  if(p .gt. 250.) then
36 ! s =(M+E)^2 - p^2 = M^2 + m^2 +2ME
37 ! =
38  s = masp**2 + maskc**2 + 2*masp*sqrt(p**2 + maskc**2)
39  rts = sqrt(s)
40  xs =z + b*log(s/s0)**2 + y1*(1./s)**eta1 +y2*(1./s)**eta2
41  elseif( p .gt. 0.6) then
42 ! take log x only
43  call kpolintplogxyfe(px, 1, mb, 1, np, m, 1, p, xs, error)
44  else
45  call ckpnelaxs(p, xs)
46  endif
integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
nodes z
nodes i
subroutine kpolintplogxyfe(xa, xstep, ya, ystep, nt, m, logxy, x, y, error)
Definition: kpolintp.f:22
! constants used for pair brem in Air real *mbtoPX0 ! mbtoPgrm x X0g If multiplied to sigma in mb
Definition: ZbpCnst.h:3
! constants thru Cosmos real ! if multiplied to deg radian Torad ! light velocity m sec ! infinty ! kg m2 *Togpcm2 g cm2 ! g cm2 *Tokgpm2 kg m2 ! cm *Tom m ! m *Tocm cm ! g cm3 *Tokgpm3 kg m3 ! kg m3 *Togpcm3 g cm3 ! sec *Tonsec nsec ! Tesla m ! Avogadro *A2deninv ! mfp *n * xs
Definition: Zglobalc.h:18
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
Definition: cblkHeavy.h:7
maskc
Definition: Zmass.h:5
subroutine ckpnelaxs(p, xs)
Definition: ckpnTotXs.f:43
block data include Zlatfit h c fitting region data data data data data d0 data data d0 data data m
Definition: ZlatfitBD.h:35
masp
Definition: Zmass.h:5
real(4), save b
Definition: cNRLAtmos.f:21
Here is the call graph for this function: