Belle II Software  release-05-02-19
CDCLayerAlignment.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Tadeas Bilka (original) *
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 CDCLayerAlignment: public DBObjCalibrationConstMapBase {
22 
23  public:
24  //Numbering taken from Claus ... no need to change, good idea :-)
25  //(1: X(bwd), 2: Y(bwd), 6: Phi(bwd), 11: X(fwd-bwd), 12: Y(fwd-bwd), 16: Phi(fwd-bwd)
26 
28  static const baseType layerX = 1;
30  static const baseType layerY = 2;
32  static const baseType layerPhi = 6;
33 
35  static const baseType layerDx = 11;
37  static const baseType layerDy = 12;
39  static const baseType layerDPhi = 16;
40 
43 
46 
47  // ------------- Interface to global Millepede calibration ----------------
48  //TODO: enable the wire alignment
50  static unsigned short getGlobalUniqueID() {return 21;}
52  double getGlobalParam(unsigned short element, unsigned short param)
53  {
54  return get(element, param);
55  }
57  void setGlobalParam(double value, unsigned short element, unsigned short param)
58  {
59  set(element, param, value);
60  }
62  std::vector<std::pair<unsigned short, unsigned short>> listGlobalParams()
63  {
64  return {};
65  }
66  // ------------------------------------------------------------------------
67 
68  private:
71  };
72 
74 } // end namespace Belle2
75 
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::CDCLayerAlignment::layerX
static const baseType layerX
Layer shift in global X at backward endplate.
Definition: CDCLayerAlignment.h:36
Belle2::CDCLayerAlignment::layerDPhi
static const baseType layerDPhi
Layer rotation in global X-Y plane (gamma) dPhi = foward - backward endplate.
Definition: CDCLayerAlignment.h:47
Belle2::DBObjCalibrationConstMapBase
Base for calibration or alignment parameters identified by two unsigned shorts Typically first is som...
Definition: DBObjCalibrationConstMapBase.h:46
Belle2::CDCLayerAlignment::getGlobalUniqueID
static unsigned short getGlobalUniqueID()
Get global unique id.
Definition: CDCLayerAlignment.h:58
Belle2::CDCLayerAlignment
CDC layers alignment constants.
Definition: CDCLayerAlignment.h:29
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CDCLayerAlignment::layerDy
static const baseType layerDy
Layer shift in global Y dY = foward - backward endplate.
Definition: CDCLayerAlignment.h:45
Belle2::DBObjCalibrationConstMapBase::baseType
int baseType
The underlying element type (also for param id)
Definition: DBObjCalibrationConstMapBase.h:51
Belle2::CDCLayerAlignment::setGlobalParam
void setGlobalParam(double value, unsigned short element, unsigned short param)
Set global parameter FIXME does nothing because CDC is not ready.
Definition: CDCLayerAlignment.h:65
Belle2::CDCLayerAlignment::layerDx
static const baseType layerDx
Layer shift in global X dX = foward - backward endplate.
Definition: CDCLayerAlignment.h:43
Belle2::CDCLayerAlignment::listGlobalParams
std::vector< std::pair< unsigned short, unsigned short > > listGlobalParams()
list stored global parameters TODO FIXME CDC not ready
Definition: CDCLayerAlignment.h:70
Belle2::CDCLayerAlignment::ClassDef
ClassDef(CDCLayerAlignment, 1)
Storage for CDC alignment constants (mainly now for Millepede)
Belle2::CDCLayerAlignment::CDCLayerAlignment
CDCLayerAlignment()
Constructor.
Definition: CDCLayerAlignment.h:50
Belle2::CDCLayerAlignment::getGlobalParam
double getGlobalParam(unsigned short element, unsigned short param)
Get global parameter FIXME does nothing because CDC is not ready.
Definition: CDCLayerAlignment.h:60
Belle2::CDCLayerAlignment::layerY
static const baseType layerY
Layer shift in global Y at backward endplate.
Definition: CDCLayerAlignment.h:38
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::CDCLayerAlignment::~CDCLayerAlignment
~CDCLayerAlignment()
Destructor.
Definition: CDCLayerAlignment.h:53
Belle2::CDCLayerAlignment::layerPhi
static const baseType layerPhi
Layer rotation in global X-Y plane (gamma) at backward endplate.
Definition: CDCLayerAlignment.h:40