COSMOS v7.655  COSMOSv7655
(AirShowerMC)
clambdaDcy.f
Go to the documentation of this file.
1 ! ******************************************************************
2 ! * *
3 ! * clambdaDcy: Lamda0 decay
4 ! * *
5 ! ******************************************************************
6 !
7  subroutine clambdadcy(pj, a, np)
8  implicit none
9 #include "Zptcl.h"
10 #include "Zcode.h"
11 
12  integer np !output. no. of ptcls produced
13  type(ptcl):: pj ! input. kaon
14  type(ptcl):: a(*) ! output. produced ptcls
15  real*8 u
16  integer subcode, chargepi, chargen
17 ! lambda --> p pi- (64.2%)
18 ! ---> n pi0 (35.8%)
19 !
20  call rndc(u)
21  if(u .lt. .642) then
22  chargepi = pj%subcode
23  chargen = -pj%subcode
24  subcode = pj%subcode
25  else
26  chargepi = 0
27  chargen = 0
28  subcode = pj%subcode
29  endif
30  call cmkptc(kpion, regptcl, chargepi, a(1))
31  call cmkptc(knuc, subcode, chargen, a(2))
32  call c2bdcy(pj, a(1), a(2))
33  np=2
34  end
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
subroutine clambdadcy(pj, a, np)
Definition: clambdaDcy.f:8
Definition: Zptcl.h:75
max ptcl codes in the kpion
Definition: Zcode.h:2