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 },
7  {"y", DDAxes::y},
8  {"z", DDAxes::z},
9  {"rho", DDAxes::rho},
10  {"radial3D", DDAxes::radial3D},
11  {"phi", DDAxes::phi},
12  {"undefined", DDAxes::undefined }}
13 {}
std::map< std::string, DDAxes > axesmap_
Definition: DDAxes.h:22
AxesNames::~AxesNames ( )

Definition at line 15 of file DDAxes.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

15 { }

Member Function Documentation

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

Definition at line 18 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().

19 {
20  for( const auto& it : axesmap_ )
21  {
22  if( it.second == s )
23  return it.first;
24  }
25  return "undefined";
26 }
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().