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