COSMOS v7.655
COSMOSv7655
(AirShowerMC)
csampNeueEMu.f
Go to the documentation of this file.
1
! ****************************************************************
2
! *
3
! * csampNeueEMu: sample energy of electron neutrino from mu decay
4
! *
5
! **************************tested 88.07.26***************k.k*****
6
!
7
! /usage/ call csampNeueEMu(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
!
12
! df f^2 (1-f) which can be sampled by taking the second
13
! max of 4 uniform random number.
14
!
15
subroutine
csampneueemu
(f)
16
implicit none
17
real*8
f
18
19
real*8
u1, u2, u3, u4, ux, uy
20
call
rndc
(u1)
21
call
rndc
(u2)
22
call
rndc
(u3)
23
call
rndc
(u4)
24
ux = max(u1, u2)
25
uy = max(u3, u4)
26
if
(ux .gt. uy)
then
27
f=max( min(u1, u2), uy)
28
else
29
f=max( min(u3, u4), ux)
30
endif
31
end
rndc
subroutine rndc(u)
Definition:
rnd.f:91
csampneueemu
subroutine csampneueemu(f)
Definition:
csampNeueEMu.f:16
Particle
Event
Decay
NeuKine
csampNeueEMu.f
Generated by
1.8.13