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.
1 
2 
4 
5 namespace DDI { } using namespace DDI;
6 
7 
9  axesmap_["x"] = x;
10  axesmap_["y"] = y;
11  axesmap_["z"] = z;
12  axesmap_["rho"] = rho;
13  axesmap_["radial3D"] = radial3D;
14  axesmap_["phi"] = phi;
15  axesmap_["undefined"] = undefined;
16 }
17 
19 
20 const std::string AxesNames::name(const DDAxes& s)
21 {
22  static std::map<std::string, DDAxes>::const_iterator it;
23 
24  for (it = axesmap_.begin(); it != axesmap_.end(); ++it)
25  {
26  if (it->second == s)
27  break;
28  }
29  return it->first;
30 }
31 
32 DDAxes AxesNames::index(const std::string & s)
33 {
34  return axesmap_[s];
35 }
36 
37 const std::string DDAxesNames::name(const DDAxes& s)
38 {
39  return instance().name(s);
40 }
41 
42 DDAxes DDAxesNames::index(const std::string & s)
43 {
44  return instance().index(s);
45 }
AxesNames()
Definition: DDAxes.cc:8
static PFTauRenderPlugin instance
~AxesNames()
Definition: DDAxes.cc:18
Definition: DDAxes.h:10
const std::string name(const DDAxes &s)
Definition: DDAxes.cc:20
double double double z
DDAxes index(const std::string &s)
Definition: DDAxes.cc:32
static DDAxes index(const std::string &s)
Definition: DDAxes.cc:42
DDAxes
analagous to geant4/source/global/HEPGeometry/include/geomdefs.hh
Definition: DDAxes.h:10
static const std::string name(const DDAxes &s)
Definition: DDAxes.cc:37
x
Definition: VDTMath.h:216
Definition: DDAxes.h:10