10#include <tracking/trackingUtilities/eventdata/hits/CDCRLWireHitPair.h>
12#include <tracking/trackingUtilities/geometry/ParameterLine2D.h>
13#include <framework/geometry/VectorUtil.h>
15#include <Math/Vector2D.h>
24 namespace TrackingUtilities {
120 std::ostream& operator<<(std::ostream& output,
const CDCTangent& tangent);
CDCRLWireHitPair()=default
Default constructor for ROOT.
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
Class representing a two dimensional reconstructed hit in the central drift chamber.
Class representing a linear track piece between two oriented wire hits.
void adjustRLInfo()
Adjusts the right left passage information according to the tangent line.
CDCTangent()=default
Default constructor for ROOT.
const ROOT::Math::XYVector & getFromRecoPos2D() const
Getter for the touching point of the tangent to the first drift circle.
double getCosFlightDifference(const CDCTangent &tangent) const
Returns the cosine of the angle between the two flight directions of the tangents.
ParameterLine2D m_line
Memory for the line between the two touching points. The first touch point at(0), second at(1).
ROOT::Math::XYVector getFromRecoDisp2D() const
Getter for displacement of the touching point from the first wire in the reference plane.
const ROOT::Math::XYVector & getFlightVec2D() const
Getter for the vector from the first to the second touch point.*/.
CDCRecoHit2D getToRecoHit2D() const
Getter for the reconstructed hit on the second oriented wire hit using reconstructed touch point as p...
ROOT::Math::XYVector getToRecoDisp2D() const
Getter for displacement of the touching point from the second wire in the reference plane.
void reverse() override
Reverses the tangent inplace.
void adjustLine()
Adjusts the line to touch the drift circles with the correct right left passage information.
CDCRecoHit2D getFromRecoHit2D() const
Getter for the reconstructed hit on the first oriented wire hit using reconstructed touch point as po...
const ParameterLine2D & getLine() const
Getter for the line representation of the line.
CDCTangent reversed() const
Same as reverse but returns a copy.
ROOT::Math::XYVector getToRecoPos2D() const
Getter for the touching point of the tangent to the second drift circle.
A line with a support point and tangential vector.
const ROOT::Math::XYVector & support() const
Gives the support vector of the line.
const ROOT::Math::XYVector & tangential() const
Gives the tangential vector of the line.
ROOT::Math::XYVector at(const double parameter) const
Evaluates the line formula at the parameter given.
Abstract base class for different kinds of events.