Belle II Software development
FlightTimeEstimator Class Reference

Helper struct to provide consistent flight time estimation throughout the CDC track finding. More...

#include <FlightTimeEstimator.h>

Inheritance diagram for FlightTimeEstimator:
BeamEventFlightTimeEstimator CosmicRayFlightTimeEstimator

Public Member Functions

virtual ~FlightTimeEstimator ()=default
 Making the destructor virtual for this interface class.
 
virtual double getFlightTime2D (const Vector2D &, double, double=1) const
 Default estimator for the flight time.
 

Static Public Member Functions

static const FlightTimeEstimatorinstance (std::unique_ptr< FlightTimeEstimator > replacement=nullptr)
 Getter for the instance.
 

Detailed Description

Helper struct to provide consistent flight time estimation throughout the CDC track finding.

Definition at line 27 of file FlightTimeEstimator.h.

Member Function Documentation

◆ getFlightTime2D()

virtual double getFlightTime2D ( const Vector2D ,
double  ,
double  = 1 
) const
inlinevirtual

Default estimator for the flight time.

Reimplemented in BeamEventFlightTimeEstimator, and CosmicRayFlightTimeEstimator.

Definition at line 35 of file FlightTimeEstimator.h.

36 {
37 return 0;
38 }

◆ instance()

const FlightTimeEstimator & instance ( std::unique_ptr< FlightTimeEstimator replacement = nullptr)
static

Getter for the instance.

Definition at line 21 of file FlightTimeEstimator.cc.

22{
23 static std::unique_ptr<FlightTimeEstimator> s_instance(new FlightTimeEstimator);
24 if (replacement) {
25 s_instance = std::move(replacement);
26 }
27 return *s_instance;
28}
Helper struct to provide consistent flight time estimation throughout the CDC track finding.

The documentation for this class was generated from the following files: