10#include <tracking/trackFindingCDC/geometry/Vector3D.h>
11#include <tracking/trackFindingCDC/geometry/Vector2D.h>
12#include <tracking/trackFindingCDC/numerics/LookupTable.h>
22 namespace TrackFindingCDC {
43 instance(std::unique_ptr<FlightTimeEstimator> replacement =
nullptr);
56 double absAlpha = std::fabs(alpha);
77 double deltaAlpha = pos2D.
angleWith(relPos2D);
79 double absAlpha = std::fabs(alpha);
Concrete estimator for the regular beam event setup.
LookupTable< float > m_firstPeriodAlphaFlightTimeFactor
Lookup table for the sinc function.
double getFlightTime2D(const Vector2D &pos2D, double alpha, double beta=1) const override
Flight time estimator for regular beam events.
BeamEventFlightTimeEstimator()
Constructor also setting up the flight time lookup table.
Concrete estimator for the cosmic ray setup - estimates negative times on incoming arm.
LookupTable< float > m_halfPeriodAlphaFlightTimeFactor
Lookup table for the sinc function.
double getFlightTime2D(const Vector2D &pos2D, double alpha, double beta=1) const override
Flight time estimator for cosmic ray events.
Vector3D m_triggerPoint
Trigger point of the cosmic ray setup.
Helper struct to provide consistent flight time estimation throughout the CDC track finding.
virtual ~FlightTimeEstimator()=default
Making the destructor virtual for this interface class.
static const FlightTimeEstimator & instance(std::unique_ptr< FlightTimeEstimator > replacement=nullptr)
Getter for the instance.
virtual double getFlightTime2D(const Vector2D &, double, double=1) const
Default estimator for the flight time.
Class which holds precomputed values of a function.
A two dimensional vector which is equipped with functions for correct handling of orientation relate...
double cylindricalR() const
Gives the cylindrical radius of the vector. Same as norm()
double angleWith(const Vector2D &rhs) const
The angle between this and rhs.
A three dimensional vector.
const Vector2D & xy() const
Getter for the xy projected vector ( reference ! )
Abstract base class for different kinds of events.