22.05.2014 Views

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ITRA<br />

NUMBV<br />

HITS<br />

NHITS<br />

(INTEGER) is a 1-dim array of dimension NHMAX that contains on output for each hit the number<br />

of the track which has produced it;<br />

(INTEGER) 2-dim array (NVDIM,NHMAX) that containis on output for each hit the list of volume<br />

numbers which identify the detector, all values set to 0 means that no more volumes are stored;<br />

(REAL) 2-dim array (NHDIM,NHMAX) that containis NHITS hits;<br />

(INTEGER) number of hits returned, in case the total number of hits is greater than NHMAX,<br />

NHITS is set to NHMAX+1 and NHMAX hits are returned.<br />

This rotine returns the hits produced by track ITRS (or by any track) in the detector CHDET identified by the<br />

list NUMVS belonging to set CHSET.<br />

HITS(1,I) is element 1 of hit number I;<br />

NUMBV(1,I) is volume number 1 of hit number I;<br />

ITRA(I) is the track number corresponding to hit number I;<br />

The arrays NUMVS, NUMBV, HITS and ITRA must be dimensioned to:<br />

NUMVS(NVDIM)<br />

NUMBV(NVDIM,NHMAX)<br />

HITS(NHDIM,NHMAX)<br />

ITRA(NHMAX)<br />

CALL GFPATH<br />

(ISET,IDET,NUMBV,NLEV*,LNAM*,LNUM*)<br />

ISET<br />

IDET<br />

NUMBV<br />

NLEV<br />

LNAM<br />

LNUM<br />

(INTEGER) set number;<br />

(INTEGER) detector number;<br />

(INTEGER) array of numbers which identify uniquely detector number IDET;<br />

(INTEGER) number of elements filled of arrays LNAM and LNUM;<br />

(INTEGER) array of NLEV volume names stored in ASCII code in integers;<br />

(INTEGER) array of NLEV copy numbers.<br />

This routine returns the list of volume names and numbers which identify the complete ancestry in the<br />

JVOLUM data structure of the volume corresponding to the detector number IDET in set number ISET and<br />

which is identified by the volume numbers NUMBV (see GFHITS).<br />

GFPATH assumes that the detectors have been declared via GSDETV and not GSDET. The main use of GFPATH<br />

is to prepare the lists LNAM and LNUM required by the routine GLVOLU to fill the common /GCVOLU/. Once<br />

/GCVOLU/ is properly filled, it is possible to use the GEANT routines to transform from the local to the master<br />

reference system and so on.<br />

HITS200 – 2 165

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!