CDC alignment and calibration constants.
More...
#include <CDCCalibration.h>
|
| CDCCalibration () |
| Constructor.
|
|
double | getLayerShiftX (int ICLayer) |
| Direct getter to X shift of layer.
|
|
double | getLayerShiftY (int ICLayer) |
| Direct getter to Y shift of layer.
|
|
| ~CDCCalibration () |
| Destructor.
|
|
double | getGlobalParam (unsigned short element, unsigned short param) |
| Get global parameter.
|
|
void | setGlobalParam (double value, unsigned short element, unsigned short param) |
| Set global parameter.
|
|
std::vector< std::pair< unsigned short, unsigned short > > | listGlobalParams () |
| TODO: list stored global parameters.
|
|
void | readFromResult (std::vector< std::tuple< unsigned short, unsigned short, unsigned short, double > > &) |
| Not used.
|
|
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.
|
|
|
| ClassDef (CDCCalibration, 2) |
| Storage for CDC alignment and calibration constants (mainly now for Millepede)
|
|
CDC alignment and calibration constants.
Definition at line 21 of file CDCCalibration.h.
◆ baseType
◆ ElementParameter
◆ ElementParameterMap
◆ CDCCalibration()
Constructor.
Definition at line 82 of file CDCCalibration.h.
DBObjCalibrationConstMapBase()
Constructor.
◆ ~CDCCalibration()
◆ 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 |
◆ getGlobalUniqueID()
static unsigned short getGlobalUniqueID |
( |
| ) |
|
|
inlinestatic |
◆ getLayerShiftX()
double getLayerShiftX |
( |
int |
ICLayer | ) |
|
|
inline |
Direct getter to X shift of layer.
Definition at line 85 of file CDCCalibration.h.
static const baseType Wire4Layers
layer = (ICLayer, 400)
static const baseType layerX
Layer X position w.r.t. geometry.
◆ getLayerShiftY()
double getLayerShiftY |
( |
int |
ICLayer | ) |
|
|
inline |
Direct getter to Y shift of layer.
Definition at line 87 of file CDCCalibration.h.
static const baseType layerY
Layer Y position w.r.t. geometry.
◆ getMap()
◆ listGlobalParams()
std::vector< std::pair< unsigned short, unsigned short > > listGlobalParams |
( |
| ) |
|
|
inline |
◆ readFromResult()
void readFromResult |
( |
std::vector< std::tuple< unsigned short, unsigned short, unsigned short, double > > & |
| ) |
|
|
inline |
◆ set()
◆ setGlobalParam()
void setGlobalParam |
( |
double |
value, |
|
|
unsigned short |
element, |
|
|
unsigned short |
param |
|
) |
| |
|
inline |
◆ boardT0
◆ endPlateBwdPhi
Backward endplate rotation w.r.t. nominal (geometry)
Definition at line 77 of file CDCCalibration.h.
◆ endPlateFwdDphi
Forward enplate rotation taking endPlateBwdPhi as new nominal.
Definition at line 79 of file CDCCalibration.h.
◆ ICLayerNone
◆ layerX
◆ layerY
◆ m_constants
◆ Wire4EndPartInner
◆ Wire4EndPartMiddle
◆ Wire4EndPartOuter
◆ Wire4Layers
◆ Wire4SuperLayers
◆ wireBwdX
Wire X position w.r.t. nominal on backward endplate.
Definition at line 42 of file CDCCalibration.h.
◆ wireBwdY
Wire Y position w.r.t. nominal on backward endplate.
Definition at line 44 of file CDCCalibration.h.
◆ wireBwdZ
Wire Z position w.r.t. nominal on backward endplate.
Definition at line 46 of file CDCCalibration.h.
◆ wireFwdDx
Wire X position on forward enplate taking wireBwdX as new nominal.
Definition at line 48 of file CDCCalibration.h.
◆ wireFwdDy
Wire Y position on forward enplate taking wireBwdY as new nominal.
Definition at line 50 of file CDCCalibration.h.
◆ wireFwdDz
Wire Z position on forward enplate taking wireBwdZ as new nominal.
Definition at line 52 of file CDCCalibration.h.
◆ WireNone
Last bit for wire (actually over 100 unused - but useful for us)
Definition at line 26 of file CDCCalibration.h.
◆ wireT0
Wire T0 correction w.r.t. common board T0.
Definition at line 63 of file CDCCalibration.h.
◆ wireTension
◆ xTlayerP0
Layer dependent constant (order 0) correction to x-t relation.
Definition at line 73 of file CDCCalibration.h.
The documentation for this class was generated from the following file: