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.

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}} {}
std::map< std::string, DDAxes > axesmap_
Definition: DDAxes.h:21

◆ ~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.

References axesmap_, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and alignCSCRings::s.

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

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

Member Data Documentation

◆ axesmap_

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

Definition at line 21 of file DDAxes.h.

Referenced by name().