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>
18using 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.
const CDCWire & getWire() const
Getter for the wire the reconstructed hit associated to.
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.
A reconstructed sequence of two dimensional hits in one super layer.
Class representing a pair of one reconstructed axial segment and one stereo segment in adjacent super...
const CDCSegment2D * getToSegment() const
Getter for the to segment.
const CDCSegment2D * getFromSegment() const
Getter for the from segment.
Class representing a sense wire in the central drift chamber.
const WireLine & getWireLine() const
Getter for the wire line representation of the wire.
bool extract(const CDCSegmentPair *ptrSegmentPair) override
Generate and assign the contained variables.
AssignFinite< Float_t > finitevar()
Reference getter for the value of the ith variable. Transforms non-finite values to finite value.
static constexpr int named(const char *name)
Getter for the index from the name.
A two dimensional vector which is equipped with functions for correct handling of orientation relate...
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...
const Vector2D & nominalMovePerZ() const
Gives the positional move in the xy projection per unit z.
const Vector2D & refPos2D() const
Returns the xy vector of the reference position.
double outOfZBoundsFactor(double z) const
Returns the amount how much the given z position is outside the bounds in units of the wire length.
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].