CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
AxesNames Class Reference

#include <DDAxes.h>

Public Member Functions

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

Private Attributes

std::map< std::string, DDAxesaxesmap_
 

Detailed Description

Definition at line 13 of file DDAxes.h.

Constructor & Destructor Documentation

AxesNames::AxesNames ( )

Definition at line 5 of file DDAxes.cc.

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

6  : axesmap_{{"x", DDAxes::x }, {"y", DDAxes::y}, {"z", DDAxes::z}, {"rho", DDAxes::rho}, {"radial3D", DDAxes::radial3D}, {"phi", DDAxes::phi}, {"undefined", DDAxes::undefined }}
7 {}
std::map< std::string, DDAxes > axesmap_
Definition: DDAxes.h:22
AxesNames::~AxesNames ( )

Definition at line 9 of file DDAxes.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

9 { }

Member Function Documentation

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

Definition at line 12 of file DDAxes.cc.

References axesmap_, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by config.CFG::__str__(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), and Vispa.Views.PropertyView.Property::valueChanged().

13 {
14  for( const auto& it : axesmap_ )
15  {
16  if( it.second == s )
17  return it.first;
18  }
19  return "undefined";
20 }
std::map< std::string, DDAxes > axesmap_
Definition: DDAxes.h:22

Member Data Documentation

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

Definition at line 22 of file DDAxes.h.

Referenced by name().