Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:05:23

0001 #ifndef DDCore_DDCategory_h
0002 #define DDCore_DDCategory_h
0003 
0004 //! enumaration of a possible categorization of the DDLogicalPart, defaults to unspecified
0005 // FIXME: use namespaces as soon as there's a clear CMS strategy for them
0006 struct DDEnums {
0007   enum Category { unspecified, sensitive, cable, cooling, support, envelope };
0008   enum Shapes {
0009     not_init,
0010     box,
0011     tubs,
0012     trap,
0013     cons,
0014     polycone_rz,
0015     polycone_rrz,
0016     polyhedra_rz,
0017     polyhedra_rrz,
0018     b_union,
0019     b_subtraction,
0020     b_intersection,
0021     reflected,
0022     shapeless,
0023     pseudotrap
0024   };
0025 
0026   static const char* const categoryName(Category s) {
0027     static const char* const c[] = {"unspecified", "sensitive", "cable", "cooling", "support", "envelope"};
0028     return c[s];
0029   }
0030 };
0031 
0032 #endif