|
Celeritas 0.7.0-dev.194+develop.0df4cab59
|
Find and interpolate cross sections on a uniform log grid with an input spline-order. More...
#include <SplineCalculator.hh>
Public Types | |
Type aliases | |
| using | Energy = units::MevEnergy |
| using | Values = Collection< real_type, Ownership::const_reference, MemSpace::native > |
Public Member Functions | |
| CELER_FUNCTION | SplineCalculator (UniformGridRecord const &grid, Values const &reals) |
| Construct from cross section data. | |
| CELER_FUNCTION real_type | operator() (Energy energy) const |
| Calculate the cross section. | |
| CELER_FUNCTION real_type | operator[] (size_type index) const |
| Get the tabulated value at the given index. | |
| CELER_FUNCTION Energy | energy_min () const |
| CELER_FUNCTION Energy | energy_max () const |
Find and interpolate cross sections on a uniform log grid with an input spline-order.
|
inline |
Calculate the cross section.
If needed, we can add a "log(energy/MeV)" accessor if we constantly reuse that value and don't want to repeat the std::log operation.