GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
gear::GearParametersImpl Class Reference

Implementation of GearParameters - a set off parameters that can be used to describe the geometrical properties of a specific subdetector type for reconstruction. More...

#include <GearParametersImpl.h>

Inheritance diagram for gear::GearParametersImpl:
gear::GearParameters gear::CalorimeterParametersImpl gear::ConstantBField gear::FTDParametersImpl gear::SiPlanesParametersImpl gear::TPCModuleImpl gear::TPCParametersImpl gear::TrackerPlanesParametersImpl gear::ZPlanarParametersImpl

Public Types

typedef std::map< std::string,
int > 
IntMap
 
typedef std::map< std::string,
double > 
DoubleMap
 
typedef std::map< std::string,
std::string > 
StringMap
 
typedef std::map< std::string,
IntVec > 
IntVecMap
 
typedef std::map< std::string,
DoubleVec > 
DoubleVecMap
 
typedef std::map< std::string,
StringVec > 
StringVecMap
 

Public Member Functions

virtual ~GearParametersImpl ()
 Destructor.
 
virtual int getIntVal (const std::string &key) const
 Integer value for key. More...
 
virtual double getDoubleVal (const std::string &key) const
 Double value for key. More...
 
virtual const std::string & getStringVal (const std::string &key) const
 String value for key. More...
 
virtual const std::vector< int > & getIntVals (const std::string &key) const
 Integer values for key. More...
 
virtual const std::vector
< double > & 
getDoubleVals (const std::string &key) const
 Double values for key. More...
 
virtual const std::vector
< std::string > & 
getStringVals (const std::string &key) const
 String values for key. More...
 
virtual void setIntVal (const std::string &key, int val)
 Set Integer value for key.
 
virtual void setDoubleVal (const std::string &key, double val)
 Double value for key.
 
virtual void setStringVal (const std::string &key, const std::string &val)
 String value for key.
 
virtual void setIntVals (const std::string &key, const std::vector< int > &vals)
 Integer values for key.
 
virtual void setDoubleVals (const std::string &key, const std::vector< double > &vals)
 Double values for key.
 
virtual void setStringVals (const std::string &key, const std::vector< std::string > &vals)
 String values for key.
 
virtual const std::vector
< std::string > & 
getIntKeys () const
 All keys of int variables. More...
 
virtual const std::vector
< std::string > & 
getDoubleKeys () const
 All keys of double variables. More...
 
virtual const std::vector
< std::string > & 
getStringKeys () const
 All keys of string variables. More...
 
virtual const std::vector
< std::string > & 
getIntVecKeys () const
 All keys of IntVec variables. More...
 
virtual const std::vector
< std::string > & 
getDoubleVecKeys () const
 All keys of DoubleVec variables. More...
 
virtual const std::vector
< std::string > & 
getStringVecKeys () const
 All keys of StringVec variables. More...
 
- Public Member Functions inherited from gear::GearParameters
virtual ~GearParameters ()
 Destructor.
 

Protected Attributes

std::map< std::string, int > _intMap {}
 
std::map< std::string, double > _doubleMap {}
 
std::map< std::string,
std::string > 
_stringMap {}
 
std::map< std::string, IntVec > _intVecMap {}
 
std::map< std::string, DoubleVec > _doubleVecMap {}
 
std::map< std::string, StringVec > _stringVecMap {}
 
StringVec _intKeys {}
 
StringVec _doubleKeys {}
 
StringVec _stringKeys {}
 
StringVec _intVecKeys {}
 
StringVec _doubleVecKeys {}
 
StringVec _stringVecKeys {}
 

Detailed Description

Implementation of GearParameters - a set off parameters that can be used to describe the geometrical properties of a specific subdetector type for reconstruction.

It basically allows to retrieve named parameters of type int, string and double and arrays/vectors of these types and set these.

Author
F. Gaede, DESY
Version
$Id$

Definition at line 19 of file GearParametersImpl.h.

Member Function Documentation

const std::vector< std::string > & gear::GearParametersImpl::getDoubleKeys ( ) const
virtual

All keys of double variables.

Implements gear::GearParameters.

Definition at line 96 of file GearParametersImpl.cc.

double gear::GearParametersImpl::getDoubleVal ( const std::string &  key) const
virtual

Double value for key.

Exceptions
UnknownParameterException

Implements gear::GearParameters.

Definition at line 17 of file GearParametersImpl.cc.

const std::vector< double > & gear::GearParametersImpl::getDoubleVals ( const std::string &  key) const
virtual

Double values for key.

Exceptions
UnknownParameterException

Implements gear::GearParameters.

Definition at line 41 of file GearParametersImpl.cc.

const std::vector< std::string > & gear::GearParametersImpl::getDoubleVecKeys ( ) const
virtual

All keys of DoubleVec variables.

Implements gear::GearParameters.

Definition at line 131 of file GearParametersImpl.cc.

const std::vector< std::string > & gear::GearParametersImpl::getIntKeys ( ) const
virtual

All keys of int variables.

Implements gear::GearParameters.

Definition at line 85 of file GearParametersImpl.cc.

int gear::GearParametersImpl::getIntVal ( const std::string &  key) const
virtual

Integer value for key.

Exceptions
UnknownParameterException

Implements gear::GearParameters.

Definition at line 9 of file GearParametersImpl.cc.

const std::vector< int > & gear::GearParametersImpl::getIntVals ( const std::string &  key) const
virtual

Integer values for key.

Exceptions
UnknownParameterException

Implements gear::GearParameters.

Definition at line 33 of file GearParametersImpl.cc.

const std::vector< std::string > & gear::GearParametersImpl::getIntVecKeys ( ) const
virtual

All keys of IntVec variables.

Implements gear::GearParameters.

Definition at line 120 of file GearParametersImpl.cc.

const std::vector< std::string > & gear::GearParametersImpl::getStringKeys ( ) const
virtual

All keys of string variables.

Implements gear::GearParameters.

Definition at line 109 of file GearParametersImpl.cc.

const std::string & gear::GearParametersImpl::getStringVal ( const std::string &  key) const
virtual

String value for key.

Exceptions
UnknownParameterException

Implements gear::GearParameters.

Definition at line 25 of file GearParametersImpl.cc.

const std::vector< std::string > & gear::GearParametersImpl::getStringVals ( const std::string &  key) const
virtual

String values for key.

Exceptions
UnknownParameterException

Implements gear::GearParameters.

Definition at line 49 of file GearParametersImpl.cc.

const std::vector< std::string > & gear::GearParametersImpl::getStringVecKeys ( ) const
virtual

All keys of StringVec variables.

Implements gear::GearParameters.

Definition at line 143 of file GearParametersImpl.cc.


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