COSMOS v7.655  COSMOSv7655
(AirShowerMC)
qgs01init.f
Go to the documentation of this file.
1  subroutine qgs01init
2  implicit none
3 #include "Zcode.h"
4 #include "Zptcl.h"
5 #include "Zmass.h"
6 !
7 !
8  type(ptcl)::pj
9  integer ntp
10  integer ia, iz
11  type(ptcl)::a(*)
12  type(ptcl)::b(5)
13  integer k, i
14  integer MONIOU
15  COMMON /area43/ moniou
16 
17  INTEGER NSP
18  COMMON /area12/ nsp
19  INTEGER ICH(95000)
20  DOUBLE PRECISION ESP(4,95000)
21  COMMON /area14/ esp,ich
22  integer icp, iap, iat, kicp
23  integer j
24  real*8 E0
25  moniou = 0
26 
27  call psasetc
28 ! call PSASET ! withDiffcode version
29  call xxaset
30  call psaini
31 ! call QGSPSAINI ! withDiffcode version
32  return
33 
34 ! ****************
35  entry qgs01event(pj, ia, iz, a, ntp)
36 ! ****************
37 
38  if( pj%code .ne. kgnuc ) then
39  iap = 1 !set proj. mass number (1-for hadron)
40  else
41  iap = pj%subcode
42  endif
43  call ccoscode2qgs( pj, kicp )
44  e0 = pj%fm%p(4)/iap !to get energy per nucleon
45  iat = ia
46  icp=iabs(kicp)/2+1 !primary particle class
47  ! (1- pion, 2 - nucleon, 3 - kaon)
48 
49 ! icp: projectile class
50 ! iap: projectile mass number
51 ! iat: target mass number
52 
53  call xxaini(e0, icp, iap, iat)
54  call psconf
55 
56  ntp = 0
57  DO j = 1, nsp
58 !
59 ! 0 pi0 1 pi+ -1 pi-
60 ! 2 p -2 pbar 3 n -3 nbar
61 ! 4 K+ -4 K- 5 K0s -5 K0L
62 ! 6 eta 10 Lambda -10 LambdaBar
63 !
64  ntp = ntp + 1
65  a(ntp)%fm%p(1)=esp(4, j)
66  a(ntp)%fm%p(2)=esp(3, j)
67  a(ntp)%fm%p(3)=esp(2, j)
68  a(ntp)%fm%p(4)=esp(1, j)
69  call cqgscode2cos(ich(j), a(ntp))
70  enddo
71  call crot3mom(pj, a, ntp)
72  end
73  real*8 function qsran(X)
74  real*8 X ! not used
75  real*8 u
76  call rndc(u)
77  qsran = u
78  end
79 
80 
max ptcl codes in the kgnuc
Definition: Zcode.h:2
subroutine psaini
Definition: qgsjet01.f:42
subroutine qgs01init
Definition: qgs01init.f:2
subroutine rndc(u)
Definition: rnd.f:91
subroutine crot3mom(p, a, n)
Definition: crot3mom.f:2
subroutine xxaset
Definition: qgsjet01.f:5572
subroutine xxaini(E0N, ICP0, IAP, IAT)
Definition: qgsjet01.f:5435
nodes a
dE dx *! Nuc Int sampling table b
Definition: cblkMuInt.h:130
subroutine psconf
Definition: qgsjet01.f:1019
real *8 function qsran(X)
Definition: qgs01init.f:74
Definition: Zptcl.h:75
subroutine psasetc
Definition: qgsjet01.f:647