Main Page
Namespaces
Classes
Package Documentation
DetectorDescription
Core
interface
DDSolidShapes.h
Go to the documentation of this file.
1
#ifndef DDSolidShapes_h
2
#define DDSolidShapes_h
3
4
#include "
FWCore/Utilities/interface/Exception.h
"
5
6
enum
DDSolidShape
{
dd_not_init
,
7
ddbox
,
ddtubs
,
ddtrap
,
ddcons
,
8
ddpolycone_rz
,
ddpolyhedra_rz
,
9
ddpolycone_rrz
,
ddpolyhedra_rrz
,
10
ddtorus
,
11
ddunion
,
ddsubtraction
,
ddintersection
,
12
ddreflected
,
13
ddshapeless
,
14
ddpseudotrap
,
ddtrunctubs
,
ddsphere
,
15
ddorb
,
ddellipticaltube
,
ddellipsoid
,
16
ddparallelepiped
,
ddcuttubs
,
17
ddextrudedpolygon
,
ddmultiunion
18
};
19
20
struct
DDSolidShapesName
{
21
22
static
const
char
*
const
name
(
DDSolidShape
s
)
23
{
24
static
const
char
*
const
c
[] = {
25
"Solid not initialized"
,
26
"Box"
,
"Tube(section)"
,
"Trapezoid"
,
"Cone(section)"
,
27
"Polycone_rz"
,
"Polyhedra_rz"
,
28
"Polycone_rrz"
,
"Polyhedra_rrz"
,
29
"Torus"
,
30
"UnionSolid"
,
"SubtractionSolid"
,
"IntersectionSolid"
,
31
"ReflectedSolid"
,
32
"ShapelessSolid"
,
33
"PseudoTrapezoid"
,
"TruncatedTube(section)"
,
34
"Sphere(section)"
,
"Orb"
,
"EllipticalTube"
,
"Ellipsoid"
,
35
"Parallelepiped"
,
"CutTubs"
,
"ExtrudedPolygon"
,
"MultiUnionSolid"
36
};
37
return
c[
s
];
38
}
39
40
static
DDSolidShape
index
(
const
int
& ind ) {
41
switch
(ind) {
42
case
0:
43
return
dd_not_init
;
44
break
;
45
case
1:
46
return
ddbox
;
47
break
;
48
case
2:
49
return
ddtubs
;
50
break
;
51
case
3:
52
return
ddtrap
;
53
break
;
54
case
4:
55
return
ddcons
;
56
break
;
57
case
5:
58
return
ddpolycone_rz
;
59
break
;
60
case
6:
61
return
ddpolyhedra_rz
;
62
break
;
63
case
7:
64
return
ddpolycone_rrz
;
65
break
;
66
case
8:
67
return
ddpolyhedra_rrz
;
68
break
;
69
case
9:
70
return
ddtorus
;
71
break
;
72
case
10:
73
return
ddunion
;
74
break
;
75
case
11:
76
return
ddsubtraction
;
77
break
;
78
case
12:
79
return
ddintersection
;
80
break
;
81
case
13:
82
return
ddreflected
;
83
break
;
84
case
14:
85
return
ddshapeless
;
86
break
;
87
case
15:
88
return
ddpseudotrap
;
89
break
;
90
case
16:
91
return
ddtrunctubs
;
92
break
;
93
case
17:
94
return
ddsphere
;
95
break
;
96
case
18:
97
return
ddorb
;
98
break
;
99
case
19:
100
return
ddellipticaltube
;
101
break
;
102
case
20:
103
return
ddellipsoid
;
104
break
;
105
case
21:
106
return
ddparallelepiped
;
107
break
;
108
case
22:
109
return
ddcuttubs
;
110
break
;
111
case
23:
112
return
ddextrudedpolygon
;
113
break
;
114
case
24:
115
return
ddmultiunion
;
116
break
;
117
default
:
118
throw
cms::Exception
(
"DDException"
) <<
"DDSolidShapes:index wrong shape"
;
119
break
;
120
}
121
}
122
123
};
124
125
126
127
#endif
ddbox
Definition:
DDSolidShapes.h:7
ddpolycone_rz
Definition:
DDSolidShapes.h:8
ddtubs
Definition:
DDSolidShapes.h:7
ddcuttubs
Definition:
DDSolidShapes.h:16
DDSolidShapesName
Definition:
DDSolidShapes.h:20
ddellipticaltube
Definition:
DDSolidShapes.h:15
ddtorus
Definition:
DDSolidShapes.h:10
Exception
Definition:
hltDiff.cc:292
ddshapeless
Definition:
DDSolidShapes.h:13
ddreflected
Definition:
DDSolidShapes.h:12
ddtrap
Definition:
DDSolidShapes.h:7
alignCSCRings.s
s
Definition:
alignCSCRings.py:91
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:43
DDSolidShape
DDSolidShape
Definition:
DDSolidShapes.h:6
ddpolyhedra_rz
Definition:
DDSolidShapes.h:8
ddpolyhedra_rrz
Definition:
DDSolidShapes.h:9
DDSolidShapesName::name
static const char *const name(DDSolidShape s)
Definition:
DDSolidShapes.h:22
dd_not_init
Definition:
DDSolidShapes.h:6
ddellipsoid
Definition:
DDSolidShapes.h:15
ddparallelepiped
Definition:
DDSolidShapes.h:16
ddcons
Definition:
DDSolidShapes.h:7
ddsubtraction
Definition:
DDSolidShapes.h:11
ddunion
Definition:
DDSolidShapes.h:11
DDSolidShapesName::index
static DDSolidShape index(const int &ind)
Definition:
DDSolidShapes.h:40
ddorb
Definition:
DDSolidShapes.h:15
ddpseudotrap
Definition:
DDSolidShapes.h:14
Exception.h
ddtrunctubs
Definition:
DDSolidShapes.h:14
ddsphere
Definition:
DDSolidShapes.h:14
ddintersection
Definition:
DDSolidShapes.h:11
ddextrudedpolygon
Definition:
DDSolidShapes.h:17
ddpolycone_rrz
Definition:
DDSolidShapes.h:9
ddmultiunion
Definition:
DDSolidShapes.h:17
Generated for CMSSW Reference Manual by
1.8.11