diff --git a/Environment/LinearIntegrator.h b/Environment/LinearIntegrator.h index d1ee5d5ef065d5d6302f59ade3f0d0eb7d78eb7d..5dddc1eb55e39a928a0f9bd29be77762763e7bf6 100644 --- a/Environment/LinearIntegrator.h +++ b/Environment/LinearIntegrator.h @@ -39,6 +39,14 @@ namespace corsika::environment { return (1 - 0.5 * grammage * c1 / (c0 * c0)) * grammage / c0; } + + auto MaximumLength(double relError) const { + auto const c1 = GetImplementation().fRho.SecondDerivative( + line.GetPosition(0), line.NormalizedDirection()); + + // todo: finish + return 100_m; + } }; } // namespace corsika::environment