CMS 3D CMS Logo

DDSolidShapes.h
Go to the documentation of this file.
1 #ifndef DETECTOR_DESCRIPTION_CORE_DD_SOLID_SHAPES_H
2 #define DETECTOR_DESCRIPTION_CORE_DD_SOLID_SHAPES_H
3 
4 enum class DDSolidShape { dd_not_init = 0,
5  ddbox = 1, ddtubs = 2, ddtrap = 3, ddcons = 4,
8  ddtorus = 9, ddunion = 10, ddsubtraction = 11,
9  ddintersection = 12, ddshapeless = 13,
10  ddpseudotrap = 14, ddtrunctubs = 15,
11  ddsphere = 16, ddellipticaltube = 17,
12  ddcuttubs = 18, ddextrudedpolygon = 19,
13  };
14 
16 
17  static const char * const name(DDSolidShape s)
18  {
19  static const char * const _names[] = {
20  "Solid not initialized",
21  "Box",
22  "Tube(section)",
23  "Trapezoid",
24  "Cone(section)",
25  "Polycone_rz",
26  "Polyhedra_rz",
27  "Polycone_rrz",
28  "Polyhedra_rrz",
29  "Torus",
30  "UnionSolid",
31  "SubtractionSolid",
32  "IntersectionSolid",
33  "ShapelessSolid",
34  "PseudoTrapezoid",
35  "TruncatedTube(section)",
36  "Sphere(section)",
37  "EllipticalTube",
38  "CutTubs",
39  "ExtrudedPolygon"
40  };
41 
42  return _names[static_cast<int>(s)];
43  }
44 };
45 
46 
47 #endif
DDSolidShape
Definition: DDSolidShapes.h:4
static const char *const name(DDSolidShape s)
Definition: DDSolidShapes.h:17