Celeritas
0.5.0-86+4a8eea4
|
Find and interpolate cross sections on a uniform log grid with an input spline-order. More...
#include <SplineXsCalculator.hh>
Public Types | |
Type aliases | |
using | Energy = Quantity< XsGridData::EnergyUnits > |
using | Values = Collection< real_type, Ownership::const_reference, MemSpace::native > |
Public Member Functions | |
CELER_FUNCTION | SplineXsCalculator (XsGridData const &grid, Values const &values, size_type const order) |
Construct from cross section data. | |
CELER_FUNCTION real_type | operator() (Energy energy) const |
Calculate the cross section. More... | |
CELER_FUNCTION real_type | operator[] (size_type index) const |
Get the cross section 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.