Belle II Software development
VXDAlignment.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <calibration/DBObjCalibrationConstMapBase.h>
12
13namespace Belle2 {
20 public:
21 // Alignment parameters unique identifiers:
23 static const baseType dU = 1;
25 static const baseType dV = 2;
27 static const baseType dW = 3;
29 static const baseType dAlpha = 4;
31 static const baseType dBeta = 5;
33 static const baseType dGamma = 6;
34 // Calibrations (tentative):
36 static const baseType dLorentzAngle = 11;
38 static const baseType dLayerLorentzAngle = 12;
39
44
45 // ------------- Interface to global Millepede calibration ----------------
47 static unsigned short getGlobalUniqueID() {return 10;}
49 double getGlobalParam(unsigned short element, unsigned short param) {return get(element, param);}
51 void setGlobalParam(double value, unsigned short element, unsigned short param) {set(element, param, value);}
53 std::vector<std::pair<unsigned short, unsigned short>> listGlobalParams() {return {};}
55 void readFromResult(std::vector<std::tuple<unsigned short, unsigned short, unsigned short, double>>&) {}
56 // ------------------------------------------------------------------------
57
58 private:
60 };
62} // end namespace Belle2
63
Base for calibration or alignment parameters identified by two unsigned shorts Typically first is som...
virtual void set(baseType id, baseType param, double value)
Set parameter correction for given WireID and parameter number.
int baseType
The underlying element type (also for param id)
virtual double get(baseType id, baseType param) const
Get parameter value for given element and parameter number.
VXD alignment (and maybe some calibration) parameters.
Definition: VXDAlignment.h:19
std::vector< std::pair< unsigned short, unsigned short > > listGlobalParams()
TODO: list stored global parameters.
Definition: VXDAlignment.h:53
static unsigned short getGlobalUniqueID()
Get global unique id.
Definition: VXDAlignment.h:47
static const baseType dLorentzAngle
Correction of common Lorentz shift w.r.t. nominal.
Definition: VXDAlignment.h:36
void readFromResult(std::vector< std::tuple< unsigned short, unsigned short, unsigned short, double > > &)
Not used.
Definition: VXDAlignment.h:55
static const baseType dAlpha
Sensor/layer/ladder alignment in local alpha.
Definition: VXDAlignment.h:29
static const baseType dGamma
Sensor/layer/ladder alignment in local gamma.
Definition: VXDAlignment.h:33
double getGlobalParam(unsigned short element, unsigned short param)
Get global parameter.
Definition: VXDAlignment.h:49
ClassDef(VXDAlignment, 2)
VXD allignment and calibration constants.
static const baseType dLayerLorentzAngle
Correction of Lorentz shift w.r.t. common per layer.
Definition: VXDAlignment.h:38
void setGlobalParam(double value, unsigned short element, unsigned short param)
Set global parameter.
Definition: VXDAlignment.h:51
static const baseType dW
Sensor/layer/ladder alignment in local w.
Definition: VXDAlignment.h:27
static const baseType dBeta
Sensor/layer/ladder alignment in local beta.
Definition: VXDAlignment.h:31
static const baseType dU
Sensor/layer/ladder alignment in local u.
Definition: VXDAlignment.h:23
VXDAlignment()
Constructor.
Definition: VXDAlignment.h:41
~VXDAlignment()
Destructor.
Definition: VXDAlignment.h:43
static const baseType dV
Sensor/layer/ladder alignment in local v.
Definition: VXDAlignment.h:25
Abstract base class for different kinds of events.