C********************************************************************* C...UPINIT C...Dummy routine, to be replaced by a user implementing external C...processes. Is supposed to fill the HEPRUP commonblock with info C...on incoming beams and allowed processes. C...New example: handles a standard Les Houches Events File. SUBROUTINE UPINIT C...Double precision and integer declarations. IMPLICIT DOUBLE PRECISION(A-H, O-Z) IMPLICIT INTEGER(I-N) C...PYTHIA commonblock: only used to provide read unit MSTP(161). COMMON/PYPARS/MSTP(200),PARP(200),MSTI(200),PARI(200) SAVE /PYPARS/ C...User process initialization commonblock. INTEGER MAXPUP PARAMETER (MAXPUP=100) INTEGER IDBMUP,PDFGUP,PDFSUP,IDWTUP,NPRUP,LPRUP DOUBLE PRECISION EBMUP,XSECUP,XERRUP,XMAXUP COMMON/HEPRUP/IDBMUP(2),EBMUP(2),PDFGUP(2),PDFSUP(2), &IDWTUP,NPRUP,XSECUP(MAXPUP),XERRUP(MAXPUP),XMAXUP(MAXPUP), &LPRUP(MAXPUP) SAVE /HEPRUP/ C...Lines to read in assumed never longer than 200 characters. PARAMETER (MAXLEN=200) CHARACTER*(MAXLEN) STRING C...Format for reading lines. CHARACTER*6 STRFMT SAVE STRFMT='(A000)' WRITE(STRFMT(3:5),'(I3)') MAXLEN C...Loop until finds line beginning with "" or "'.AND. &STRING(IBEG:IBEG+5).NE.'