test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDEnums.h
Go to the documentation of this file.
1 #ifndef DDCore_DDCategory_h
2 #define DDCore_DDCategory_h
3 
5 // FIXME: use namespaces as soon as there's a clear CMS strategy for them
6 struct DDEnums {
8  enum Shapes { not_init, box, tubs, trap, cons,
15  };
16 
17  static const char * const categoryName(Category s)
18  {
19  static const char * const c[] = { "unspecified", "sensitive", "cable", "cooling", "support", "envelope" };
20  return c[s];
21  }
22 };
23 
24 
25 #endif
Shapes
Definition: DDEnums.h:8
Category
Definition: DDEnums.h:7
static const char *const categoryName(Category s)
Definition: DDEnums.h:17
enumaration of a possible categorization of the DDLogicalPart, defaults to unspecified ...
Definition: DDEnums.h:6