COSMOS v7.655  COSMOSv7655
(AirShowerMC)
getImpactParam.f
Go to the documentation of this file.
1 #include "Zintmodel.h"
2  subroutine getimpactparam(bout)
3  implicit none
4 #include "Zptcl.h"
5 #include "Zcode.h"
6 #include "Zevhnp.h"
7 #include "Zevhnv.h"
8 
9  real(8),intent(out):: bout
10 
11  real(8):: RPROJ, RTARG,BIMPAC
12  integer:: NWTSAM,NWASAM,NWBSAM,NWTACC,NWAACC,NWBACC
13  COMMON /dtglcp/ rproj,rtarg,bimpac,
14  & nwtsam,nwasam,nwbsam,nwtacc,nwaacc,nwbacc
15  integer,save::count=0
16 
17 ! for qgsjet-II/I
18  integer,parameter:: iapmax=209
19  real(8):: xa, xb, b
20  common /qgarr7/ xa(iapmax,3),xb(iapmax,3),b
21 
22  if( activemdl == "dpmjet3" ) then
23  bout = bimpac
24  elseif( activemdl(1:6) == "qgsjet" ) then
25  bout = b
26  elseif( activemdl == "epos" ) then
27  call geteposb(bout)
28  elseif (activemdl == "sibyll" ) then
29  call getsibyllb(bout)
30  else
31  if( count < 10 ) then
32  count =count + 1
33  write(0,*)
34  * ' IntModel =', activemdl, ' not ready for getImpactParam'
35  write(0,*) 'so -1.0 is returned'
36  endif
37  bout = -1.0
38  endif
39  end
40  subroutine geteposb(bout)
41  implicit none
42  real(8),intent(out):: bout
43 !---------------------------------------------------------------------------
44 ! epos event common block
45 !---------------------------------------------------------------------------
46 
47  real phievt,bimevt,pmxevt,egyevt
48  *,xbjevt,qsqevt,zppevt,zptevt
49  integer nevt,kolevt,koievt,npjevt
50  *,ntgevt,npnevt,nppevt,ntnevt,ntpevt,jpnevt,jppevt,jtnevt,jtpevt
51  *,nglevt,minfra,maxfra
52  common/cevt/phievt,nevt,bimevt,kolevt,koievt,pmxevt,egyevt,npjevt
53  *,ntgevt,npnevt,nppevt,ntnevt,ntpevt,jpnevt,jppevt,jtnevt,jtpevt
54  *,xbjevt,qsqevt,nglevt,zppevt,zptevt,minfra,maxfra
55 
56  bout = bimevt
57  end
58  subroutine getsibyllb(bout)
59  implicit none
60  real(8),intent(out):: bout
61 
62  integer:: IAMAX, NTRY, NA
63  real:: B, BMAX
64  parameter(iamax=56)
65  COMMON /s_cncm0/ b, bmax, ntry, na
66  bout = b
67  end
integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
subroutine geteposb(bout)
subroutine getimpactparam(bout)
Definition: getImpactParam.f:3
subroutine getsibyllb(bout)