Belle II Software  release-05-01-25
VXDAlignment.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Tadeas Bilka *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <calibration/DBObjCalibrationConstMapBase.h>
14 
15 namespace Belle2 {
20  class VXDAlignment: public DBObjCalibrationConstMapBase {
22  public:
23  // Alignment parameters unique identifiers:
25  static const baseType dU = 1;
27  static const baseType dV = 2;
29  static const baseType dW = 3;
31  static const baseType dAlpha = 4;
33  static const baseType dBeta = 5;
35  static const baseType dGamma = 6;
36  // Calibrations (tentative):
38  static const baseType dLorentzAngle = 11;
40  static const baseType dLayerLorentzAngle = 12;
41 
45  ~VXDAlignment() {}
46 
47  // ------------- Interface to global Millepede calibration ----------------
49  static unsigned short getGlobalUniqueID() {return 10;}
51  double getGlobalParam(unsigned short element, unsigned short param) {return get(element, param);}
53  void setGlobalParam(double value, unsigned short element, unsigned short param) {set(element, param, value);}
55  std::vector<std::pair<unsigned short, unsigned short>> listGlobalParams() {return {};}
57  void readFromResult(std::vector<std::tuple<unsigned short, unsigned short, unsigned short, double>>&) {}
58  // ------------------------------------------------------------------------
59 
60  private:
62  };
64 } // end namespace Belle2
65 
Belle2::VXDAlignment::dU
static const baseType dU
Sensor/layer/ladder alignment in local u.
Definition: VXDAlignment.h:33
Belle2::VXDAlignment::dW
static const baseType dW
Sensor/layer/ladder alignment in local w.
Definition: VXDAlignment.h:37
Belle2::DBObjCalibrationConstMapBase::set
virtual void set(baseType id, baseType param, double value)
Set parameter correction for given WireID and parameter number.
Definition: DBObjCalibrationConstMapBase.cc:31
Belle2::VXDAlignment::getGlobalParam
double getGlobalParam(unsigned short element, unsigned short param)
Get global parameter.
Definition: VXDAlignment.h:59
Belle2::VXDAlignment::dV
static const baseType dV
Sensor/layer/ladder alignment in local v.
Definition: VXDAlignment.h:35
Belle2::VXDAlignment::VXDAlignment
VXDAlignment()
Constructor.
Definition: VXDAlignment.h:51
Belle2::VXDAlignment::getGlobalUniqueID
static unsigned short getGlobalUniqueID()
Get global unique id.
Definition: VXDAlignment.h:57
Belle2::DBObjCalibrationConstMapBase
Base for calibration or alignment parameters identified by two unsigned shorts Typically first is som...
Definition: DBObjCalibrationConstMapBase.h:46
Belle2::VXDAlignment::dGamma
static const baseType dGamma
Sensor/layer/ladder alignment in local gamma.
Definition: VXDAlignment.h:43
Belle2::VXDAlignment::~VXDAlignment
~VXDAlignment()
Destructor.
Definition: VXDAlignment.h:53
Belle2::VXDAlignment::dAlpha
static const baseType dAlpha
Sensor/layer/ladder alignment in local alpha.
Definition: VXDAlignment.h:39
Belle2::VXDAlignment::dLorentzAngle
static const baseType dLorentzAngle
Correction of common Lorentz shift w.r.t. nominal.
Definition: VXDAlignment.h:46
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::VXDAlignment::dLayerLorentzAngle
static const baseType dLayerLorentzAngle
Correction of Lorentz shift w.r.t. common per layer.
Definition: VXDAlignment.h:48
Belle2::DBObjCalibrationConstMapBase::baseType
int baseType
The underlying element type (also for param id)
Definition: DBObjCalibrationConstMapBase.h:51
Belle2::VXDAlignment::listGlobalParams
std::vector< std::pair< unsigned short, unsigned short > > listGlobalParams()
TODO: list stored global parameters.
Definition: VXDAlignment.h:63
Belle2::VXDAlignment::setGlobalParam
void setGlobalParam(double value, unsigned short element, unsigned short param)
Set global parameter.
Definition: VXDAlignment.h:61
Belle2::VXDAlignment::ClassDef
ClassDef(VXDAlignment, 2)
VXD allignment and calibration constants.
Belle2::VXDAlignment::dBeta
static const baseType dBeta
Sensor/layer/ladder alignment in local beta.
Definition: VXDAlignment.h:41
Belle2::VXDAlignment::readFromResult
void readFromResult(std::vector< std::tuple< unsigned short, unsigned short, unsigned short, double >> &)
Not used.
Definition: VXDAlignment.h:65
Belle2::DBObjCalibrationConstMapBase::get
virtual double get(baseType id, baseType param) const
Get parameter value for given element and parameter number.
Definition: DBObjCalibrationConstMapBase.cc:20
Belle2::VXDAlignment
VXD alignment (and maybe some calibration) parameters.
Definition: VXDAlignment.h:29