Belle II Software  release-05-01-25
SZLine.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include <tracking/trackFindingCDC/geometry/SZLine.h>
12 
13 using namespace Belle2;
14 using namespace TrackFindingCDC;
15 
16 Vector2D SZLine::intersection(const SZLine& szLine) const
17 {
18  const double s = -(z0() - szLine.z0()) / (tanLambda() - szLine.tanLambda());
19  return Vector2D(s, map(s));
20 }
Belle2::TrackFindingCDC::SZLine::tanLambda
double tanLambda() const
Getter for the tan lambda parameter.
Definition: SZLine.h:62
Belle2::TrackFindingCDC::Vector2D
A two dimensional vector which is equipped with functions for correct handeling of orientation relat...
Definition: Vector2D.h:37
Belle2::TrackFindingCDC::SZLine
A line in the sz space.
Definition: SZLine.h:36
Belle2::TrackFindingCDC::SZLine::z0
double z0() const
Getter for the z0 parameter.
Definition: SZLine.h:92
Belle2::TrackFindingCDC::SZLine::intersection
Vector2D intersection(const SZLine &szLine) const
Calculates the intersection point of two line. Infinity for parallels.
Definition: SZLine.cc:16
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::SZLine::map
double map(double s) const
Maps the two dimensional arc length s to z.
Definition: SZLine.h:126