]> git.uio.no Git - u/mrichter/AliRoot.git/blob - GEANT321/neutron/stopar.F
This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / GEANT321 / neutron / stopar.F
1 *
2 * $Id$
3 *
4 * $Log$
5 * Revision 1.1.1.1  1995/10/24 10:21:59  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 STOPAR(ID,NP)
13 C store particle in MPSTOR common
14 #include "geant321/mconst.inc"
15 #include "geant321/mpstor.inc"
16 #include "geant321/minput.inc"
17 C
18       NPSTOR = NPSTOR + 1
19       IF(NPSTOR.GT.MAXPAR) THEN
20          WRITE(IOUT,'('' MICAP :  Cant store particle; bank full'',    '
21      +   //'                 '' ID='',I3,'' NPSTOR='',I5)') ID,NPSTOR
22          NPSTOR = NPSTOR - 1
23       ELSE
24          EN(NPSTOR) = EP
25          UN(NPSTOR) = UP
26          VN(NPSTOR) = VP
27          WN(NPSTOR) = WP
28          AMN(NPSTOR) = AMP
29          ZMN(NPSTOR) = ZMP
30          AGEN(NPSTOR) = AGEP
31          MTN(NPSTOR) = MTP
32          IDN(NPSTOR) = ID
33          NP = NP + 1
34       ENDIF
35       RETURN
36       END