CMS 3D CMS Logo

Public Member Functions | Private Attributes

AxesNames Class Reference

#include <DDAxes.h>

List of all members.

Public Member Functions

 AxesNames ()
const 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, ExpressReco_HICollisions_FallBack::x, ExpressReco_HICollisions_FallBack::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 18 of file DDAxes.cc.

{ }

Member Function Documentation

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

Definition at line 32 of file DDAxes.cc.

References asciidump::s.

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

Definition at line 20 of file DDAxes.cc.

{
  static 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 23 of file DDAxes.h.