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 addParam(
"radiusForExtrapolation", m_param_radiusForExtrapolation,
22 "Radius used for extrapolation. Please be aware that if the RecoTrack does not reach this radius, "
23 "the results are wrong.", m_param_radiusForExtrapolation);
31 const double s = measuredStateOnPlane.extrapolateToCylinder(m_param_radiusForExtrapolation);
34 B2WARNING(
"Extrapolation failed: " << e.what());
39 double RadiusTrackTimeEstimatorModule::estimateFlightLengthUsingSeedInformation(
const RecoTrack& recoTrack)
const
45 const double bZ = BFieldManager::getField(0, 0, 0).Z() / Unit::T;
46 const Helix h(position, momentum, charge, bZ);
47 const double arcLengthOfIntersection = h.getArcLength2DAtCylindricalR(m_param_radiusForExtrapolation);
48 const double s = arcLengthOfIntersection * hypot(1, h.getTanLambda());
Base Module estimating the track time of RecoTracks - before or after the fit.
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)
#StateOnPlane with additional covariance matrix.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.