Celeritas  0.5.0-56+6b053cd
Public Member Functions | Static Public Member Functions | List of all members
celeritas::ValueGridLogBuilder Class Reference

Build a physics vector for energy loss and other quantities. More...

#include <ValueGridBuilder.hh>

Inheritance diagram for celeritas::ValueGridLogBuilder:
Inheritance graph
[legend]

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
 
ValueGridBuilderoperator= (ValueGridBuilder const &)=default
 
 ValueGridBuilder (ValueGridBuilder &&)=default
 
ValueGridBuilderoperator= (ValueGridBuilder &&)=default
 

Detailed Description

Build a physics vector for energy loss and other quantities.

This vector is still uniform in log(E).

Member Function Documentation

◆ from_range()

auto celeritas::ValueGridLogBuilder::from_range ( SpanConstDbl  energy,
SpanConstDbl  value 
)
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.


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