CMS 3D CMS Logo

Public Member Functions | Private Attributes

AxesNames Class Reference

#include <DDAxes.h>

List of all members.

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 z.

                     {
  axesmap_["x"] = x;
  axesmap_["y"] = y;
  axesmap_["z"] = z;
  axesmap_["rho"] = rho;
  axesmap_["radial3D"] = radial3D;
  axesmap_["phi"] = phi;
  axesmap_["undefined"] = undefined;
}
AxesNames::~AxesNames ( )

Definition at line 15 of file DDAxes.cc.

{ }

Member Function Documentation

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

Definition at line 31 of file DDAxes.cc.

References alignCSCRings::s.

{
  return axesmap_[s];
}
const std::string AxesNames::name ( const DDAxes s)

Definition at line 18 of file DDAxes.cc.

{
  std::map<std::string, DDAxes>::const_iterator it;

  for(it = axesmap_.begin(); it != axesmap_.end(); ++it)
  {
    if(it->second == s)
      break;
  }
  return it->first;
}

Member Data Documentation

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

Definition at line 24 of file DDAxes.h.