Belle II Software
release-08-01-10
|
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 (optionaly 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.