Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:54

0001 #ifndef DDAxes_h
0002 #define DDAxes_h
0003 
0004 #include "DetectorDescription/Core/interface/Singleton.h"
0005 
0006 #include <string>
0007 #include <map>
0008 
0009 //! analagous to geant4/source/global/HEPGeometry/include/geomdefs.hh
0010 
0011 enum class DDAxes { x, y, z, rho, radial3D, phi, undefined };
0012 
0013 class AxesNames {
0014 public:
0015   AxesNames();
0016   ~AxesNames();
0017 
0018   const std::string name(const DDAxes& s);
0019 
0020 private:
0021   std::map<std::string, DDAxes> axesmap_;
0022 };
0023 
0024 class DDAxesNames : public DDI::Singleton<AxesNames> {
0025 public:
0026   static const std::string name(const DDAxes& s);
0027 };
0028 
0029 #endif  // DDAxes_h