Belle II Software development
CDCLayerAlignment.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
21 public:
22 //Numbering taken from Claus ... no need to change, good idea :-)
23 //(1: X(bwd), 2: Y(bwd), 6: Phi(bwd), 11: X(fwd-bwd), 12: Y(fwd-bwd), 16: Phi(fwd-bwd)
24
26 static const baseType layerX = 1;
28 static const baseType layerY = 2;
30 static const baseType layerPhi = 6;
31
33 static const baseType layerDx = 11;
35 static const baseType layerDy = 12;
37 static const baseType layerDPhi = 16;
38
41
44
45 // ------------- Interface to global Millepede calibration ----------------
46 //TODO: enable the wire alignment
48 static unsigned short getGlobalUniqueID() {return 21;}
50 double getGlobalParam(unsigned short element, unsigned short param)
51 {
52 return get(element, param);
53 }
55 void setGlobalParam(double value, unsigned short element, unsigned short param)
56 {
57 set(element, param, value);
58 }
60 std::vector<std::pair<unsigned short, unsigned short>> listGlobalParams()
61 {
62 return {};
63 }
64 // ------------------------------------------------------------------------
65
66 private:
69 };
70
72} // end namespace Belle2
73
CDC layers alignment constants.
std::vector< std::pair< unsigned short, unsigned short > > listGlobalParams()
list stored global parameters TODO FIXME CDC not ready
static unsigned short getGlobalUniqueID()
Get global unique id.
static const baseType layerDPhi
Layer rotation in global X-Y plane (gamma) dPhi = foward - backward endplate.
static const baseType layerDy
Layer shift in global Y dY = foward - backward endplate.
static const baseType layerDx
Layer shift in global X dX = foward - backward endplate.
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.
static const baseType layerY
Layer shift in global Y at backward endplate.
static const baseType layerX
Layer shift in global X at backward endplate.
ClassDef(CDCLayerAlignment, 1)
Storage for CDC alignment constants (mainly now for Millepede)
static const baseType layerPhi
Layer rotation in global X-Y plane (gamma) at backward endplate.
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.
Abstract base class for different kinds of events.