CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
AxesNames Class Reference

#include <DDAxes.h>

Public Member Functions

 AxesNames ()
 
DDAxes index (const std::string &s)
 
const std::string name (const DDAxes &s)
 
 ~AxesNames ()
 

Private Attributes

std::map< std::string, DDAxesaxesmap_
 

Detailed Description

Definition at line 12 of file DDAxes.h.

Constructor & Destructor Documentation

AxesNames::AxesNames ( )

Definition at line 8 of file DDAxes.cc.

References phi, radial3D, rho, undefined, x, detailsBasic3DVector::y, and detailsBasic3DVector::z.

8  {
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 }
Definition: DDAxes.h:10
double double double z
std::map< std::string, DDAxes > axesmap_
Definition: DDAxes.h:23
Definition: DDAxes.h:10
Definition: DDAxes.h:10
AxesNames::~AxesNames ( )

Definition at line 18 of file DDAxes.cc.

18 { }

Member Function Documentation

DDAxes AxesNames::index ( const std::string &  s)

Definition at line 32 of file DDAxes.cc.

References alignCSCRings::s.

33 {
34  return axesmap_[s];
35 }
std::map< std::string, DDAxes > axesmap_
Definition: DDAxes.h:23
const std::string AxesNames::name ( const DDAxes s)

Definition at line 20 of file DDAxes.cc.

Referenced by BeautifulSoup.Tag::_invert(), and Vispa.Views.PropertyView.Property::valueChanged().

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 }
std::map< std::string, DDAxes > axesmap_
Definition: DDAxes.h:23

Member Data Documentation

std::map<std::string, DDAxes> AxesNames::axesmap_
private

Definition at line 23 of file DDAxes.h.