CDC layers alignment constants.
More...
#include <CDCLayerAlignment.h>
|
| CDCLayerAlignment () |
| Constructor.
|
|
| ~CDCLayerAlignment () |
| Destructor.
|
|
double | getGlobalParam (unsigned short element, unsigned short param) |
| Get global parameter FIXME does nothing because CDC is not ready.
|
|
void | setGlobalParam (double value, unsigned short element, unsigned short param) |
| Set global parameter FIXME does nothing because CDC is not ready.
|
|
std::vector< std::pair< unsigned short, unsigned short > > | listGlobalParams () |
| list stored global parameters TODO FIXME CDC not ready
|
|
const ElementParameterMap & | getMap () |
| Get the underlying map of constants.
|
|
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.
|
|
|
static const baseType | layerX = 1 |
| Layer shift in global X at backward endplate.
|
|
static const baseType | layerY = 2 |
| Layer shift in global Y at backward endplate.
|
|
static const baseType | layerPhi = 6 |
| Layer rotation in global X-Y plane (gamma) at backward endplate.
|
|
static const baseType | layerDx = 11 |
| Layer shift in global X dX = foward - backward endplate.
|
|
static const baseType | layerDy = 12 |
| Layer shift in global Y dY = foward - backward endplate.
|
|
static const baseType | layerDPhi = 16 |
| Layer rotation in global X-Y plane (gamma) dPhi = foward - backward endplate.
|
|
CDC layers alignment constants.
Definition at line 19 of file CDCLayerAlignment.h.
◆ baseType
◆ ElementParameter
◆ ElementParameterMap
◆ CDCLayerAlignment()
Constructor.
Definition at line 40 of file CDCLayerAlignment.h.
DBObjCalibrationConstMapBase()
Constructor.
◆ ~CDCLayerAlignment()
◆ add()
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.
46{
47 double original =
get(
id, param);
48 double newValue = (subtractInsteadOfAdd) ? (original - value) : (original + value);
49 set(
id, param, newValue);
50 return newValue;
51}
virtual void set(baseType id, baseType param, double value)
Set parameter correction for given WireID and parameter number.
virtual double get(baseType id, baseType param) const
Get parameter value for given element and parameter number.
◆ dump()
Write all elements' parameters' values to standard output.
Definition at line 14 of file DBObjCalibrationConstMapBase.cc.
15{
17 std::cout << " Element " << elementParam.first.first << " Param " << elementParam.first.second << " Value = " << elementParam.second
18 << std::endl;
19 }
20}
ElementParameterMap m_constants
Map of map of all calibration elements' constants.
◆ get()
Get parameter value for given element and parameter number.
Definition at line 27 of file DBObjCalibrationConstMapBase.cc.
29{
30
33 return 0.;
34 }
35 return constant->second;
36}
◆ getGlobalParam()
double getGlobalParam |
( |
unsigned short |
element, |
|
|
unsigned short |
param |
|
) |
| |
|
inline |
Get global parameter FIXME does nothing because CDC is not ready.
Definition at line 50 of file CDCLayerAlignment.h.
51 {
52 return get(element, param);
53 }
◆ getGlobalUniqueID()
static unsigned short getGlobalUniqueID |
( |
| ) |
|
|
inlinestatic |
◆ getMap()
◆ listGlobalParams()
std::vector< std::pair< unsigned short, unsigned short > > listGlobalParams |
( |
| ) |
|
|
inline |
◆ set()
◆ setGlobalParam()
void setGlobalParam |
( |
double |
value, |
|
|
unsigned short |
element, |
|
|
unsigned short |
param |
|
) |
| |
|
inline |
Set global parameter FIXME does nothing because CDC is not ready.
Definition at line 55 of file CDCLayerAlignment.h.
56 {
57 set(element, param, value);
58 }
◆ layerDPhi
Layer rotation in global X-Y plane (gamma) dPhi = foward - backward endplate.
Definition at line 37 of file CDCLayerAlignment.h.
◆ layerDx
Layer shift in global X dX = foward - backward endplate.
Definition at line 33 of file CDCLayerAlignment.h.
◆ layerDy
Layer shift in global Y dY = foward - backward endplate.
Definition at line 35 of file CDCLayerAlignment.h.
◆ layerPhi
Layer rotation in global X-Y plane (gamma) at backward endplate.
Definition at line 30 of file CDCLayerAlignment.h.
◆ layerX
◆ layerY
◆ m_constants
The documentation for this class was generated from the following file: