COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cdecay.f
Go to the documentation of this file.
1  subroutine cdecay(tauc, a, nin, nout)
2 #include "Zptcl.h"
3 #include "Zlife.h"
4  real*8 tauc ! life time in sec. If a particle life time is
5  ! < tauc, it is made to decay.
6  type(ptcl):: a(*) ! input/output particles.
7 
8  integer nin ! input. number of particles in a
9  integer nout ! output. number of particles in a.
10 ! if partilces in a have life time < tauc,
11 ! they are made to decay and again stored in a.
12  type(ptcl):: tmp1(10), tmp2(10) ! temporary array
13 
14  integer i, j1, j2, np
15 
16  do i = 1, nin
17  tmp1(1) = a(i)
18  j1 = 1
19  j2 = 0
20  do while (j1 .ne. j2)
21  do j = 1, j1
22  if(tmp1(j).code .eq. kpion .and. tmp1(j).charge .eq. 0) then
23  if(t0pi0 .lt. tauc) then
24  call cpi0decay(tmp1(j), tmp2(j2+1), np)
25  j2 = j2 + np
26  endif
27  elseif(tmp1(j).code .eq. kkaon
28  * .and. tmp1(j).charge .eq. 0) then
29  if(tmp1(j).subcode .eq. k0s) then
30  if(t0k0s .lt. tauc) then
31  call ckshortdecay(tmp1(j), tmp2(j2 +1), np
32  j2 = j2 + 1
33  endif
34  elseif(tmp1(j).subcode .eq. k0l) then
35  if(t0k0l .lt. tauc) then
36  call ck
37 
38 
max ptcl codes in the kseethru ! subcode integer k0l
Definition: Zcode.h:2
nodes i
max ptcl codes in the kseethru ! subcode integer k0s
Definition: Zcode.h:2
subroutine cpi0decay(pj, a, np)
Definition: cpi0Decay.f:9
max ptcl codes in the kkaon
Definition: Zcode.h:2
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code kiron data j
Definition: cblkHeavy.h:36
*Zfirst p fm *Zfirst p Zfirst p code
Definition: ZavoidUnionMap.h:1
nodes a
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p charge
Definition: ZavoidUnionMap.h:1
subroutine ckshortdecay(pj, mupol, a, np, polari)
Definition: ckaonDecay.f:115
Definition: Zptcl.h:75
max ptcl codes in the kpion
Definition: Zcode.h:2
! life time in s real t0pi0
Definition: Zlife.h:2
*Zfirst p fm *Zfirst p Zfirst p Zfirst p subcode
Definition: ZavoidUnionMap.h:1