 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/eventdata/hits/CDCTangent.h>
12 #include <tracking/trackFindingCDC/eventdata/hits/CDCRecoHit2D.h>
13 #include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHitPair.h>
14 #include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHit.h>
16 #include <tracking/trackFindingCDC/geometry/ParameterLine2D.h>
17 #include <tracking/trackFindingCDC/geometry/Vector2D.h>
19 #include <tracking/trackFindingCDC/numerics/ERightLeft.h>
24 using namespace TrackFindingCDC;
108 output <<
"Tangent" << std::endl;
ERightLeft isRightOrLeft(const Vector2D &point) const
Return if the point given is right or left of the line.
std::ostream & operator<<(std::ostream &output, const IntervalOfValidity &iov)
static ParameterLine2D touchingCircles(const Vector2D &fromCenter, double fromSignedRadius, const Vector2D &toCenter, double toSignedRadius)
Constructs a line touching two circles in one point each.
void reverse()
Reverses the tangential vector inplace.
A two dimensional vector which is equipped with functions for correct handeling of orientation relat...
ERightLeft getFromRLInfo() const
Getter for the right left passage information of the first oriented wire hit.
const ParameterLine2D & getLine() const
Getter for the line representation of the line.
ERightLeft getToRLInfo() const
Getter for the right left passage information of the second oriented wire hit.
static CDCRecoHit2D fromRecoPos2D(const CDCRLWireHit &rlWireHit, const Vector2D &recoPos2D, bool snap=true)
Constructs a two dimensional reconstructed hit from an absolute position.
void reverse()
Reverses the tangent inplace.
CDCRLWireHit & getToRLWireHit()
Getter for the second oriented wire hit.
CDCRecoHit2D getFromRecoHit2D() const
Getter for the reconstructed hit on the first oriented wire hit using reconstructed touch point as po...
const Vector2D & getFromRecoPos2D() const
Getter for the touching point of the tangent to the first drift circle.
void setToRLInfo(ERightLeft toRLInfo)
Setter for the right left passage information of the second oriented wire hit.
A line with a support point and tangential vector.
Vector2D getToRecoDisp2D() const
Getter for displacement of the touching point from the second wire in the reference plane.
CDCTangent reversed() const
Same as reverse but returns a copy.
Vector2D getToRecoPos2D() const
Getter for the touching point of the tangent to the second drift circle.
CDCRLWireHit & getFromRLWireHit()
Getter for the first oriented wire hit.
CDCRLWireHitPair reversed() const
Constructs a oriented wire hit pair that is the reverse of this one.
void reverse()
Reverses the oriented wire hit pair inplace.
Class representing a two dimensional reconstructed hit in the central drift chamber.
Abstract base class for different kinds of events.
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
Class representating a linear track piece between two oriented wire hits.
Vector2D getFromRecoDisp2D() const
Getter for displacement of the touching point from the first wire in the reference plane.
static ParameterLine2D throughPoints(const Vector2D &start, const Vector2D &end)
Static constructor for a line between to points.
CDCTangent()=default
Default constructor for ROOT.
ERightLeft
Enumeration to represent the distinct possibilities of the right left passage.
void adjustRLInfo()
Adjusts the right left passage information according to the tangent line.
CDCRecoHit2D getToRecoHit2D() const
Getter for the reconstructed hit on the second oriented wire hit using reconstructed touch point as p...
A pair of oriented wire hits.
const Vector2D & getRefPos2D() const
The two dimensional reference position of the underlying wire.
void passiveMoveAtBy(const double delta)
Moves the support point by the given amount of the parameter in the forward direction.
ParameterLine2D m_line
Memory for the line between the two touching points. The first touch point at(0), second at(1).
void adjustLine()
Adjusts the line to touch the drift circles with the correct right left passage information.
void setFromRLInfo(ERightLeft fromRLInfo)
Setter for the right left passage information of the first oriented wire hit.