8 #include <tracking/modules/fitter/timeEstimator/IPTrackTimeEstimatorModule.h>
10 #include <tracking/dataobjects/RecoTrack.h>
11 #include <framework/dataobjects/Helix.h>
12 #include <framework/geometry/BFieldManager.h>
13 #include <framework/geometry/B2Vector3.h>
24 const double s = measuredStateOnPlane.extrapolateToPoint(ipPosition);
28 B2WARNING(
"Extrapolation failed: " << e.what());
40 const Helix h(position, momentum, charge, bZ);
41 const double s2D = h.getArcLength2DAtXY(position.X(), position.Y());
42 const double s = s2D * hypot(1, h.getTanLambda());
static ROOT::Math::XYZVector getFieldInTesla(const ROOT::Math::XYZVector &pos)
return the magnetic field at a given position in Tesla.
Base Module estimating the track time of RecoTracks - before or after the fit.
double estimateFlightLengthUsingSeedInformation(const RecoTrack &recoTrack) const override
Calculate the flight length from the origin or the perigee to the start position of the track.
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.
Exception class for error handling in GENFIT (provides storage for diagnostic information)
REG_MODULE(arichBtest)
Register the Module.
Abstract base class for different kinds of events.
Defines for I/O streams used for error and debug printing.