8#include <tracking/trackFindingCDC/eventdata/hits/CDCFacet.h>
10#include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHitTriple.h>
11#include <tracking/trackFindingCDC/eventdata/hits/CDCTangent.h>
12#include <tracking/trackFindingCDC/eventdata/hits/CDCRecoHit2D.h>
13#include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHit.h>
14#include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
16#include <tracking/trackFindingCDC/topology/CDCWire.h>
18#include <tracking/trackFindingCDC/geometry/UncertainParameterLine2D.h>
19#include <tracking/trackFindingCDC/geometry/ParameterLine2D.h>
20#include <tracking/trackFindingCDC/geometry/Vector2D.h>
22#include <tracking/trackFindingCDC/ca/AutomatonCell.h>
25using namespace TrackFindingCDC;
void setMaskedFlag(bool setTo=true)
Sets the masked flag to the given value. Default value true.
void unsetMaskedFlag()
Resets the masked flag to false.
Class representing a triple of neighboring oriented wire with additional trajectory information.
void adjustFitLine() const
Adjusts the contained fit line to touch such that it touches the first and third hit.
ParameterLine2D getStartToEndLine() const
Getter for the tangential line from the first to the third hit.
CDCRecoHit2D getEndRecoHit2D() const
Getter for the third reconstructed hit.
void reverse()
Reverses the facet in place including the fit line.
CDCRecoHit2D getMiddleRecoHit2D() const
Getter for the second reconstructed hit.
CDCFacet()=default
Default constructor for ROOT.
AutomatonCell & getAutomatonCell() const
Mutable getter for the automaton cell.
UncertainParameterLine2D m_fitLine
Memory for a line fit to the three contained hits.
void setAndForwardMaskedFlag() const
Sets the masked flag of the facet's automaton cell and of the three contained wire hits.
Vector2D getEndRecoPos2D() const
Getter for the reconstructed position at the third hit on the fit line.
void unsetAndForwardMaskedFlag() const
Unset the masked flag of the facet's automaton cell and of the three contained wire hits.
const UncertainParameterLine2D & getFitLine() const
Getter for the contained line fit information.
CDCRecoHit2D getStartRecoHit2D() const
Getter for the first reconstructed hit.
void invalidateFitLine()
Clear all information in the fit.
CDCTangent getStartToEnd() const
Getter for the tangential line including the hits from the first to the third hit.
CDCFacet reversed() const
Constructs the reverse triple from this one.
CDCTangent getMiddleToEnd() const
Getter for the tangential line including the hits from the second to the third hit.
void receiveMaskedFlag() const
If one of the contained wire hits is marked as masked this facet is set be masked as well.
Vector2D getMiddleRecoPos2D() const
Getter for the reconstructed position at the second hit on the fit line.
ParameterLine2D getStartToMiddleLine() const
Getter for the tangential line from the first to the second hit.
CDCTangent getStartToMiddle() const
Getter for the tangential line including the hits from the first to the second hit.
ParameterLine2D getMiddleToEndLine() const
Getter for the tangential line from the second to the third hit.
Vector2D getStartRecoPos2D() const
Getter for the reconstructed position at the first hit on the fit line.
Class representing a triple of neighboring wire hits.
const CDCWireHit & getMiddleWireHit() const
Getter for the hit wire of the second oriented wire hit.
void reverse()
Reverses the triple inplace.
const CDCWire & getStartWire() const
Getter for the wire the first oriented wire hit is based on.
const CDCWire & getMiddleWire() const
Getter for the wire the second oriented wire hit is based on.
CDCRLWireHit & getStartRLWireHit()
Getter for the first oriented wire hit.
const CDCWireHit & getEndWireHit() const
Getter for the hit wire of the third oriented wire hit.
const CDCWireHit & getStartWireHit() const
Getter for the hit wire of the first oriented wire hit.
const CDCWire & getEndWire() const
Getter for the wire the third oriented wire hit is based on.
CDCRLWireHit & getEndRLWireHit()
Getter for the third oriented wire hit.
CDCRLWireHit & getMiddleRLWireHit()
Getter for the second oriented wire hit.
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.
static CDCRecoHit2D fromRecoPos2D(const CDCRLWireHit &rlWireHit, const Vector2D &recoPos2D, bool snap=true)
Constructs a two dimensional reconstructed hit from an absolute position.
Class representing a linear track piece between two oriented wire hits.
AutomatonCell & getAutomatonCell() const
Mutable getter for the automaton cell.
A line with a support point and tangential vector.
static ParameterLine2D touchingCircles(const Vector2D &fromCenter, double fromSignedRadius, const Vector2D &toCenter, double toSignedRadius)
Constructs a line touching two circles in one point each.
Vector2D closest(const Vector2D &point) const
Gives the position at the closest approach on the line to point.
A parameter line including including an line covariance matrix which is interpreted as located in the...
void reverse()
Reverses the direction of flight represented by this line.
UncertainParameterLine2D reversed() const
Returns a copy of the line corresponding to the reverse direction of travel.
void invalidate()
Sets all line parameters to zero including the covariance matrix.
A two dimensional vector which is equipped with functions for correct handling of orientation relate...
Abstract base class for different kinds of events.