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

Go to the source code of this file.

Functions/Subroutines

subroutine qgs01init
 
real *8 function qsran (X)
 

Function/Subroutine Documentation

◆ qgs01init()

subroutine qgs01init ( )

Definition at line 2 of file qgs01init.f.

References a, b, crot3mom(), kgnuc, psaini(), psasetc(), psconf(), xxaini(), and xxaset().

Referenced by init().

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)
nodes i
max ptcl codes in the kgnuc
Definition: Zcode.h:2
subroutine psaini
Definition: qgsjet01.f:42
subroutine crot3mom(p, a, n)
Definition: crot3mom.f:2
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code kiron data j
Definition: cblkHeavy.h:36
subroutine xxaset
Definition: qgsjet01.f:5572
subroutine xxaini(E0N, ICP0, IAP, IAT)
Definition: qgsjet01.f:5435
real(4), save a
Definition: cNRLAtmos.f:20
subroutine psconf
Definition: qgsjet01.f:1019
real(4), save b
Definition: cNRLAtmos.f:21
Definition: Zptcl.h:75
subroutine psasetc
Definition: qgsjet01.f:647
Here is the call graph for this function:
Here is the caller graph for this function:

◆ qsran()

real*8 function qsran ( real*8  X)

Definition at line 74 of file qgs01init.f.

References rndc().

Referenced by crossc_kk(), ixxdef(), pscajet(), psconf(), pscs(), psgea(), pshot(), psrec(), psshar(), psvdef(), pszsim(), xxddfr(), xxdec2(), xxdec3(), xxdpr(), xxdtg(), xxfragm(), xxgener(), and xxstr().

74  real*8 x ! not used
75  real*8 u
76  call rndc(u)
77  qsran = u
subroutine rndc(u)
Definition: rnd.f:91
real *8 function qsran(X)
Definition: qgs01init.f:74
! structure defining a particle at production ! Basic idea of what is to be contained in ! the particle structue is that dynamical ones should be included those derivable from the particle code ! is not included ******************************************************type fmom momentum sequence union map real e endmap map real * x
Definition: Zptcl.h:21
Here is the call graph for this function:
Here is the caller graph for this function: