2
character*(*) function stdexpname(IT,LMX)
4
C...Purpose: get the padded particle name
6
C IT = index to HEPEVT common block
7
C LMX = lenght of character variable to be filled
14
character CHAP*20,CHAC*20,CHDL(4)*4
15
data CHDL/' ','()','!!','<>'/
18
C...Get particle name, pad it and check it is not too long.
21
if(IP.NE.0) call HEPNAM(IP,CHAP)
24
100 if(CHAP(LEM:LEM).NE.' ') LEN=LEM
25
if(ISTHEP(IT).EQ.1) then
27
if(LEN.GT.LMX) CHAC(LMX:LMX)='?'
30
if(ISTHEP(IT).EQ.2) ICHR = 2
31
C... This is for isajet partons
32
if(ISTHEP(IT).EQ.21 .OR. ISTHEP(IT).EQ.22) ICHR = 4
34
CHAC=CHDL(ICHR)(1:2)//' '
36
CHAC=CHDL(ICHR)(1:1)//CHAP(1:MIN(LEN,LMX-2))//
37
& CHDL(ICHR)(2:2)//' '
38
if(LEN+2.GT.LMX) CHAC(LMX:LMX)='?'