8#include <tracking/modules/fitter/timeEstimator/RadiusTrackTimeEstimatorModule.h>
10#include <tracking/dataobjects/RecoTrack.h>
11#include <framework/dataobjects/Helix.h>
12#include <framework/geometry/BFieldManager.h>
21 "Radius used for extrapolation. Please be aware that if the RecoTrack does not reach this radius, "
32 }
catch (
const genfit::Exception& e) {
33 B2WARNING(
"Extrapolation failed: " << e.what());
45 const Helix h(position, momentum, charge, bZ);
47 const double s = arcLengthOfIntersection * hypot(1, h.getTanLambda());
Base Module estimating the track time of RecoTracks - before or after the fit.
double estimateFlightLengthUsingSeedInformation(const RecoTrack &recoTrack) const override
Use some helix functionality to calculate the distance to given the radius.
double estimateFlightLengthUsingFittedInformation(genfit::MeasuredStateOnPlane &measuredStateOnPlane) const override
Extrapolate the measured state on plane to the given radius.
double m_param_radiusForExtrapolation
Radius used for extrapolation. Please be aware that if the RecoTrack does not reach this radius,...
RadiusTrackTimeEstimatorModule()
Initialize the module parameters.
This is the Reconstruction Event-Data Model Track.
ROOT::Math::XYZVector getPositionSeed() const
Return the position seed stored in the reco track. ATTENTION: This is not the fitted position.
short int getChargeSeed() const
Return the charge seed stored in the reco track. ATTENTION: This is not the fitted charge.
ROOT::Math::XYZVector getMomentumSeed() const
Return the momentum seed stored in the reco track. ATTENTION: This is not the fitted momentum.
static const double T
[tesla]
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
static void getField(const double *pos, double *field)
return the magnetic field at a given position.
Abstract base class for different kinds of events.