8#include <calibration/DBObjCalibrationConstMapBase.h>
17 std::cout <<
" Element " << elementParam.first.first <<
" Param " << elementParam.first.second <<
" Value = " << elementParam.second
35 return constant->second;
45 double value,
bool subtractInsteadOfAdd)
47 double original =
get(
id, param);
48 double newValue = (subtractInsteadOfAdd) ? (original - value) : (original + value);
49 set(
id, param, newValue);
virtual void set(baseType id, baseType param, double value)
Set parameter correction for given WireID and parameter number.
virtual ~DBObjCalibrationConstMapBase()
Destructor.
int baseType
The underlying element type (also for param id)
ElementParameterMap m_constants
Map of map of all calibration elements' constants.
virtual double get(baseType id, baseType param) const
Get parameter value for given element 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.
Abstract base class for different kinds of events.