]> git.uio.no Git - u/mrichter/AliRoot.git/blob - GEANT321/gbase/ghclos.F
This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / GEANT321 / gbase / ghclos.F
1 *
2 * $Id$
3 *
4 * $Log$
5 * Revision 1.1.1.1  1995/10/24 10:20:10  cernlib
6 * Geant
7 *
8 *
9 #include "geant321/pilot.h"
10 *CMZ :  3.21/02 29/03/94  15.41.19  by  S.Giani
11 *-- Author :
12       SUBROUTINE GHCLOS
13 C.
14 C.    ******************************************************************
15 C.    *                                                                *
16 C.    *        SUBR. GHCLOS                                            *
17 C.    *                                                                *
18 C.    *   For every sensitive detector, calls GGDETV in order to       *
19 C.    *   complete the JD bank with the list of volume names which     *
20 C.    *   permit to identify uniquely a given physical detector, the   *
21 C.    *   list of bit numbers to pack the corresponding volume copy    *
22 C.    *   numbers,  and the generic path(s) through the JVOLUM tree.   *
23 C.    *                                                                *
24 C.    *   Called by : GGCLOS, <USER>                                   *
25 C.    *   Author    : F.Bruyant                                        *
26 C.    *                                                                *
27 C.    ******************************************************************
28 C.
29 #include "geant321/gcbank.inc"
30 C.
31 C.    ------------------------------------------------------------------
32 *
33       IF (JSET.NE.0) THEN
34 *
35 * ***   Scan the volume structure to retrieve the path through
36 *       the physical tree for all sensitive detectors
37 *
38         NSET = IQ(JSET-1)
39         DO 20 ISET=1,NSET
40           JS = LQ(JSET-ISET)
41           NDET = IQ(JS-1)
42           DO 10 IDET=1,NDET
43             CALL GGDETV (ISET, IDET)
44    10     CONTINUE
45    20   CONTINUE
46       ENDIF
47 *                                                             END GHCLOS
48       END