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

Go to the source code of this file.

Functions/Subroutines

subroutine cdeltadecay (pj, a, np)
 

Function/Subroutine Documentation

◆ cdeltadecay()

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

Definition at line 8 of file cDeltaDecay.f.

References antip, c2bdcy(), cmkptc(), knuc, kpion, regptcl, and rndc().

Referenced by cintedelta().

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
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
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
real(4), save a
Definition: cNRLAtmos.f:20
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
*Zfirst p fm *Zfirst p Zfirst p Zfirst p subcode
Definition: ZavoidUnionMap.h:1
Here is the call graph for this function:
Here is the caller graph for this function: