Belle II Software development
PXDClusterOffsetPar.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#pragma once
9
10#include <TObject.h>
11
12namespace Belle2 {
22 class PXDClusterOffsetPar: public TObject {
23 public:
27 {}
28
36 PXDClusterOffsetPar(float uOffset, float vOffset, float uOffsetSigma2, float vOffsetSigma2, float uvCovariance):
37 m_uOffset(uOffset), m_vOffset(vOffset), m_uOffsetSigma2(uOffsetSigma2), m_vOffsetSigma2(vOffsetSigma2),
38 m_uvCovariance(uvCovariance)
39 {}
40
42 ~ PXDClusterOffsetPar() {}
43
46 void setU(float uOffset) { m_uOffset = uOffset; }
47
50 void setV(float vOffset) { m_vOffset = vOffset; }
51
54 void setUSigma2(float uOffsetSigma2) { m_uOffsetSigma2 = uOffsetSigma2; }
55
58 void setVSigma2(float vOffsetSigma2) { m_vOffsetSigma2 = vOffsetSigma2; }
59
62 void setUVCovariance(float uvCovariance) { m_uvCovariance = uvCovariance; }
63
66 float getU() const { return m_uOffset; }
67
70 float getV() const { return m_vOffset; }
71
74 float getUSigma2() const { return m_uOffsetSigma2; }
75
78 float getVSigma2() const { return m_vOffsetSigma2; }
79
82 float getUVCovariance() const { return m_uvCovariance; }
83
84 private:
85
87 float m_uOffset;
89 float m_vOffset;
96
97
99 };
101} // end of namespace Belle2
The class for PXD cluster position offset payload.
float getUSigma2() const
Get sigma squared for offset in r-phi.
float getV() const
Get v offset in z.
float m_uOffsetSigma2
Sigma squared for offset in r-phi.
void setVSigma2(float vOffsetSigma2)
Set sigma squared for offset in z.
void setV(float vOffset)
Set v offset in z.
void setU(float uOffset)
Set offset in r-phi.
float m_vOffsetSigma2
Sigma squared for offset in z.
void setUSigma2(float uOffsetSigma2)
Set sigma squared for offset in r-phi.
float m_uOffset
Positon offset in r-phi.
float getVSigma2() const
Get sigma squared for offset in z.
PXDClusterOffsetPar()
Default constructor.
PXDClusterOffsetPar(float uOffset, float vOffset, float uOffsetSigma2, float vOffsetSigma2, float uvCovariance)
Constructor.
float m_uvCovariance
Covariance between offsets.
float getUVCovariance() const
Get uv covariance.
ClassDef(PXDClusterOffsetPar, 2)
ClassDef, must be the last term before the closing {}.
float m_vOffset
Positon offset in z.
float getU() const
Get offset in r-phi.
void setUVCovariance(float uvCovariance)
Set uv covariance.
Abstract base class for different kinds of events.