CMS 3D CMS Logo

AxesNames Class Reference

#include <DetectorDescription/Core/interface/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 axesmap_, phi, radial3D, rho, undefined, x, y, and z.

00008                      {
00009   axesmap_["x"] = x;
00010   axesmap_["y"] = y;
00011   axesmap_["z"] = z;
00012   axesmap_["rho"] = rho;
00013   axesmap_["radial3D"] = radial3D;
00014   axesmap_["phi"] = phi;
00015   axesmap_["undefined"] = undefined;
00016 }

AxesNames::~AxesNames (  ) 

Definition at line 18 of file DDAxes.cc.

00018 { }


Member Function Documentation

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

Definition at line 32 of file DDAxes.cc.

References axesmap_.

Referenced by DDAxesNames::index().

00033 {
00034   return axesmap_[s];
00035 }

const std::string AxesNames::name ( const DDAxes s  ) 

Definition at line 20 of file DDAxes.cc.

References axesmap_, and it.

Referenced by DDAxesNames::name().

00021 {
00022   static std::map<std::string, DDAxes>::const_iterator it;
00023 
00024   for (it = axesmap_.begin(); it != axesmap_.end(); ++it)
00025     {
00026       if (it->second == s)
00027         break;
00028     }
00029   return it->first;
00030 }


Member Data Documentation

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

Definition at line 23 of file DDAxes.h.

Referenced by AxesNames(), index(), and name().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:14:50 2009 for CMSSW by  doxygen 1.5.4