1
subroutine dpmhep(mconv)
3
C...Convert DPMJET event record to and from the HEPEVT common block
4
C...convert (mconv=1) from DPMJET numbering scheme to StdHep numbering scheme
5
C... or (mconv=2) from StdHep numbering scheme to DPMJET numbering scheme
7
C at this time, the particle ID numbers are assumed to be correct.
24
C...print version number if this is the first call
30
C...convert from DPMJET to HEPEVT
33
if(nhep.le.nmxhep)then
36
idhep(i) = dpmtran(idhkk(i),mconv)
38
jmohep(j,i) = jmohkk(j,i)
39
jdahep(j,i) = jdahkk(j,i)
49
write(lnhout,1001) nhkk,nmxhep
52
if(isthkk(l).eq.1 .or. isthkk(l).eq.-1
53
1 .or. isthkk(l).eq.1001)then
60
idhep(i) = dpmtran(idhkk(i),mconv)
62
jmohep(j,i) = jmohkk(j,i)
63
jdahep(j,i) = jdahkk(j,i)
74
elseif(mconv.EQ.2) then
75
C...convert from HEPEVT to DPMJET
78
C...unsupported option
82
1001 format(' DPMHEP: too many particles (',I4,
83
1 ') for hepevt common block'/
84
2 ' will only save isthkk = 1, -1, and 1001')
86
1002 format(' DPMHEP: conversion back to DPM not yet enabled')
87
1003 format(' DPMHEP: unallowed conversion option')
88
1004 format(' DPMHEP: still too many particles - truncating event')