COSMOS v7.655  COSMOSv7655
(AirShowerMC)
ccapnu.f
Go to the documentation of this file.
1  subroutine ccapnu(atms, z, a, np)
2  implicit none
3 
4 #include "Zptcl.h"
5 #include "Zmass.h"
6 #include "Zcode.h"
7  integer atms, z
8  integer np ! output.
9  type(ptcl):: a ! output.
10 !
11 ! atms: input. atomic mass
12 ! z: input. charge of the capturer
13 ! give neu(mu) which comes from captured
14 ! negative muon.
15 ! er: recoil nutron average kinetic energy.
16  real*8 er, xm, e, cs, sn, u, cost, x, sint
17 
18  parameter(er=15.e-3, xm=er/masmu/(masmu-er) )
19 !
20  if(atms .eq. 1) then
21  e=masmu
22  else
23 ! sample x from x*exp(-x)dx with mean xm.
24  call ksgmrm(1.00d0, xm, x)
25 ! energy of neutrino; peaked at around 100 MeV
26  e= 1./(1./masmu + x )
27  endif
28 ! make neutrino of muon type
29  call cmkptc(kneumu, regptcl, 0, a)
30  call kcossn(cs, sn)
31  call rndc(u)
32  cost=2*u-1.
33  sint = sqrt(1.d0 - cost**2)
34  a%fm%p(1) = cs*sint*e
35  a%fm%p(2) = sn*sint*e
36  a%fm%p(3) = cost*e
37  a%fm%p(4) = e
38  np=1
39  end
integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
subroutine ksgmrm(s, av, x)
Definition: ksgamd.f:125
subroutine rndc(u)
Definition: rnd.f:91
masmu
Definition: Zmass.h:5
max ptcl codes in the kseethru ! subcode integer regptcl
Definition: Zcode.h:2
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5
max ptcl codes in the kneumu
Definition: Zcode.h:2
subroutine kcossn(cs, sn)
Definition: kcossn.f:13
subroutine cmkptc(code, subcode, charge, p)
Definition: cmkptc.f:15
Definition: Zptcl.h:75
subroutine ccapnu(atms, z, a, np)
Definition: ccapnu.f:2