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 5 of file DDAxes.cc.

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

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

Definition at line 15 of file DDAxes.cc.

15 { }

Member Function Documentation

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

Definition at line 31 of file DDAxes.cc.

References alignCSCRings::s.

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

Definition at line 18 of file DDAxes.cc.

Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), BeautifulSoup.Tag::_invert(), and Vispa.Views.PropertyView.Property::valueChanged().

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

Member Data Documentation

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

Definition at line 24 of file DDAxes.h.