]> git.uio.no Git - u/mrichter/AliRoot.git/blame - GEANT321/neutron/getpar.F
Fix problems in interpretation of GROUPPATH
[u/mrichter/AliRoot.git] / GEANT321 / neutron / getpar.F
CommitLineData
fe4da5cc 1*
2* $Id$
3*
4* $Log$
5* Revision 1.1.1.1 1995/10/24 10:21:56 cernlib
6* Geant
7*
8*
9#include "geant321/pilot.h"
10*CMZ : 3.21/02 29/03/94 15.41.48 by S.Giani
11*-- Author :
12 SUBROUTINE GETPAR(ID,N,IERR)
13C retrieve particle from MPSTOR common
14#include "geant321/mconst.inc"
15#include "geant321/mpstor.inc"
16#include "geant321/minput.inc"
17 IERR = 0
18 NN = 0
19 NS = 1
20 10 CONTINUE
21 IF(IDN(NS).EQ.ID) NN = NN + 1
22 IF(N.EQ.NN) GOTO 20
23 NS = NS + 1
24 IF(NS.GT.NPSTOR) THEN
25 WRITE(IOUT,'('' MICAP: Cant retrieve particle no. '',I3, '
26 + //' '' of type '',I3,''; End of data '')') N,ID
27 IERR = 1
28 RETURN
29 ENDIF
30 GOTO 10
31 20 CONTINUE
32 EP = EN(NS)
33 UP = UN(NS)
34 VP = VN(NS)
35 WP = WN(NS)
36 AMP = AMN(NS)
37 ZMP = ZMN(NS)
38 AGEP = AGEN(NS)
39 MTP = MTN(NS)
40 RETURN
41 END