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