ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
jshape.F
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file jshape.F
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 *
28 *
29 *-- Author : Jouko Vuoskoski, CERN, Jouko.Vuoskoski@cern.ch
30 *
31  SUBROUTINE jshape(RSHAPE,SHAPE)
32  implicit none
33  real rshape
34  integer ishape
35  CHARACTER*4 shape
36 
37  ishape = rshape
38  IF (ishape.EQ.1) THEN
39  shape='BOX '
40  ELSEIF (ishape.EQ.2) THEN
41  shape='TRD1'
42  ELSEIF (ishape.EQ.3) THEN
43  shape='TRD2'
44  ELSEIF (ishape.EQ.4) THEN
45  shape='TRAP'
46  ELSEIF (ishape.EQ.5) THEN
47  shape='TUBE'
48  ELSEIF (ishape.EQ.6) THEN
49  shape='TUBS'
50  ELSEIF (ishape.EQ.7) THEN
51  shape='CONE'
52  ELSEIF (ishape.EQ.8) THEN
53  shape='CONS'
54  ELSEIF (ishape.EQ.9) THEN
55  shape='SPHE'
56  ELSEIF (ishape.EQ.10) THEN
57  shape='PARA'
58  ELSEIF (ishape.EQ.11) THEN
59  shape='PGON'
60  ELSEIF (ishape.EQ.12) THEN
61  shape='PCON'
62  ELSEIF (ishape.EQ.13) THEN
63  shape='ELTU'
64  ELSEIF (ishape.EQ.14) THEN
65  shape='HYPE'
66  ELSEIF (ishape.EQ.28) THEN
67  shape='GTRA'
68  ELSEIF (ishape.EQ.29) THEN
69  shape='CTUB'
70  ELSE
71  write(6,*)'(E) jshape: shape number ',ishape,' is unknown'
72  shape=' '
73  ENDIF
74  END