Belle II Software development
SZLine.cc
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#include <tracking/trackFindingCDC/geometry/SZLine.h>
10
11using namespace Belle2;
12using namespace TrackFindingCDC;
13
15{
16 const double s = -(z0() - szLine.z0()) / (tanLambda() - szLine.tanLambda());
17 return Vector2D(s, map(s));
18}
A line in the sz space.
Definition: SZLine.h:26
double z0() const
Getter for the z0 parameter.
Definition: SZLine.h:82
Vector2D intersection(const SZLine &szLine) const
Calculates the intersection point of two line. Infinity for parallels.
Definition: SZLine.cc:14
double tanLambda() const
Getter for the tan lambda parameter.
Definition: SZLine.h:52
double map(double s) const
Maps the two dimensional arc length s to z.
Definition: SZLine.h:116
A two dimensional vector which is equipped with functions for correct handling of orientation relate...
Definition: Vector2D.h:32
Abstract base class for different kinds of events.