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

Go to the source code of this file.

Functions/Subroutines

subroutine clambdacdcy (pj, a, np)
 

Function/Subroutine Documentation

◆ clambdacdcy()

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

Definition at line 8 of file clambdacDcy.f.

References antip, cibst1(), cmkptc(), cnbdcy(), klambda, kmuon, kneumu, kpion, regptcl, and rndc().

Referenced by cintelambdac(), 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, w
16  integer icon
17 ! lambdac --> lamuda + mu+ + neumu (2 %)
18 !
19  integer:: i
20 
21  call rndc(u)
22  if(u .lt. .02) then
23  if(pj%subcode .eq. regptcl) then
24  call cmkptc(klambda, regptcl, 0, a(1))
25  call cmkptc(kmuon, antip, 1, a(2))
26  call cmkptc(kneumu, regptcl, 0, a(3))
27  else
28  call cmkptc(klambda, regptcl, 0, a(1))
29  call cmkptc(kmuon, regptcl, -1, a(2))
30  call cmkptc(kneumu, antip, 0, a(3))
31  endif
32  call cnbdcy(3, pj%mass, a, 0, w, icon)
33  np=3
34  else
35 ! many modes with small branching ratios
36 ! and no major decay mode but
37 ! p+anything or n+anything is about 50 %,50%
38 ! so we use Lambda0 + anything for simplicity
39 ! and for anything we take pi+,pi0
40  call cmkptc(klambda, regptcl, 0, a(1))
41  call cmkptc(kpion, regptcl, 1, a(2))
42  call cmkptc(kpion, regptcl, 0, a(3))
43  call cnbdcy(3, pj%mass, a, 0, w, icon)
44  np=3
45  endif
46  do i=1, np
47  call cibst1(i, pj, a(i), a(i))
48  enddo
nodes i
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 kseethru ! subcode integer regptcl
Definition: Zcode.h:2
max ptcl codes in the klambda
Definition: Zcode.h:2
max ptcl codes in the kneumu
Definition: Zcode.h:2
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
max ptcl codes in the kmuon
Definition: Zcode.h:2
Here is the call graph for this function:
Here is the caller graph for this function: