9 integer i, nev, j, ntp, eof, ntpout
12 integer,
save:: Jdecay(
klast)
15 real(8),
save:: tau=0.95
e-10
42 *
' number of events generated is ',
j-1
49 call cmydecay(jdecay, tau, w, ntp, ntpout)
60 *
' number of events generated is ',nevent
72 #include "Zmanagerp.h" 76 character*200 input, file
78 integer klena, icon, eof
84 if(tracedir .eq.
' ')
then 86 tracedir =
'/tmp/'//uid(1:klena(uid))
89 if(desteventno(2) .eq. 0)
then 90 nevent =abs( desteventno(1) )
92 nevent = abs( desteventno(2) )
104 if(input(1:4) .eq.
"file")
then 106 xyz=index(input,
"xyz")
110 file=input(1:klena(input))
115 *
' file=', file,
' cannot be opened in Gencol' 129 if(input .ne.
' ')
then 130 read(input, *) xpos, ypos, zpos
141 if( index( intmodel,
'qgsjet1') .ne. 0 )
then 144 activemdl =
'qgsjet1' 146 write(0,*)
'to use qgsjet1, define it in Zintmodel%h' 148 elseif(index(intmodel,
'sibyll') .ne. 0 )
then 153 write(0,*)
'to use sibyll, define it in Zintmodel%h' 160 write(0, *)
'Active int. model=',activemdl
161 write(0, *)
' equiv. lab E=', plab%fm%p(4)
181 read(
inpfileno,*, end=100) xpos, ypos, zpos
197 #include "Zmanager.h" 198 #include "Zmanagerp.h" 215 pj%fm%p(1) =
pjpx*pjmnum
216 pj%fm%p(2) =
pjpy*pjmnum
217 pj%fm%p(3) = pjpz*pjmnum
219 * sqrt(pj%fm%p(1)**2 + pj%fm%p(2)**2 + pj%fm%p(3)**2
229 tg%fm%p(1) =
tgpx*tgmnum
230 tg%fm%p(2) =
tgpy*tgmnum
231 tg%fm%p(3) = tgpz*tgmnum
233 * sqrt(tg%fm%p(1)**2 + tg%fm%p(2)**2 + tg%fm%p(3)**2
236 if(
tgpx .eq. 0. .and.
tgpy .eq. 0. .and.
239 s= 2*pj%fm%p(4)*tg%mass +tg%mass**2 + pj%mass**2
242 s = (pj%fm%p(4)+tg%fm%p(4))**2 -
246 if(confirm .ne. 0)
then 247 write(0, *)
' roots/2=', roots/2
250 call cbst1(1, tg, pj, plab)
260 #include "Zmanagerp.h" 261 #include "Zmanager.h" 265 INTEGER IPROCE,IDNODF,IDIFR1,IDIFR2,IDDPOM,IPRON
266 COMMON /poprcs/ iproce,idnodf,idifr1,idifr2,iddpom,ipron(15,4)
283 real*8 p, wx, wy, wz, pt, y, eta
284 integer npzm, npzp, Ncht, Nchpzm, Nchpzp
285 integer nw, diffcode(20)
288 type(
ptcl):: pcms, pl
300 if(
a(i)%fm%p(3) .gt. 0.)
then 302 if(
a(i)%charge .ne. 0)
then 307 if(
a(i)%charge .ne. 0)
then 312 ncht = nchpzm + nchpzp
314 write(*,
'("h ",i3, 6i6)' )
315 * diffcode(1), ntp, npzm, npzp, ncht, nchpzm, nchpzp
323 pt = sqrt(
a(i)%fm%p(1)**2 +
a(i)%fm%p(2)**2)
347 write(*,
'(2i4, 1p, g13.4, 0p, f10.4,1p, g13.4)')
348 *
a(i)%code,
a(i)%charge, pt, eta,
a(i)%fm%p(4)
350 if(ntp .gt. 0 .or. outzero .eq. 0)
then 360 #include "Zmanagerp.h" 371 if( tg%code .eq.
knuc )
then 373 elseif( tg%code .eq.
kgnuc )
then 376 write(0,*)
' target code=', tg%code,
'invalid' 382 if(activemdl .eq.
'qgsjet1')
then 383 call qgs01event(plab, ta, tz,
a, ntp)
386 if(activemdl .eq.
'sibyll')
then 387 call sibyllevent(plab, ta, tz,
a, ntp)
390 if(activemdl .eq.
'qgsjet2' )
then 391 call cxsecqgs(plab, ta, xs)
393 call chacol(plab, ta, tz,
a, ntp)
408 #include "Zmanagerp.h" 418 p =
a(i)%fm%p(1)**2 +
a(i)%fm%p(2)**2 +
422 if( wz .ge. wzmin .and. wz .le.
wzmax )
then 443 ke(i) =
a(i)%fm%p(4) -
a(i)%mass
456 #include "Zmanagerp.h" 457 #include "Zmanager.h" 463 integer i, j, leng, icon, klena
465 real x1, y1, z1, x2, y2, z2
466 character*100 tracefile
468 write(tracefile, *) tracedir(1:klena(tracedir))//
'/trace', nev
469 call kseblk(tracefile,
' ', leng)
470 call copenfw(tracedev, tracefile(1:leng), icon)
472 call cerrormsg(
'tracefile could not be opened',0)
476 p= sqrt(
a(i)%fm%p(1)**2 +
a(i)%fm%p(2)**2
477 * +
a(i)%fm%p(3)**2 )
493 write(tracedev,
'(3g14.5, i3, g14.4, i3, i2)')
495 *
a(i)%code,
a(i)%fm%p(4) -
a(i)%mass,
a(i)%charge,
497 write(tracedev,
'(3g14.5, i3, g14.4, i3, g14.4)' )
499 *
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
max ptcl codes in the kpion
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)