Belle II Software development
OffOrigin.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 <cdc/topology/ILayer.h>
11
12#include <Math/Vector2D.h>
13
14namespace Belle2 {
19 namespace TrackFindingCDC {
20
24 template<class T>
25 class OffOrigin : public T {
26
27 public:
29 using Super = T;
30
32 using T::T;
33
34 public:
36 using HoughBox = typename T::HoughBox;
37
38 public:
41 TrackingUtilities::ESign getDistanceSign(const HoughBox& houghBox,
42 float x,
43 float y,
44 float signedDriftLength,
45 float dxdz = 0,
46 float dydz = 0,
47 CDC::ILayer /*iCLayer*/ = -1) const
48 {
49 return Super::getDistanceSign(houghBox,
52 signedDriftLength,
53 dxdz,
54 dydz,
55 -1);
56 }
57
58 public:
60 ROOT::Math::XYVector getLocalOrigin() const
61 { return ROOT::Math::XYVector(m_localOriginX, m_localOriginY); }
62
64 void setLocalOrigin(const ROOT::Math::XYVector& localOrigin)
65 {
66 m_localOriginX = localOrigin.x();
67 m_localOriginY = localOrigin.y();
68 }
69 private:
71 float m_localOriginX = 0.0;
72
74 float m_localOriginY = 0.0;
75
76 };
77 }
79}
Takes a basic object and passively moves it to any origin All subordinary coordinates have to be inte...
Definition OffOrigin.h:25
void setLocalOrigin(const ROOT::Math::XYVector &localOrigin)
Setter for the local origin relative to which the parameters of the hough space are understood.
Definition OffOrigin.h:64
typename T::HoughBox HoughBox
The houghBox to which this object corresponds.
Definition OffOrigin.h:36
T Super
Type of the base class.
Definition OffOrigin.h:29
ROOT::Math::XYVector getLocalOrigin() const
Getter for the local origin relative to which the parameters of the hough space are understood.
Definition OffOrigin.h:60
float m_localOriginX
The local origin x to which the original plane is displaced.
Definition OffOrigin.h:71
float m_localOriginY
The local origin y to which the original plane is displaced.
Definition OffOrigin.h:74
TrackingUtilities::ESign getDistanceSign(const HoughBox &houghBox, float x, float y, float signedDriftLength, float dxdz=0, float dydz=0, CDC::ILayer=-1) const
Function that gives the sign of the distance from an observed drift circle to the sweeped object.
Definition OffOrigin.h:41
signed short ILayer
The type of the layer ids enumerating layers within a superlayer.
Definition ILayer.h:18
Abstract base class for different kinds of events.