COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cetapDecay.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine cetapdecay (pj, a, np)
 

Function/Subroutine Documentation

◆ cetapdecay()

subroutine cetapdecay ( type(ptcl), intent(in)  pj,
type(ptcl), dimension(*), intent(out)  a,
integer  np 
)

Definition at line 33 of file cetapDecay.f.

References c2bdcy(), cibst1(), cmkptc(), cnbdcy(), d0, keta, komega, kphoton, kpion, and rndc().

Referenced by cinteetap().

33  implicit none
34 #include "Zptcl.h"
35 #include "Zcode.h"
36 
37  integer np !output. no. of ptcls produced
38  type(ptcl),intent(in):: pj
39  type(ptcl),intent(out):: a(*)
40  integer i, icon
41  real*8 u, w
42 !
43  call rndc(u)
44  if(u .lt. 0.426d0) then
45 ! pi+ pi- eta
46  call cmkptc(kpion, -1, 1, a(1))
47  call cmkptc(kpion, 1, -1, a(2))
48  call cmkptc(keta, 0, 0, a(3) )
49  call cnbdcy(3, pj%mass, a, 0, w, icon)
50  np=3
51  elseif(u .lt. .715d0 ) then
52 ! pi+ pi- gamma
53  call cmkptc(kpion, -1, 1, a(1))
54  call cmkptc(kpion, 1, -1, a(2))
55  call cmkptc(kphoton, 0, 0, a(3))
56  call cnbdcy(3, pj%mass, a, 0, w, icon)
57  np = 3
58  elseif( u .lt. 0.943d0 ) then
59 ! pi0 pi0 eta
60  call cmkptc(kpion, 0, 0, a(1))
61  call cmkptc(kpion, 0, 0, a(2))
62  call cmkptc(keta, 0, 0, a(3))
63  call cnbdcy(3, pj%mass, a, 0, w, icon)
64  np = 3
65  elseif( u .lt. 0.965d0) then
66 ! g g
67  call cmkptc(kphoton, 0, 0, a(1))
68  call cmkptc(kphoton, 0, 0, a(2))
69  call c2bdcy(pj, a(1), a(2))
70  np = 2
71  else
72 ! omega gamma
73  call cmkptc(komega, 0, 0, a(1))
74  call cmkptc(kphoton, 0,0, a(2))
75  call c2bdcy(pj, a(1), a(2))
76  np = 2
77  endif
78  if( np > 2 ) then
79  do i=1, np
80  call cibst1(i, pj, a(i), a(i))
81  enddo
82  endif
nodes i
const int kphoton
Definition: Zcode.h:6
subroutine cibst1(init, p1, p2, po)
Definition: cibst1.f:29
subroutine cnbdcy(n, ecm, p, jw, w, icon)
Definition: cnbdcy.f:48
subroutine rndc(u)
Definition: rnd.f:91
max ptcl codes in the komega
Definition: Zcode.h:2
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5
subroutine c2bdcy(p, p1, p2)
Definition: c2bdcy.f:44
real(4), save a
Definition: cNRLAtmos.f:20
subroutine cmkptc(code, subcode, charge, p)
Definition: cmkptc.f:15
max ptcl codes in the keta
Definition: Zcode.h:2
Definition: Zptcl.h:75
max ptcl codes in the kpion
Definition: Zcode.h:2
Here is the call graph for this function:
Here is the caller graph for this function: