#include <DetectorDescription/Core/interface/DDAxes.h>
Public Member Functions | |
AxesNames () | |
const DDAxes | index (const std::string &s) |
const std::string | name (const DDAxes &s) |
~AxesNames () | |
Private Attributes | |
std::map< std::string, DDAxes > | axesmap_ |
Definition at line 12 of file DDAxes.h.
AxesNames::AxesNames | ( | ) |
Definition at line 8 of file DDAxes.cc.
References axesmap_, phi, radial3D, rho, undefined, x, y, and z.
00008 { 00009 axesmap_["x"] = x; 00010 axesmap_["y"] = y; 00011 axesmap_["z"] = z; 00012 axesmap_["rho"] = rho; 00013 axesmap_["radial3D"] = radial3D; 00014 axesmap_["phi"] = phi; 00015 axesmap_["undefined"] = undefined; 00016 }
const DDAxes AxesNames::index | ( | const std::string & | s | ) |
const std::string AxesNames::name | ( | const DDAxes & | s | ) |
Definition at line 20 of file DDAxes.cc.
Referenced by DDAxesNames::name().
00021 { 00022 static std::map<std::string, DDAxes>::const_iterator it; 00023 00024 for (it = axesmap_.begin(); it != axesmap_.end(); ++it) 00025 { 00026 if (it->second == s) 00027 break; 00028 } 00029 return it->first; 00030 }
std::map<std::string, DDAxes> AxesNames::axesmap_ [private] |