8 #include <tracking/trackFindingCDC/filters/segmentPair/HitGapSegmentPairVarSet.h>
10 #include <tracking/trackFindingCDC/eventdata/tracks/CDCSegmentPair.h>
11 #include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
13 #include <tracking/trackFindingCDC/topology/CDCWire.h>
15 #include <tracking/trackFindingCDC/numerics/Angle.h>
18 using namespace TrackFindingCDC;
22 if (not ptrSegmentPair)
return false;
44 const Vector2D hitPosGap = toFirstHitPos - fromLastHitPos;
45 const Vector2D longHitPosGap = toLastHitPos - fromFirstHitPos;
47 const double hitDistance = hitPosGap.
norm();
48 const double longHitDistance = longHitPosGap.
norm();
56 double fromLastHitAlpha = fromLastHit.
getAlpha();
57 double toFirstHitAlpha = toFirstHit.
getAlpha();
63 finitevar<
named(
"delta_hit_distance")>() = longHitDistance - hitDistance;
82 double z = -relRefPos.
cross(axialHitMom) / movePerZ.
cross(axialHitMom);
87 double arcLengthGap = (stereoHitPos - axialHitPos).
dot(axialHitMom);
Class representing a two dimensional reconstructed hit in the central drift chamber.
bool isAxial() const
Indicator if the underlying wire is axial.
double getAlpha() const
Getter for the direction of flight relative to the position.
Vector2D getFlightDirection2D() const
Getter for the direction of flight.
Vector2D getRecoPos2D() const
Getter for the position in the reference plane.
const CDCWire & getWire() const
Getter for the wire the reconstructed hit assoziated to.
A reconstructed sequence of two dimensional hits in one super layer.
Class representing a pair of one reconstructed axial segement and one stereo segment in adjacent supe...
const CDCSegment2D * getFromSegment() const
Getter for the from segment.
const CDCSegment2D * getToSegment() const
Getter for the to segment.
Class representing a sense wire in the central drift chamber.
const WireLine & getWireLine() const
Getter for the wire line represenation of the wire.
bool extract(const CDCSegmentPair *ptrSegmentPair) override
Generate and assign the contained variables.
constexpr static int named(const char *name)
Getter for the index from the name.
AssignFinite< Float_t > finitevar()
Reference getter for the value of the ith variable. Transforms non-finite values to finite value.
A two dimensional vector which is equipped with functions for correct handeling of orientation relat...
double dot(const Vector2D &rhs) const
Calculates the two dimensional dot product.
static Vector2D average(const Vector2D &one, const Vector2D &two)
Constructs the average of two vectors.
double cross(const Vector2D &rhs) const
Calculated the two dimensional cross product.
double angleWith(const Vector2D &rhs) const
The angle between this and rhs.
double norm() const
Calculates the length of the vector.
A three dimensional limited line represented by its closest approach to the z-axes (reference positio...
double outOfZBoundsFactor(double z) const
Returns the amount how much the given z position is outside the bounds in units of the wire length.
const Vector2D & refPos2D() const
Returns the xy vector of the reference position.
const Vector2D & nominalMovePerZ() const
Gives the positional move in the xy projection per unit z.
T dot(GeneralVector< T > a, GeneralVector< T > b)
dot product of two general vectors
Abstract base class for different kinds of events.
static double normalised(const double angle)
Normalise an angle to lie in the range from [-pi, pi].