Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
jshape.F
Go to the documentation of this file.
1 *
2 * ********************************************************************
3 * * License and Disclaimer *
4 * * *
5 * * The Geant4 software is copyright of the Copyright Holders of *
6 * * the Geant4 Collaboration. It is provided under the terms and *
7 * * conditions of the Geant4 Software License, included in the file *
8 * * LICENSE and available at http://cern.ch/geant4/license . These *
9 * * include a list of copyright holders. *
10 * * *
11 * * Neither the authors of this software system, nor their employing *
12 * * institutes,nor the agencies providing financial support for this *
13 * * work make any representation or warranty, express or implied, *
14 * * regarding this software system or assume any liability for its *
15 * * use. Please see the license in the file LICENSE and URL above *
16 * * for the full disclaimer and the limitation of liability. *
17 * * *
18 * * This code implementation is the result of the scientific and *
19 * * technical work of the GEANT4 collaboration. *
20 * * By using, copying, modifying or distributing the software (or *
21 * * any work based on the software) you agree to acknowledge its *
22 * * use in resulting scientific publications, and indicate your *
23 * * acceptance of all terms of the Geant4 Software license. *
24 * ********************************************************************
25 *
26 *
27 * $Id: jshape.F,v 1.4 2006-06-29 18:15:14 gunter Exp $
28 * GEANT4 tag $Name: not supported by cvs2svn $
29 *
30 *
31 *-- Author : Jouko Vuoskoski, CERN, Jouko.Vuoskoski@cern.ch
32 *
33  SUBROUTINE jshape(RSHAPE,SHAPE)
34  implicit none
35  real rshape
36  integer ishape
37  CHARACTER*4 shape
38 
39  ishape = rshape
40  IF (ishape.EQ.1) THEN
41  shape='BOX '
42  ELSEIF (ishape.EQ.2) THEN
43  shape='TRD1'
44  ELSEIF (ishape.EQ.3) THEN
45  shape='TRD2'
46  ELSEIF (ishape.EQ.4) THEN
47  shape='TRAP'
48  ELSEIF (ishape.EQ.5) THEN
49  shape='TUBE'
50  ELSEIF (ishape.EQ.6) THEN
51  shape='TUBS'
52  ELSEIF (ishape.EQ.7) THEN
53  shape='CONE'
54  ELSEIF (ishape.EQ.8) THEN
55  shape='CONS'
56  ELSEIF (ishape.EQ.9) THEN
57  shape='SPHE'
58  ELSEIF (ishape.EQ.10) THEN
59  shape='PARA'
60  ELSEIF (ishape.EQ.11) THEN
61  shape='PGON'
62  ELSEIF (ishape.EQ.12) THEN
63  shape='PCON'
64  ELSEIF (ishape.EQ.13) THEN
65  shape='ELTU'
66  ELSEIF (ishape.EQ.14) THEN
67  shape='HYPE'
68  ELSEIF (ishape.EQ.28) THEN
69  shape='GTRA'
70  ELSEIF (ishape.EQ.29) THEN
71  shape='CTUB'
72  ELSE
73  write(6,*)'(E) jshape: shape number ',ishape,' is unknown'
74  shape=' '
75  ENDIF
76  END