Main Page | Class Hierarchy | Class List | File List | Class 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::TPCParametersImpl gear::VXDParametersImpl List of all members.

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 throw (UnknownParameterException, std::exception )
 Integer value for key.

virtual double getDoubleVal (const std::string &key) const throw (UnknownParameterException, std::exception )
 Double value for key
Exceptions:
UnknownParameterException. 


virtual const std::string & getStringVal (const std::string &key) const throw (UnknownParameterException, std::exception )
 String value for key
Exceptions:
UnknownParameterException. 


virtual const std::vector<
int > & 
getIntVals (const std::string &key) const throw (UnknownParameterException, std::exception )
 Integer values for key
Exceptions:
UnknownParameterException. 


virtual const std::vector<
double > & 
getDoubleVals (const std::string &key) const throw (UnknownParameterException, std::exception )
 Double values for key
Exceptions:
UnknownParameterException. 


virtual const std::vector<
std::string > & 
getStringVals (const std::string &key) const throw (UnknownParameterException, std::exception )
 String values for key
Exceptions:
UnknownParameterException. 


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.

virtual const std::vector<
std::string > & 
getDoubleKeys () const
 All keys of double variables.

virtual const std::vector<
std::string > & 
getStringKeys () const
 All keys of string variables.

virtual const std::vector<
std::string > & 
getIntVecKeys () const
 All keys of IntVec variables.

virtual const std::vector<
std::string > & 
getDoubleVecKeys () const
 All keys of DoubleVec variables.

virtual const std::vector<
std::string > & 
getStringVecKeys () const
 All keys of StringVec variables.


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
GearParametersImpl.h,v 1.1.1.1 2005/09/13 14:41:03 gaede Exp


Member Function Documentation

virtual int gear::GearParametersImpl::getIntVal const std::string &  key  )  const throw (UnknownParameterException, std::exception ) [virtual]
 

Integer value for key.

Exceptions:
UnknownParameterException 

Implements gear::GearParameters.


The documentation for this class was generated from the following file:
Generated on Tue Sep 5 11:36:31 2006 for Gear by doxygen 1.3.5