|
CORSIKA
@c8_version@
The framework to simulate particle cascades for astroparticle physics
|
Helper class to integrate 1D density functions. More...
#include <LinearApproximationIntegrator.hpp>
Public Member Functions | |
| GrammageType | getIntegrateGrammage (BaseTrajectory const &line) const |
| Get the integrated Grammage along line. More... | |
| LengthType | getArclengthFromGrammage (BaseTrajectory const &line, GrammageType grammage) const |
| Get the arclength from Grammage along line. More... | |
| LengthType | getMaximumLength (BaseTrajectory const &line, double relError) const |
| Get the maximum length l to keep uncertainty below \[ relError \] . More... | |
Helper class to integrate 1D density functions.
Integrated density (grammage) can be calculated along a Trajectory. Also the inverse (arclength) for a specified grammage can be calculated. In addition, also a maximum possible length for a maximum allowed uncertainty can be evaluated.
| TDerived | Must provide the evaluateAt and getFirstDerivative methods. |
Definition at line 30 of file LinearApproximationIntegrator.hpp.
| LengthType corsika::LinearApproximationIntegrator< TDerived >::getArclengthFromGrammage | ( | BaseTrajectory const & | line, |
| GrammageType | grammage | ||
| ) | const |
Get the arclength from Grammage along line.
Calculate as
\[ (1 - 0.5 * X * d\varrho/dl / (\varrho_0^2)) * X / \varrho_0 \]
.
| line | |
| grammage |
| GrammageType corsika::LinearApproximationIntegrator< TDerived >::getIntegrateGrammage | ( | BaseTrajectory const & | line | ) | const |
Get the integrated Grammage along line.
Calculated as
\[ X=(\varrho_0 + 0.5* d\varrho/dl \cdot l ) l \]
.
| line |
| LengthType corsika::LinearApproximationIntegrator< TDerived >::getMaximumLength | ( | BaseTrajectory const & | line, |
| double | relError | ||
| ) | const |
Get the maximum length l to keep uncertainty below
\[ relError \]
.
| line | |
| relError |