CMS 3D CMS Logo

DDAxes.cc
Go to the documentation of this file.
2 
3 #include <utility>
4 
6  : axesmap_{{"x", DDAxes::x },
7  {"y", DDAxes::y},
8  {"z", DDAxes::z},
9  {"rho", DDAxes::rho},
10  {"radial3D", DDAxes::radial3D},
11  {"phi", DDAxes::phi},
12  {"undefined", DDAxes::undefined }}
13 {}
14 
16 
17 const std::string
19 {
20  for( const auto& it : axesmap_ )
21  {
22  if( it.second == s )
23  return it.first;
24  }
25  return "undefined";
26 }
27 
28 const std::string
30 {
31  return instance().name(s);
32 }
AxesNames()
Definition: DDAxes.cc:5
static PFTauRenderPlugin instance
~AxesNames()
Definition: DDAxes.cc:15
const std::string name(const DDAxes &s)
Definition: DDAxes.cc:18
std::map< std::string, DDAxes > axesmap_
Definition: DDAxes.h:22
DDAxes
analagous to geant4/source/global/HEPGeometry/include/geomdefs.hh
Definition: DDAxes.h:11
static const std::string name(const DDAxes &s)
Definition: DDAxes.cc:29