 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/filters/segmentPair/HitGapSegmentPairVarSet.h>
12 #include <tracking/trackFindingCDC/eventdata/tracks/CDCSegmentPair.h>
13 #include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
15 #include <tracking/trackFindingCDC/topology/CDCWire.h>
17 #include <tracking/trackFindingCDC/numerics/Angle.h>
20 using namespace TrackFindingCDC;
24 if (not ptrSegmentPair)
return false;
46 const Vector2D hitPosGap = toFirstHitPos - fromLastHitPos;
47 const Vector2D longHitPosGap = toLastHitPos - fromFirstHitPos;
49 const double hitDistance = hitPosGap.
norm();
50 const double longHitDistance = longHitPosGap.
norm();
55 finitevar<
named(
"delta_hit_pos_phi")>() = fromLastHitPos.angleWith(toFirstHitPos);
58 double fromLastHitAlpha = fromLastHit.
getAlpha();
59 double toFirstHitAlpha = toFirstHit.
getAlpha();
65 finitevar<
named(
"delta_hit_distance")>() = longHitDistance - hitDistance;
84 double z = -relRefPos.
cross(axialHitMom) / movePerZ.
cross(axialHitMom);
89 double arcLengthGap = (stereoHitPos - axialHitPos).dot(axialHitMom);
Class representing a pair of one reconstructed axial segement and one stereo segment in adjacent supe...
A two dimensional vector which is equipped with functions for correct handeling of orientation relat...
Vector2D getRecoPos2D() const
Getter for the position in the reference plane.
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.
double dot(const Vector2D &rhs) const
Calculates the two dimensional dot product.
const CDCSegment2D * getToSegment() const
Getter for the to segment.
double cross(const Vector2D &rhs) const
Calculated the two dimensional cross product.
const Vector2D & refPos2D() const
Returns the xy vector of the reference position.
const CDCWire & getWire() const
Getter for the wire the reconstructed hit assoziated to.
Class representing a two dimensional reconstructed hit in the central drift chamber.
Abstract base class for different kinds of events.
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 WireLine & getWireLine() const
Getter for the wire line represenation of the wire.
bool isAxial() const
Indicator if the underlying wire is axial.
double outOfZBoundsFactor(double z) const
Returns the amount how much the given z position is outside the bounds in units of the wire length.
double norm() const
Calculates the length of the vector.
double getAlpha() const
Getter for the direction of flight relative to the position.
Class representing a sense wire in the central drift chamber.
A reconstructed sequence of two dimensional hits in one super layer.
constexpr static int named(const char *name)
Getter for the index from the name.
double angleWith(const Vector2D &rhs) const
The angle between this and rhs.
const CDCSegment2D * getFromSegment() const
Getter for the from segment.
Vector2D getFlightDirection2D() const
Getter for the direction of flight.
static double normalised(const double angle)
Normalise an angle to lie in the range from [-pi, pi].
static Vector2D average(const Vector2D &one, const Vector2D &two)
Constructs the average of two vectors.