3 subroutine cmydecay(Jdecay, tau, a, nin, nout)
9 integer,
intent(in)::Jdecay(
klast)
13 real(8),
intent(in)::tau
21 integer,
intent(in):: nin
24 integer,
intent(out):: nout
28 integer i, j, code, m, n
30 real(8),
save::dist=141.2
31 real(8) u, gamma, decayl
35 integer nchgin, nchgout
38 if(
a(i)%charge /= 0) nchgin= nchgin+1
46 if( jdecay(code) /= 0 .or. tau == 0. )
then 50 gamma =
a(i)%fm%p(4)/
a(i)%mass
52 decayl = -log(u)*ctau*gamma
53 decay = (decayl < dist )
55 decay = (ctau/3.e8 < tau)
61 if( code ==
kpion )
then 62 if(
a(i)%charge == 0)
then 65 elseif( code ==
kkaon )
then 66 if(
a(i)%subcode ==
k0s )
then 69 elseif( code .eq.
kdmes )
then 71 elseif( code .eq.
keta )
then 73 elseif( code .eq.
kgzai )
then 75 elseif( code .eq.
klambda )
then 79 elseif( code .eq.
ksigma )
then 81 elseif( code .eq.
kbomega )
then 84 write(*,*)
' code =', code
90 write(0,*)
' j=',j,
' code=',code,
' chg=',
a(i)%charge
105 if(
b(i)%charge /= 0) nchgout = nchgout+1
107 write(0,*)
' chgin out', nchgin, nchgout
subroutine cerrormsg(msg, needrtn)
subroutine cddecay(pj, a, np)
max ptcl codes in the kgzai
max ptcl codes in the kdmes
max ptcl codes in the kseethru ! subcode integer k0s
subroutine cpi0decay(pj, a, np)
max ptcl codes in the klambdac
max ptcl codes in the kkaon
subroutine cmydecay(Jdecay, tau, a, nin, nout)
subroutine csigmadecay(pj, a, np)
subroutine clambdacdcy(pj, a, np)
max ptcl codes in the klambda
subroutine cbomegadcy(pj, a, np)
subroutine cetadecay(pj, a, np)
subroutine cgetctau(proj, ctau)
dE dx *! Nuc Int sampling table b
subroutine ckaondecay(pj, mupol, a, np, polari)
block data cblkElemag data *AnihiE ! Eposi< 1 TeV, anihilation considered *X0/365.667/, ! radiation length of air in kg/m2 *Ecrit/81.e-3/, ! critical energy of air in GeV *MaxComptonE/1./, ! compton is considered below 1 GeV *MaxPhotoE/1.e-3/, ! above this, PhotoElectric effect neg. *MinPhotoProdE/153.e-3/, ! below 153 MeV, no gp --> hadrons ! scattering const not MeV *Knockon ! knockon is considered Obsolete *PhotoProd false
max ptcl codes in the keta
subroutine cgzaidecay(pj, a, np)
subroutine clambdadcy(pj, a, np)
max ptcl codes in the klast
max ptcl codes in the kpion
max ptcl codes in the ksigma
max ptcl codes in the kbomega