8#include <tracking/trackFindingCDC/filters/axialSegmentPair/FitAxialSegmentPairVarSet.h>
10#include <tracking/trackFindingCDC/fitting/CDCRiemannFitter.h>
12#include <tracking/trackingUtilities/eventdata/tracks/CDCAxialSegmentPair.h>
14#include <tracking/trackingUtilities/eventdata/segments/CDCSegment2D.h>
15#include <tracking/trackingUtilities/eventdata/hits/CDCRecoHit2D.h>
16#include <tracking/trackingUtilities/eventdata/trajectories/CDCTrajectory2D.h>
19using namespace TrackFindingCDC;
20using namespace TrackingUtilities;
24 if (not ptrAxialSegmentPair)
return false;
41 double dist = std::fabs(commonTrajectory2D.
getDist2D(recoHit2D.getRefPos2D())) - recoHit2D.getRefDriftLength();
42 noRLChi2 += dist * dist / recoHit2D.getRefDriftLengthVariance();
45 double dist = std::fabs(commonTrajectory2D.
getDist2D(recoHit2D.getRefPos2D())) - recoHit2D.getRefDriftLength();
46 noRLChi2 += dist * dist / recoHit2D.getRefDriftLengthVariance();
TrackingUtilities::CDCTrajectory2D fit(const CDCObservations2D &observations2D) const
Fits a collection of observation drift circles.
Class implementing the Riemann fit for two dimensional trajectory circle.
static const CDCRiemannFitter & getFitter()
Static getter for a general Riemann fitter.
bool extract(const TrackingUtilities::CDCAxialSegmentPair *ptrAxialSegmentPair) final
Generate and assign the contained variables.
Class representing a pair of reconstructed axial segments in adjacent superlayer.
void setTrajectory2D(const CDCTrajectory2D &trajectory2D) const
Setter for the trajectory of the two dimensional trajectory.
const CDCAxialSegment2D * getEndSegment() const
Getter for the end segment.
const CDCAxialSegment2D * getStartSegment() const
Getter for the start segment.
Class representing a two dimensional reconstructed hit in the central drift chamber.
A reconstructed sequence of two dimensional hits in one super layer.
Particle trajectory as it is seen in xy projection represented as a circle.
double getChi2() const
Getter for the chi2 value of the circle fit.
double getPValue() const
Getter for p-value.
bool isFitted() const
Checks if the circle is already set to a valid value.
double getLocalVariance(EPerigeeParameter i) const
Getter for an individual diagonal element of the covariance matrix of the local helix parameters.
size_t getNDF() const
Getter for the number of degrees of freedom of the circle fit.
double getDist2D(const Vector2D &point) const
Calculates the distance from the point to the trajectory as seen from the xy projection.
double getCurvature() const
Getter for the curvature as seen from the xy projection.
AssignFinite< Float_t > finitevar()
static constexpr int named(const char *name)
Namespace to hide the contained enum constants.
Abstract base class for different kinds of events.