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

Go to the source code of this file.

Functions/Subroutines

subroutine clambdadcy (pj, a, np)
 

Function/Subroutine Documentation

◆ clambdadcy()

subroutine clambdadcy ( type(ptcl pj,
type(ptcl), dimension(*)  a,
integer  np 
)

Definition at line 8 of file clambdaDcy.f.

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

Referenced by cintelambda(), and cmydecay().

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
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 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: