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::AxesNames ( )

Definition at line 5 of file DDAxes.cc.

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}} {}

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

◆ ~AxesNames()

AxesNames::~AxesNames ( )

Definition at line 14 of file DDAxes.cc.

14 {}

Member Function Documentation

◆ name()

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

Definition at line 16 of file DDAxes.cc.

16  {
17  for (const auto& it : axesmap_) {
18  if (it.second == s)
19  return it.first;
20  }
21  return "undefined";
22 }

References axesmap_, and alignCSCRings::s.

Referenced by config.CFG::__str__(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), and DDAxesNames::name().

Member Data Documentation

◆ axesmap_

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

Definition at line 21 of file DDAxes.h.

Referenced by name().

DDAxes::y
DDAxes::x
AxesNames::axesmap_
std::map< std::string, DDAxes > axesmap_
Definition: DDAxes.h:21
alignCSCRings.s
s
Definition: alignCSCRings.py:92
DDAxes::undefined
DDAxes::z
DDAxes::rho
DDAxes::phi
DDAxes::radial3D