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/trackingUtilities/geometry/SZLine.h>
10
11using namespace Belle2;
12using namespace TrackingUtilities;
13
14ROOT::Math::XYVector SZLine::intersection(const SZLine& szLine) const
15{
16 const double s = -(z0() - szLine.z0()) / (tanLambda() - szLine.tanLambda());
17 return ROOT::Math::XYVector(s, map(s));
18}
double z0() const
Getter for the z0 parameter.
Definition SZLine.h:84
ROOT::Math::XYVector 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:54
SZLine()
Default constructor for ROOT compatibility.
Definition SZLine.h:32
double map(double s) const
Maps the two dimensional arc length s to z.
Definition SZLine.h:118
Abstract base class for different kinds of events.