CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDAxes.h
Go to the documentation of this file.
1 #ifndef DDAxes_h
2 #define DDAxes_h
3 
5 
6 #include <string>
7 #include <map>
8 
10 
11 enum class DDAxes {x, y, z, rho, radial3D, phi, undefined};
12 
13 class AxesNames
14 {
15  public:
16  AxesNames();
17  ~AxesNames();
18 
19  const std::string name( const DDAxes& s );
20 
21  private:
22  std::map<std::string, DDAxes> axesmap_;
23 };
24 
25 class DDAxesNames : public DDI::Singleton<AxesNames>
26 {
27  public:
28 
29  static const std::string name( const DDAxes& s );
30 };
31 
32 #endif // DDAxes_h
AxesNames()
Definition: DDAxes.cc:3
const std::string name(const DDAxes &s)
static const std::string name(const DDAxes &s)
std::map< std::string, DDAxes > axesmap_
Definition: DDAxes.h:22
DDAxes
analagous to geant4/source/global/HEPGeometry/include/geomdefs.hh
Definition: DDAxes.h:11