CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDAxes.cc
Go to the documentation of this file.
2 
4  : axesmap_{{"x", DDAxes::x }, {"y", DDAxes::y}, {"z", DDAxes::z}, {"rho", DDAxes::rho}, {"radial3D", DDAxes::radial3D}, {"phi", DDAxes::phi}, {"undefined", DDAxes::undefined }}
5 {}
6 
8 
9 const std::string
10 AxesNames::name(const DDAxes& s)
11 {
12  for( const auto& it : axesmap_ )
13  {
14  if( it.second == s )
15  return it.first;
16  }
17  return "undefined";
18 }
19 
20 const std::string
21 DDAxesNames::name(const DDAxes& s)
22 {
23  return instance().name(s);
24 }
AxesNames()
Definition: DDAxes.cc:3
const std::string name(const DDAxes &s)
static value_type & instance()
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