Geant4_10
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 67982 2013-03-13 10:36:03Z gcosmo $
28 *
29 *
30 *-- Author : Jouko Vuoskoski, CERN, Jouko.Vuoskoski@cern.ch
31 *
32  SUBROUTINE jshape(RSHAPE,SHAPE)
33  implicit none
34  real rshape
35  integer ishape
36  CHARACTER*4 shape
37 
38  ishape = rshape
39  IF (ishape.EQ.1) THEN
40  shape='BOX '
41  ELSEIF (ishape.EQ.2) THEN
42  shape='TRD1'
43  ELSEIF (ishape.EQ.3) THEN
44  shape='TRD2'
45  ELSEIF (ishape.EQ.4) THEN
46  shape='TRAP'
47  ELSEIF (ishape.EQ.5) THEN
48  shape='TUBE'
49  ELSEIF (ishape.EQ.6) THEN
50  shape='TUBS'
51  ELSEIF (ishape.EQ.7) THEN
52  shape='CONE'
53  ELSEIF (ishape.EQ.8) THEN
54  shape='CONS'
55  ELSEIF (ishape.EQ.9) THEN
56  shape='SPHE'
57  ELSEIF (ishape.EQ.10) THEN
58  shape='PARA'
59  ELSEIF (ishape.EQ.11) THEN
60  shape='PGON'
61  ELSEIF (ishape.EQ.12) THEN
62  shape='PCON'
63  ELSEIF (ishape.EQ.13) THEN
64  shape='ELTU'
65  ELSEIF (ishape.EQ.14) THEN
66  shape='HYPE'
67  ELSEIF (ishape.EQ.28) THEN
68  shape='GTRA'
69  ELSEIF (ishape.EQ.29) THEN
70  shape='CTUB'
71  ELSE
72  write(6,*)'(E) jshape: shape number ',ishape,' is unknown'
73  shape=' '
74  ENDIF
75  END
subroutine jshape(RSHAPE, SHAPE)
Definition: jshape.F:32