Belle II Software  release-08-01-10
IRGeoBase Class Reference

Base class for IR geometry parameters. More...

#include <IRGeoBase.h>

Inheritance diagram for IRGeoBase:
Collaboration diagram for IRGeoBase:

Public Member Functions

 IRGeoBase ()
 Default constructor.
 
double getParameter (const std::string &name) const
 Get parameter value. More...
 
double getParameter (const std::string &name, double def) const
 Get parameter value with giving default value in case parameter doesn't exist in DB. More...
 
const std::string & getParameterStr (const std::string &name) const
 Get string parameter. More...
 
const std::string & getParameterStr (const std::string &name, const std::string &def) const
 Get string parameter with giving default value in case of non-existence. More...
 
const std::map< std::string, double > & getParameters () const
 Get map of all parameters.
 
const std::map< std::string, std::string > & getParametersStr () const
 Get map of all string parameters.
 
void addParameter (const std::string &name, double val)
 Add parameter to map of parameters. More...
 
void addParameter (const std::string &name, const std::string &val)
 Add string parameter to map of parameters. More...
 
void addParameters (const GearDir &content, const std::string &section)
 Add parameters from Gearbox. More...
 
void print () const
 Print all parameters.
 

Protected Member Functions

 ClassDef (IRGeoBase, 1)
 ClassDef.
 

Protected Attributes

std::map< std::string, double > m_params
 map of numeric parameters
 
std::map< std::string, std::string > m_strparams
 map of string parameters
 

Detailed Description

Base class for IR geometry parameters.

Definition at line 27 of file IRGeoBase.h.

Member Function Documentation

◆ addParameter() [1/2]

void addParameter ( const std::string &  name,
const std::string &  val 
)
inline

Add string parameter to map of parameters.

Parameters
nameparameter name
valparameter value

Definition at line 111 of file IRGeoBase.h.

◆ addParameter() [2/2]

void addParameter ( const std::string &  name,
double  val 
)
inline

Add parameter to map of parameters.

Parameters
nameparameter name
valparameter value

Definition at line 98 of file IRGeoBase.h.

◆ addParameters()

void addParameters ( const GearDir content,
const std::string &  section 
)
inline

Add parameters from Gearbox.

Parameters
contentgearbox folder
sectionname of section of parameters to add

Definition at line 124 of file IRGeoBase.h.

◆ getParameter() [1/2]

double getParameter ( const std::string &  name) const
inline

Get parameter value.

Parameters
nameparameter name

Definition at line 41 of file IRGeoBase.h.

◆ getParameter() [2/2]

double getParameter ( const std::string &  name,
double  def 
) const
inline

Get parameter value with giving default value in case parameter doesn't exist in DB.

Parameters
nameparameter name
defdefault parameter value

Definition at line 53 of file IRGeoBase.h.

◆ getParameterStr() [1/2]

const std::string& getParameterStr ( const std::string &  name) const
inline

Get string parameter.

Parameters
nameparameter name

Definition at line 64 of file IRGeoBase.h.

◆ getParameterStr() [2/2]

const std::string& getParameterStr ( const std::string &  name,
const std::string &  def 
) const
inline

Get string parameter with giving default value in case of non-existence.

Parameters
nameparameter name
defdefault parameter value

Definition at line 76 of file IRGeoBase.h.


The documentation for this class was generated from the following file: