Celeritas
0.5.0-86+4a8eea4
|
Build a physics vector for energy loss and other quantities. More...
#include <ValueGridBuilder.hh>
Public Types | |
Type aliases | |
using | VecDbl = std::vector< double > |
using | SpanConstDbl = Span< double const > |
using | Id = ItemId< XsGridData > |
using | UPLogBuilder = std::unique_ptr< ValueGridLogBuilder > |
Public Types inherited from celeritas::ValueGridBuilder | |
using | ValueGridId = ItemId< struct XsGridData > |
Public Member Functions | |
ValueGridLogBuilder (double emin, double emax, VecDbl value) | |
Construct from raw data. | |
ValueGridId | build (ValueGridInserter) const final |
Construct on device. | |
SpanConstDbl | value () const |
Access values. | |
Public Member Functions inherited from celeritas::ValueGridBuilder | |
virtual | ~ValueGridBuilder ()=0 |
Virtual destructor for polymorphic deletion. More... | |
Static Public Member Functions | |
static UPLogBuilder | from_geant (SpanConstDbl energy, SpanConstDbl value) |
Construct arrays from log-spaced geant data. | |
static UPLogBuilder | from_range (SpanConstDbl energy, SpanConstDbl range) |
Construct XS arrays from log-spaced geant range data. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from celeritas::ValueGridBuilder | |
ValueGridBuilder (ValueGridBuilder const &)=default | |
ValueGridBuilder & | operator= (ValueGridBuilder const &)=default |
ValueGridBuilder (ValueGridBuilder &&)=default | |
ValueGridBuilder & | operator= (ValueGridBuilder &&)=default |
Build a physics vector for energy loss and other quantities.
This vector is still uniform in log(E).
|
static |
Construct XS arrays from log-spaced geant range data.
Range data must be monotonically increasing, since it's the integral of the (always nonnegative) stopping power -dE/dx . If not monotonic then the inverse range cannot be calculated.