COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cmPairSpec.f
Go to the documentation of this file.
1 ! real*8 xai, x, ans
2 ! read(*,*) xai
3 ! x = 0.001d0
4 ! do while (x .lt. 1.d0)
5 !c devide by xai: xsection is to be divided by Eg/m
6 !c but if B is const, xai ~ Eg/m so, to see the
7 !c cross-section within a moderate range, we use xai division
8 !c
9 ! ans = cmPairSpec(xai, x)/xai
10 ! write(*, *) sngl(x), sngl(ans)
11 ! x = x + 0.001d0
12 ! enddo
13 ! end
14  real*8 function cmpairspec(xai, x)
15  implicit none
16 ! This computes electron energy distribution function
17 ! The value dose not contain the coefficient which is
18 ! SyncCoef/(3Piroot(3))/Eg -->unit is /m
19  real*8 xai ! input. Earger's (1966) xai = Eg/m * B/Bc/2
20  real*8 x ! input. Fractional electron energy. Ee/Eg
21 !
22  real*8 y, v, ck23
23 
24  if(x .eq. 1. .or. x .eq. 0.) then
25  cmpairspec = 0.
26  else
27  v = 1. - 2*x
28  y = 4./(3.*xai) /(1.-v**2)
29  cmpairspec = (9.- v*v)/(1.-v*v) * ck23(y)
30  endif
31  end
32 
real *8 function cmpairspec(xai, x)
Definition: cmPairSpec.f:15