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>
22 const TVector3 ipPosition;
24 const double s = measuredStateOnPlane.extrapolateToPoint(ipPosition);
28 B2WARNING(
"Extrapolation failed: " << e.what());
33 double IPTrackTimeEstimatorModule::estimateFlightLengthUsingSeedInformation(
const RecoTrack& recoTrack)
const
39 const double bZ = BFieldManager::getField(0, 0, 0).Z() / Unit::T;
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());
Base Module estimating the track time of RecoTracks - before or after the fit.
This is the Reconstruction Event-Data Model Track.
TVector3 getMomentumSeed() const
Return the momentum seed stored in the reco track. ATTENTION: This is not the fitted momentum.
TVector3 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.
Exception class for error handling in GENFIT (provides storage for diagnostic information)
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.
Defines for I/O streams used for error and debug printing.