9 integer i, nev, j, ntp, eof, ntpout
12 integer,
save:: Jdecay(
klast)
43 *
' number of events generated is ',
j-1
51 do while ( ntp /= ntpout)
52 call cmydecay(jdecay, tau, w, ntp, ntpout)
64 *
' number of events generated is ',nevent
76 #include "Zmanagerp.h" 80 character*200 input, file
82 integer klena, icon, eof
88 if(tracedir .eq.
' ')
then 90 tracedir =
'/tmp/'//uid(1:klena(uid))
93 if(desteventno(2) .eq. 0)
then 94 nevent =abs( desteventno(1) )
96 nevent = abs( desteventno(2) )
108 if(input(1:4) .eq.
"file")
then 110 xyz=index(input,
"xyz")
114 file=input(1:klena(input))
119 *
' file=', file,
' cannot be opened in Gencol' 133 if(input .ne.
' ')
then 134 read(input, *) xpos, ypos, zpos
145 if( index( intmodel,
'qgsjet1') .ne. 0 )
then 148 activemdl =
'qgsjet1' 150 write(0,*)
'to use qgsjet1, define it in Zintmodel%h' 152 elseif(index(intmodel,
'sibyll') .ne. 0 )
then 157 write(0,*)
'to use sibyll, define it in Zintmodel%h' 164 write(0, *)
'Active int. model=',activemdl
165 write(0, *)
' equiv. lab E=', plab%fm%p(4)
185 read(
inpfileno,*, end=100) xpos, ypos, zpos
201 #include "Zmanager.h" 202 #include "Zmanagerp.h" 219 pj%fm%p(1) =
pjpx*pjmnum
220 pj%fm%p(2) =
pjpy*pjmnum
221 pj%fm%p(3) = pjpz*pjmnum
223 * sqrt(pj%fm%p(1)**2 + pj%fm%p(2)**2 + pj%fm%p(3)**2
233 tg%fm%p(1) =
tgpx*tgmnum
234 tg%fm%p(2) =
tgpy*tgmnum
235 tg%fm%p(3) = tgpz*tgmnum
237 * sqrt(tg%fm%p(1)**2 + tg%fm%p(2)**2 + tg%fm%p(3)**2
240 if(
tgpx .eq. 0. .and.
tgpy .eq. 0. .and.
243 s= 2*pj%fm%p(4)*tg%mass +tg%mass**2 + pj%mass**2
246 s = (pj%fm%p(4)+tg%fm%p(4))**2 -
250 if(confirm .ne. 0)
then 251 write(0, *)
' roots/2=', roots/2
254 call cbst1(1, tg, pj, plab)
264 #include "Zmanagerp.h" 265 #include "Zmanager.h" 269 INTEGER IPROCE,IDNODF,IDIFR1,IDIFR2,IDDPOM,IPRON
270 COMMON /poprcs/ iproce,idnodf,idifr1,idifr2,iddpom,ipron(15,4)
287 real*8 p, wx, wy, wz, pt, y, eta
288 integer npzm, npzp, Ncht, Nchpzm, Nchpzp
289 integer nw, diffcode(20)
292 type(
ptcl):: pcms, pl
294 real(8),
save:: dist=141.2e2
306 if(
a(i)%fm%p(3) .gt. 0.)
then 308 if(
a(i)%charge .ne. 0)
then 313 if(
a(i)%charge .ne. 0)
then 318 ncht = nchpzm + nchpzp
329 pt = sqrt(
a(i)%fm%p(1)**2 +
a(i)%fm%p(2)**2)
330 p= sqrt( pt**2 +
a(i)%fm%p(3)**2 )
336 if(
a(i)%charge /= 0) cycle
339 if( abs(xd) > 10.) cycle
340 if( abs(yd) > 10.) cycle
345 write(*,
'(3i3, 1p, g14.5, 0p, 2f7.2)')
346 *
a(i)%code,
a(i)%subcode,
a(i)%charge,
347 *
a(i)%fm%p(4), xd, yd
375 #include "Zmanagerp.h" 386 if( tg%code .eq.
knuc )
then 388 elseif( tg%code .eq.
kgnuc )
then 391 write(0,*)
' target code=', tg%code,
'invalid' 397 if(activemdl .eq.
'qgsjet1')
then 398 call qgs01event(plab, ta, tz,
a, ntp)
401 if(activemdl .eq.
'sibyll')
then 402 call sibyllevent(plab, ta, tz,
a, ntp)
405 if(activemdl .eq.
'qgsjet2' )
then 406 call cxsecqgs(plab, ta, xs)
408 call chacol(plab, ta, tz,
a, ntp)
423 #include "Zmanagerp.h" 433 p =
a(i)%fm%p(1)**2 +
a(i)%fm%p(2)**2 +
437 if( wz .ge. wzmin .and. wz .le.
wzmax )
then 458 ke(i) =
a(i)%fm%p(4) -
a(i)%mass
471 #include "Zmanagerp.h" 472 #include "Zmanager.h" 478 integer i, j, leng, icon, klena
480 real x1, y1, z1, x2, y2, z2
481 character*100 tracefile
483 write(tracefile, *) tracedir(1:klena(tracedir))//
'/trace', nev
484 call kseblk(tracefile,
' ', leng)
485 call copenfw(tracedev, tracefile(1:leng), icon)
487 call cerrormsg(
'tracefile could not be opened',0)
491 p= sqrt(
a(i)%fm%p(1)**2 +
a(i)%fm%p(2)**2
492 * +
a(i)%fm%p(3)**2 )
508 write(tracedev,
'(3g14.5, i3, g14.4, i3, i2)')
510 *
a(i)%code,
a(i)%fm%p(4) -
a(i)%mass,
a(i)%charge,
512 write(tracedev,
'(3g14.5, i3, g14.4, i3, g14.4)' )
514 *
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)
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 kseblk(text, c, lc)
max ptcl codes in the kbomega
subroutine cgetloginn(userid)