66 m_advancer.setMaterialEffectsToParameterValue();
68 const std::vector<TrackingUtilities::WithWeight<const AState*>>& previousStates =
pair.first;
69 B2ASSERT(
"Can not extrapolate with nothing", not previousStates.empty());
71 const AState* lastState = previousStates.back();
72 AState* currentState =
pair.second;
74 B2ASSERT(
"Can not extrapolate with nothing", lastState->mSoPSet());
75 genfit::MeasuredStateOnPlane mSoP = lastState->getMeasuredStateOnPlane();
77 double returnValue = NAN;
79 genfit::SharedPlanePtr plane = currentState->getPlane(mSoP);
80 returnValue =
m_advancer.extrapolateToPlane(mSoP, plane);
81 }
catch (genfit::Exception& e) {
82 B2DEBUG(29,
"Plane extraction failed: " << e.what());
85 if (not std::isnan(returnValue)) {
86 currentState->setMeasuredStateOnPlane(mSoP);