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.

5.11 CADINT fname aname nbins lunit lunit2 inst site dept resp<br />

FNAME C “Name of the SET file” D=’example.set’<br />

ANAME C “Name of the volume”<br />

NBINS I “Number of the instances” D=1<br />

LUNIT I “Logical unit number for SET file” D=66<br />

LUNIT2 I “Logical unit number for material file” D=67<br />

INST C “Name of your institute” D=’<strong>CERN</strong>’<br />

SITE C “Name of site” D=’MEYRIN’<br />

DEPT C “Name of departement” D=’CN’<br />

RESP C “Name of sender” D=’god_knows_who’<br />

CALL GTXSET(fname,aname,nbins,lunit,lunit2,inst,site,dept,resp)<br />

This command produces a SET file describing the given volume with the contents currently set visible. (Use<br />

the visibility attribute, see SATT SEEN.) The description is given as a flat assembly related to the global<br />

coordinate system. The ouput can be read into CAD systems (EUCLID-IS) trough a SET interface. A list<br />

of materials of the volumes in the SET file and the GEANT tree is written into a file with the same filename<br />

as the SET file, but with extension .mat.<br />

5.12 REUCLID lun fname<br />

LUN I “Logical unit of the file to be read” R=1:100<br />

FNAME C “Name of the EUCLID file to be read”<br />

CALL GREUCL(LUN,FNAME)<br />

Calls the routine to read into GEANT a geometry from an ASCII file written by the EUCLID-GEANT<br />

interface.<br />

5.13 WEUCLID lun fname topvol [ number nlevel ]<br />

LUN I “Logical unit of the file to be written” R=1:100<br />

FNAME C “Name of the EUCLID file to be written”<br />

TOPVOL C “Volume name of the starting node”<br />

NUMBER I “Copy number of TOPVOL (relevant for GSPOSP)” D=1<br />

NLEVEL I “Number of levels in the tree structure” D=15<br />

CALL GWEUCL(LUN,FNAME)<br />

Calls the routine to write the current GEANT geometry into an ASCII file in EUCLID compatible format.<br />

XINT002 – 26 382

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

Saved successfully!

Ooh no, something went wrong!