9 integer i, nev, j, ntp, eof, ntpout
12 integer,
save:: Jdecay(
klast)
15 real(8),
save:: tau=0.95
e-10
41 *
' number of events generated is ',
j-1
48 call cmydecay(jdecay, tau, w, ntp, ntpout)
59 *
' number of events generated is ',nevent
71 #include "Zmanagerp.h" 75 character*200 input, file
77 integer klena, icon, eof
83 if(tracedir .eq.
' ')
then 85 tracedir =
'/tmp/'//uid(1:klena(uid))
88 if(desteventno(2) .eq. 0)
then 89 nevent =abs( desteventno(1) )
91 nevent = abs( desteventno(2) )
103 if(input(1:4) .eq.
"file")
then 105 xyz=index(input,
"xyz")
109 file=input(1:klena(input))
114 *
' file=', file,
' cannot be opened in Gencol' 128 if(input .ne.
' ')
then 129 read(input, *) xpos, ypos, zpos
140 if( index( intmodel,
'qgsjet1') .ne. 0 )
then 143 activemdl =
'qgsjet1' 145 write(0,*)
'to use qgsjet1, define it in Zintmodel%h' 147 elseif(index(intmodel,
'sibyll') .ne. 0 )
then 152 write(0,*)
'to use sibyll, define it in Zintmodel%h' 159 write(0, *)
'Active int. model=',activemdl
160 write(0, *)
' equiv. lab E=', plab%fm%p(4)
180 read(
inpfileno,*, end=100) xpos, ypos, zpos
196 #include "Zmanager.h" 197 #include "Zmanagerp.h" 214 pj%fm%p(1) =
pjpx*pjmnum
215 pj%fm%p(2) =
pjpy*pjmnum
216 pj%fm%p(3) = pjpz*pjmnum
218 * sqrt(pj%fm%p(1)**2 + pj%fm%p(2)**2 + pj%fm%p(3)**2
228 tg%fm%p(1) =
tgpx*tgmnum
229 tg%fm%p(2) =
tgpy*tgmnum
230 tg%fm%p(3) = tgpz*tgmnum
232 * sqrt(tg%fm%p(1)**2 + tg%fm%p(2)**2 + tg%fm%p(3)**2
235 if(
tgpx .eq. 0. .and.
tgpy .eq. 0. .and.
238 s= 2*pj%fm%p(4)*tg%mass +tg%mass**2 + pj%mass**2
241 s = (pj%fm%p(4)+tg%fm%p(4))**2 -
245 if(confirm .ne. 0)
then 246 write(0, *)
' roots/2=', roots/2
249 call cbst1(1, tg, pj, plab)
259 #include "Zmanagerp.h" 260 #include "Zmanager.h" 264 INTEGER IPROCE,IDNODF,IDIFR1,IDIFR2,IDDPOM,IPRON
265 COMMON /poprcs/ iproce,idnodf,idifr1,idifr2,iddpom,ipron(15,4)
282 real*8 p, wx, wy, wz, pt, y, eta
283 integer npzm, npzp, Ncht, Nchpzm, Nchpzp
284 integer nw, diffcode(20)
287 type(
ptcl):: pcms, pl
299 if(
a(i)%fm%p(3) .gt. 0.)
then 301 if(
a(i)%charge .ne. 0)
then 306 if(
a(i)%charge .ne. 0)
then 311 ncht = nchpzm + nchpzp
313 write(*,
'("h ",i3, 6i6)' )
314 * diffcode(1), ntp, npzm, npzp, ncht, nchpzm, nchpzp
322 pt = sqrt(
a(i)%fm%p(1)**2 +
a(i)%fm%p(2)**2)
346 write(*,
'(2i4, 1p, g13.4, 0p, f10.4)')
347 *
a(i)%code,
a(i)%charge, pt, eta
349 if(ntp .gt. 0 .or. outzero .eq. 0)
then 359 #include "Zmanagerp.h" 370 if( tg%code .eq.
knuc )
then 372 elseif( tg%code .eq.
kgnuc )
then 375 write(0,*)
' target code=', tg%code,
'invalid' 381 if(activemdl .eq.
'qgsjet1')
then 382 call qgs01event(plab, ta, tz,
a, ntp)
385 if(activemdl .eq.
'sibyll')
then 386 call sibyllevent(plab, ta, tz,
a, ntp)
389 if(activemdl .eq.
'qgsjet2' )
then 390 call cxsecqgs(plab, ta, xs)
392 call chacol(plab, ta, tz,
a, ntp)
407 #include "Zmanagerp.h" 417 p =
a(i)%fm%p(1)**2 +
a(i)%fm%p(2)**2 +
421 if( wz .ge. wzmin .and. wz .le.
wzmax )
then 442 ke(i) =
a(i)%fm%p(4) -
a(i)%mass
455 #include "Zmanagerp.h" 456 #include "Zmanager.h" 462 integer i, j, leng, icon, klena
464 real x1, y1, z1, x2, y2, z2
465 character*100 tracefile
467 write(tracefile, *) tracedir(1:klena(tracedir))//
'/trace', nev
468 call kseblk(tracefile,
' ', leng)
469 call copenfw(tracedev, tracefile(1:leng), icon)
471 call cerrormsg(
'tracefile could not be opened',0)
475 p= sqrt(
a(i)%fm%p(1)**2 +
a(i)%fm%p(2)**2
476 * +
a(i)%fm%p(3)**2 )
492 write(tracedev,
'(3g14.5, i3, g14.4, i3, i2)')
494 *
a(i)%code,
a(i)%fm%p(4) -
a(i)%mass,
a(i)%charge,
496 write(tracedev,
'(3g14.5, i3, g14.4, i3, g14.4)' )
498 *
a(i)%code,
a(i)%fm%p(4) -
a(i)%mass,
a(i)%charge,
subroutine cmkseed(dummy, seed)
subroutine cerrormsg(msg, needrtn)
subroutine csetcosorepi(from)
subroutine sortbyke(a, ntp)
integer maxn LabEquivE real outresul integer pjchg integer tgchg integer xyz real pjpz real tgpy
max ptcl codes in the kgzai
subroutine cbst1(init, p1, p2, po)
dE dx *! Nuc Int sampling table e
integer maxn LabEquivE real outresul integer pjchg integer tgchg integer inpfileno
max ptcl codes in the kdmes
max ptcl codes in the kgnuc
subroutine cintmodels(from)
subroutine cfixmodel(aPtcl)
max ptcl codes in the kphi
latitude latitude this system is used *****************************************************************! type coord sequence union map real z z in m endmap xyz map real ! latitude in deg is to the north ! longitude in deg is to the east *h ! height in m endmap llh map real ! polar angle ! azimuthal angle *radius ! radial distance endmap sph endunion character *sys ! which system xyz
max ptcl codes in the klambdac
max ptcl codes in the kkaon
subroutine cibst1(init, p1, p2, po)
subroutine readinpfile(eof)
integer maxn LabEquivE real outresul integer pjcode
subroutine outtrace(nev, a, ntp)
subroutine cmydecay(Jdecay, tau, a, nin, nout)
max ptcl codes in the komega
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code kiron data j
subroutine copenfw2(io, fnin, form, icon)
subroutine getdiffcode(nw, difcode)
subroutine kqsortd(A, ORD, N)
subroutine cquhookr(i, rv)
integer maxn LabEquivE real outresul integer pjchg integer tgcode
subroutine ksortinv(idx, n)
subroutine creadparam(io)
max ptcl codes in the klambda
integer maxn LabEquivE real outresul integer pjchg integer tgsub
subroutine gencol(a, ntp)
integer maxn LabEquivE real outresul integer pjchg integer tgchg integer xyz real pjpz real * tgpx
integer maxn LabEquivE real * ke(maxn) integer indx(maxn) integer nevent integer outzero
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code knuc
max ptcl codes in the krho
subroutine cfixprefix(dsn)
integer maxn LabEquivE real outresul integer pjchg integer tgchg integer xyz real pjpy
subroutine formpjtg(confirm)
subroutine copenfw(io, fnin, icon)
subroutine cutbyangle(a, ntp0, ntp)
subroutine cquhooki(i, iv)
subroutine cmkptc(code, subcode, charge, p)
max ptcl codes in the keta
subroutine outresul(a, ntp)
integer maxn LabEquivE real outresul integer pjsub
subroutine cquhookc(i, cv)
max ptcl codes in the klast
integer maxn LabEquivE real outresul integer pjchg integer tgchg integer xyz real * pjpx
max ptcl codes in the ksigma
subroutine chacol(pj, ia, iz, a, ntp)
subroutine cyeta(p, y, eta)
subroutine kseblk(text, c, lc)
max ptcl codes in the kbomega
subroutine cgetloginn(userid)