Celeritas 0.6.0-dev.116+3fbab5e0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::UniformLogGridCalculator Class Reference

Find and interpolate values on a uniform log energy grid. More...

#include <UniformLogGridCalculator.hh>

Public Types

Type aliases
using Energy = units::MevEnergy
 
using Values = Collection< real_type, Ownership::const_reference, MemSpace::native >
 

Public Member Functions

CELER_FUNCTION UniformLogGridCalculator (UniformGridRecord const &grid, Values const &reals)
 Construct from uniform grid data.
 
CELER_FUNCTION real_type operator() (Energy energy) const
 Interpolate the value at the given energy.
 
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
 

Detailed Description

Find and interpolate values on a uniform log energy grid.

Note that linear interpolation is applied with energy points, not log-energy points.

UniformLogGridCalculator calc(grid, params.reals);
real_type y = calc(particle.energy());
Find and interpolate values on a uniform log energy grid.
Definition UniformLogGridCalculator.hh:33
double real_type
Numerical type for real numbers.
Definition corecel/Types.hh:34
@ y
Y axis/J index coordinate.

The documentation for this class was generated from the following file: