Belle II Software development
|
Base for calibration or alignment parameters identified by two unsigned shorts Typically first is some identifier of a sub-detector element (sensor, layer, wire, board...) and the second is number of parameter. More...
#include <DBObjCalibrationConstMapBase.h>
Public Types | |
typedef int | baseType |
The underlying element type (also for param id) | |
typedef std::pair< baseType, baseType > | ElementParameter |
(element, parameter) | |
typedef std::map< ElementParameter, double > | ElementParameterMap |
Map of (element, parameter) and its values. | |
Public Member Functions | |
const ElementParameterMap & | getMap () |
Get the underlying map of constants. | |
DBObjCalibrationConstMapBase () | |
Constructor. | |
virtual | ~DBObjCalibrationConstMapBase () |
Destructor. | |
virtual double | get (baseType id, baseType param) const |
Get parameter value for given element and parameter number. | |
virtual void | set (baseType id, baseType param, double value) |
Set parameter correction for given WireID and parameter number. | |
virtual double | add (baseType id, baseType param, double value, bool subtractInsteadOfAdd=false) |
Add correction to already stored (or to 0. if not set yet) constant value (optionally with minus sign) | |
virtual void | dump () const |
Write all elements' parameters' values to standard output. | |
Private Member Functions | |
ClassDef (DBObjCalibrationConstMapBase, 1) | |
Storage for alignment and calibration constants. | |
Private Attributes | |
ElementParameterMap | m_constants |
Map of map of all calibration elements' constants. | |
Base for calibration or alignment parameters identified by two unsigned shorts Typically first is some identifier of a sub-detector element (sensor, layer, wire, board...) and the second is number of parameter.
Only the dublet has to be unique, so you can spare some parameters or give same number to parameters with similar meaning. E.g. shift in local sensor U system in VXD can have the same number as shift in layer local U system.
Basically a representation of table with 3 columns, primary key = (id, param)
Definition at line 36 of file DBObjCalibrationConstMapBase.h.
typedef int baseType |
The underlying element type (also for param id)
Definition at line 41 of file DBObjCalibrationConstMapBase.h.
typedef std::pair<baseType, baseType> ElementParameter |
(element, parameter)
Definition at line 43 of file DBObjCalibrationConstMapBase.h.
typedef std::map<ElementParameter, double> ElementParameterMap |
Map of (element, parameter) and its values.
Definition at line 45 of file DBObjCalibrationConstMapBase.h.
|
inline |
|
virtual |
Destructor.
Definition at line 22 of file DBObjCalibrationConstMapBase.cc.
|
virtual |
Add correction to already stored (or to 0. if not set yet) constant value (optionally with minus sign)
Definition at line 44 of file DBObjCalibrationConstMapBase.cc.
|
virtual |
Write all elements' parameters' values to standard output.
Definition at line 14 of file DBObjCalibrationConstMapBase.cc.
|
virtual |
Get parameter value for given element and parameter number.
Definition at line 27 of file DBObjCalibrationConstMapBase.cc.
|
inline |
|
virtual |
Set parameter correction for given WireID and parameter number.
Definition at line 38 of file DBObjCalibrationConstMapBase.cc.
|
private |
Map of map of all calibration elements' constants.
Definition at line 68 of file DBObjCalibrationConstMapBase.h.