5 * Revision 1.1.1.1 1995/10/24 10:21:09 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.20 by S.Giani
12 SUBROUTINE GFDETU(IUSET,IUDET,NUPAR,NW,UPAR)
14 C. *******************************************************************
16 C. * Return in UPAR the first NUPAR user parameters of detector *
17 C. * IUDET. NW is the total number of parameters(output), or zero *
18 C. * if an error occured. *
20 C. * ==>Called by : <USER> *
21 C. * Author W.Gebel ********* *
23 C. *******************************************************************
25 #include "geant321/gcbank.inc"
26 #include "geant321/gcunit.inc"
28 CHARACTER*4 IUSET,IUDET
30 C. ------------------------------------------------------------------
34 IF(NSET.LE.0) GO TO 90
35 CALL GLOOK(IUSET,IQ(JSET+1),NSET,IS)
40 CALL GLOOK(IUDET,IQ(JS+1),ND,ID)
46 IF(NUPAR.GT.0) CALL UCOPY(Q(JU+1),UPAR(1),NUPAR)
52 90 WRITE (CHMAIL, 1000) IUSET
54 1000 FORMAT (' ***** GFDETU ERROR SET ',A4,' NOT FOUND')
56 95 WRITE (CHMAIL, 2000) IUSET,IUDET
58 2000 FORMAT (' ***** GFDETU ERROR FOR SET ',A4,
59 + ' DETECTOR ',A4,' NOT FOUND')