#include <DDSolidShapes.h>
Static Public Member Functions | |
static DDSolidShape | index (const int &ind) |
static const char * | name (DDSolidShape s) |
Definition at line 19 of file DDSolidShapes.h.
static DDSolidShape DDSolidShapesName::index | ( | const int & | ind | ) | [inline, static] |
Definition at line 39 of file DDSolidShapes.h.
References dd_not_init, ddbox, ddcons, ddellipsoid, ddellipticaltube, ddintersection, ddorb, ddparallelepiped, ddpolycone_rrz, ddpolycone_rz, ddpolyhedra_rrz, ddpolyhedra_rz, ddpseudotrap, ddreflected, ddshapeless, ddsphere, ddsubtraction, ddtorus, ddtrap, ddtrunctubs, ddtubs, ddunion, and Exception.
{ switch (ind) { case 0: return dd_not_init; break; case 1: return ddbox; break; case 2: return ddtubs; break; case 3: return ddtrap; break; case 4: return ddcons; break; case 5: return ddpolycone_rz; break; case 6: return ddpolyhedra_rz; break; case 7: return ddpolycone_rrz; break; case 8: return ddpolyhedra_rrz; break; case 9: return ddtorus; break; case 10: return ddunion; break; case 11: return ddsubtraction; break; case 12: return ddintersection; break; case 13: return ddreflected; break; case 14: return ddshapeless; break; case 15: return ddpseudotrap; break; case 16: return ddtrunctubs; break; case 17: return ddsphere; break; case 18: return ddorb; break; case 19: return ddellipticaltube; break; case 20: return ddellipsoid; break; case 21: return ddparallelepiped; break; default: throw cms::Exception("DDException") << "DDSolidShapes:index wrong shape"; break; } }
static const char* DDSolidShapesName::name | ( | DDSolidShape | s | ) | [inline, static] |
Definition at line 21 of file DDSolidShapes.h.
References trackerHits::c, and alignCSCRings::s.
Referenced by operator<<().
{ static const char* c[] = { "Solid not initialized", "Box", "Tube(section)", "Trapezoid", "Cone(section)", "Polycone_rz", "Polyhedra_rz", "Polycone_rrz", "Polyhedra_rrz", "Torus", "UnionSolid", "SubtractionSolid", "IntersectionSolid", "ReflectedSolid", "ShapelessSolid", "PseudoTrapezoid","TruncatedTube(section)", "Sphere(section)", "Orb", "EllipticalTube", "Ellipsoid", "Parallelepiped" }; return c[s]; }