Belle II Software development
BeamEventFlightTimeEstimator Class Reference

Concrete estimator for the regular beam event setup. More...

#include <FlightTimeEstimator.h>

Inheritance diagram for BeamEventFlightTimeEstimator:
FlightTimeEstimator

Public Member Functions

 BeamEventFlightTimeEstimator ()
 Constructor also setting up the flight time lookup table.
 
double getFlightTime2D (const Vector2D &pos2D, double alpha, double beta=1) const override
 Flight time estimator for regular beam events.
 

Static Public Member Functions

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

Private Attributes

LookupTable< float > m_firstPeriodAlphaFlightTimeFactor
 Lookup table for the sinc function.
 

Detailed Description

Concrete estimator for the regular beam event setup.

Definition at line 47 of file FlightTimeEstimator.h.

Constructor & Destructor Documentation

◆ BeamEventFlightTimeEstimator()

Constructor also setting up the flight time lookup table.

Definition at line 37 of file FlightTimeEstimator.cc.

38 : m_firstPeriodAlphaFlightTimeFactor(getFirstPeriodAlphaFlightTime,
39 512,
40 0,
41 std::nextafter(M_PI, INFINITY))
42{
43}
LookupTable< float > m_firstPeriodAlphaFlightTimeFactor
Lookup table for the sinc function.

Member Function Documentation

◆ getFlightTime2D()

double getFlightTime2D ( const Vector2D pos2D,
double  alpha,
double  beta = 1 
) const
inlineoverridevirtual

Flight time estimator for regular beam events.

Reimplemented from FlightTimeEstimator.

Definition at line 54 of file FlightTimeEstimator.h.

55 {
56 double absAlpha = std::fabs(alpha);
57 double directDist2D = pos2D.cylindricalR();
58 return directDist2D * m_firstPeriodAlphaFlightTimeFactor(absAlpha) / beta;
59 }

◆ instance()

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

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.

Member Data Documentation

◆ m_firstPeriodAlphaFlightTimeFactor

LookupTable<float> m_firstPeriodAlphaFlightTimeFactor
private

Lookup table for the sinc function.

Definition at line 63 of file FlightTimeEstimator.h.


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