 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/filters/segmentPair/FitlessSegmentPairVarSet.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;
56 using namespace NPerigeeParameterIndices;
63 const double deltaCurvVar = fromCurvVar + toCurvVar;
64 const double avgPrecision = 1 / fromCurvVar + 1 / toCurvVar;
65 const double deltaCurvSigma = std::sqrt(deltaCurvVar);
67 finitevar<
named(
"abs_avg_curv")>() = std::fabs(toCurv / toCurvVar + fromCurv / fromCurvVar) / avgPrecision;
70 finitevar<
named(
"delta_curv_pull")>() = (toCurv - fromCurv) / deltaCurvSigma;
90 const double deltaPosPhi = fromFitPos.
angleWith(toFitPos);
91 const double deltaMomPhi = fromFitMom.
angleWith(toFitMom);
113 const Vector3D nearAxialRecoPos = nearAxialHit.reconstruct3D(axialFit);
115 const double farZ = farStereoRecoPos.
z();
118 const double nearZ = nearStereoRecoPos.
z();
120 const double stereoArcLength2D =
122 farStereoRecoPos.
xy());
124 const double arcLength2DGap =
126 nearStereoRecoPos.
xy());
129 finitevar<
named(
"stereo_arc_length")>() = fabs(stereoArcLength2D);
137 finitevar<
named(
"coarse_tanl")>() = (farZ - nearZ) / stereoArcLength2D;
139 finitevar<
named(
"stereo_rel_size")>() = fabs(stereoSegment.size() / stereoArcLength2D);
const CDCSegment2D * getStereoSegment() const
Getter for the stereo segment.
double getPValue() const
Getter for p-value.
double getArcLength2DFrontOffset(const AFromHits &fromHits, const AToHits &toHits) const
Calculates the perpendicular travel distance from the first position of the fromHits to the first pos...
double getTotalArcLength2D(const AHits &hits) const
Calculates the perpendicular travel distance from the first position of the hits to the last position...
size_t getNDF() const
Getter for the number of degrees of freedom of the circle fit.
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.
AssignFinite< Float_t > finitevar()
Reference getter for the value of the ith variable. Transforms non-finite values to finite value.
double getCurvature() const
Getter for the curvature as seen from the xy projection.
Vector2D getClosest(const Vector2D &point) const
Calculates the closest approach on the trajectory to the given point.
double getLocalVariance(EPerigeeParameter i) const
Getter for an individual diagonal element of the covariance matrix of the local helix parameters.
double getChi2() const
Getter for the chi2 value of the circle fit.
Particle trajectory as it is seen in xy projection represented as a circle.
const CDCSegment2D * getToSegment() const
Getter for the to segment.
bool extract(const CDCSegmentPair *ptrSegmentPair) final
Generate and assign the contained variables.
const CDCWire & getWire() const
Getter for the wire the reconstructed hit assoziated to.
double calcArcLength2DBetween(const Vector2D &fromPoint, const Vector2D &toPoint) const
Calculate the travel distance between the two given positions Returns the travel distance on the traj...
Class representing a two dimensional reconstructed hit in the central drift chamber.
CDCTrajectory2D & getTrajectory2D() const
Getter for the two dimensional trajectory fitted to the segment.
Abstract base class for different kinds of events.
A three dimensional limited line represented by its closest approach to the z-axes (reference positio...
Vector2D getFlightDirection2D(const Vector2D &point) const
Get the unit direction of flight at the given point, where arcLength2D = 0.
A three dimensional vector.
const WireLine & getWireLine() const
Getter for the wire line represenation of the wire.
bool isAxial() const
Indicator if the underlying wire is axial.
const Vector2D & xy() const
Getter for the xy projected vector ( reference ! )
double outOfZBoundsFactor(double z) const
Returns the amount how much the given z position is outside the bounds in units of the wire length.
bool isFitted() const
Checks if the circle is already set to a valid value.
double getArcLength2DGap(const AFromHits &fromHits, const AToHits &toHits) const
Calculates the perpendicular travel distance from the last position of the fromHits to the first posi...
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.
double z() const
Getter for the z coordinate.
const CDCSegment2D * getFromSegment() const
Getter for the from segment.
double getArcLength2DBackOffset(const AFromHits &fromHits, const AToHits &toHits) const
Calculates the perpendicular travel distance from the last position of the fromHits to the last posit...
Vector3D reconstruct3D(const CDCTrajectory2D &trajectory2D, const double z=0) const
Reconstruct the three dimensional position (especially of stereo hits) by determinating the z coordin...
static double normalised(const double angle)
Normalise an angle to lie in the range from [-pi, pi].
const CDCSegment2D * getAxialSegment() const
Getter for the axial segment.