CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
cms::DDSpecPar Struct Reference

#include <DDSpecParRegistry.h>

Public Member Functions

double dblValue (const char *) const
 
bool hasValue (const char *key) const
 
std::string_view strValue (const char *) const
 

Public Attributes

DDVectorsMap numpars
 
DDPaths paths
 
DDPartSelectionMap spars
 

Detailed Description

Definition at line 14 of file DDSpecParRegistry.h.

Member Function Documentation

double DDSpecPar::dblValue ( const char *  key) const

Definition at line 28 of file DDSpecparRegistry.cc.

References begin, and end.

28  {
29  auto const& item = numpars.find(key);
30  if(item == end(numpars))
31  return 0;
32  return *begin(item->second);
33 }
#define end
Definition: vmac.h:39
DDVectorsMap numpars
#define begin
Definition: vmac.h:32
bool DDSpecPar::hasValue ( const char *  key) const

Definition at line 20 of file DDSpecparRegistry.cc.

References end.

20  {
21  if(numpars.find(key) != end(numpars))
22  return true;
23  else
24  return false;
25 }
#define end
Definition: vmac.h:39
DDVectorsMap numpars
string_view DDSpecPar::strValue ( const char *  key) const

Member Data Documentation

DDVectorsMap cms::DDSpecPar::numpars

Definition at line 21 of file DDSpecParRegistry.h.

DDPaths cms::DDSpecPar::paths
DDPartSelectionMap cms::DDSpecPar::spars

Definition at line 20 of file DDSpecParRegistry.h.