COSMOS v7.655  COSMOSv7655
(AirShowerMC)
csNeumuEMu.f
Go to the documentation of this file.
1 ! ****************************************************************
2 ! *
3 ! * csNeumuEMu: sample energy of muon neutrino from mu decay
4 ! *
5 ! **************************tested 88.07.26***************k.k*****
6 !
7 ! /usage/ call csNeumuEMu(f)
8 ! f: output. real*8. sampled fractional energy. f is the
9 ! fraction given by f=2*e'/m where e' is the
10 ! energy in muon rest system and m the muon mass.
11 ! The angle integrated energy distribution is
12 ! f^2 (3-2f)df =(2f^2(1-f) + f^2)df
13 ! 1: 2
14 
15  subroutine csneumuemu(f)
16  implicit none
17  real*8 f
18  real*8 u, u1, u2, u3
19  call rndc(u)
20  if(u .lt. 0.333333) then
21 ! first term
22  call csampneueemu(f)
23  else
24 ! second term. take max of 3 u's.
25  call rndc(u1)
26  call rndc(u2)
27  call rndc(u3)
28  f= max(u1, u2, u3)
29  endif
30  end
31 
subroutine csneumuemu(f)
Definition: csNeumuEMu.f:16
subroutine rndc(u)
Definition: rnd.f:91
subroutine csampneueemu(f)
Definition: csampNeueEMu.f:16