Files
geant4/source/g3tog4/src/jshape.F
T
2016-06-08 16:03:00 +02:00

58 lines
1.6 KiB
FortranFixed

* This code implementation is the intellectual property of
* the GEANT4 collaboration.
*
* By copying, distributing or modifying the Program (or any work
* based on the Program) you indicate your acceptance of this statement,
* and all its terms.
*
* $Id: jshape.F,v 1.2 1999/12/05 17:50:17 gcosmo Exp $
* GEANT4 tag $Name: geant4-03-01 $
*
*
*-- Author : Jouko Vuoskoski, CERN, Jouko.Vuoskoski@cern.ch
*
SUBROUTINE JSHAPE(RSHAPE,SHAPE)
implicit none
real rshape
integer ishape
CHARACTER*4 SHAPE
ishape = rshape
IF (ISHAPE.EQ.1) THEN
SHAPE='BOX '
ELSEIF (ISHAPE.EQ.2) THEN
SHAPE='TRD1'
ELSEIF (ISHAPE.EQ.3) THEN
SHAPE='TRD2'
ELSEIF (ISHAPE.EQ.4) THEN
SHAPE='TRAP'
ELSEIF (ISHAPE.EQ.5) THEN
SHAPE='TUBE'
ELSEIF (ISHAPE.EQ.6) THEN
SHAPE='TUBS'
ELSEIF (ISHAPE.EQ.7) THEN
SHAPE='CONE'
ELSEIF (ISHAPE.EQ.8) THEN
SHAPE='CONS'
ELSEIF (ISHAPE.EQ.9) THEN
SHAPE='SPHE'
ELSEIF (ISHAPE.EQ.10) THEN
SHAPE='PARA'
ELSEIF (ISHAPE.EQ.11) THEN
SHAPE='PGON'
ELSEIF (ISHAPE.EQ.12) THEN
SHAPE='PCON'
ELSEIF (ISHAPE.EQ.13) THEN
SHAPE='ELTU'
ELSEIF (ISHAPE.EQ.14) THEN
SHAPE='HYPE'
ELSEIF (ISHAPE.EQ.28) THEN
SHAPE='GTRA'
ELSEIF (ISHAPE.EQ.29) THEN
SHAPE='CTUB'
ELSE
write(6,*)'(E) jshape: shape number ',ishape,' is unknown'
SHAPE=' '
ENDIF
END