COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cDeltaDecay.f
Go to the documentation of this file.
1 ! ******************************************************************
2 ! * *
3 ! * cDeltaDecay: Delta (3,3 reso) decay
4 ! * *
5 ! ******************************************************************
6 !
7  subroutine cdeltadecay(pj, a, np)
8  implicit none
9 #include "Zptcl.h"
10 #include "Zcode.h"
11 
12  type(ptcl),intent(in):: pj ! Delta
13  type(ptcl),intent(inout):: a(*) ! produced ptcls
14  integer,intent(out):: np ! no. of ptcls produced =2
15 
16  real(8):: u
17  integer subcode, chargePi, chargeN
18 ! Delta+ --> p pi0 or n pi+
19 ! Delta- --> n pi-
20 ! Delta0 --> n pi0 or p pi-
21 
22 ! Ng mode neglected
23  call rndc(u)
24 
25  if( pj%charge > 0 ) then
26 ! Delta+ --> p pi0 or n pi+
27  if( u < 0.5 ) then
28  ! p pi0
29  chargen = 1
30  chargepi = 0
31  else
32  ! n pi+
33  chargen = 0
34  chargepi = 1
35  endif
36  call cmkptc(kpion, regptcl, chargepi, a(1))
37  call cmkptc(knuc, regptcl, chargen, a(2))
38  elseif( pj%charge == 0 ) then
39  ! Delta0 --> n pi0 or p pi-
40  if( u < 0.5 ) then
41  ! n pi0
42  chargen = 0
43  chargepi = 0
44  subcode = regptcl
45  else
46  ! p pi-
47  chargen = 1
48  chargepi = -1
49  subcode = antip
50  endif
51  call cmkptc(kpion, subcode, chargepi, a(1))
52  call cmkptc(knuc, regptcl, chargen, a(2))
53  else
54 ! Delta- --> n pi-
55  call cmkptc(kpion, antip, -1, a(1))
56  call cmkptc(knuc, regptcl, 0, a(2))
57  endif
58 
59 
60  call c2bdcy(pj, a(1), a(2))
61  np=2
62  end
subroutine cdeltadecay(pj, a, np)
Definition: cDeltaDecay.f:8
subroutine rndc(u)
Definition: rnd.f:91
max ptcl codes in the kseethru ! subcode integer regptcl
Definition: Zcode.h:2
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code knuc
Definition: cblkHeavy.h:7
subroutine c2bdcy(p, p1, p2)
Definition: c2bdcy.f:44
subroutine cmkptc(code, subcode, charge, p)
Definition: cmkptc.f:15
Definition: Zptcl.h:75
max ptcl codes in the kseethru ! subcode integer antip
Definition: Zcode.h:2
max ptcl codes in the kpion
Definition: Zcode.h:2