Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
celeritas::test::MockProcess Class Reference

Mock process. More...

#include <MockProcess.hh>

Inheritance diagram for celeritas::test::MockProcess:
Inheritance graph
[legend]

Classes

struct  Input
 

Public Types

Type aliases
using BarnMicroXs = RealQuantity< units::Barn >
 
using VecApplicability = std::vector< Applicability >
 
using VecMicroXs = std::vector< BarnMicroXs >
 
using SPConstMaterials = std::shared_ptr< MaterialParams const >
 
using ModelCallback = std::function< void(ActionId)>
 
- Public Types inherited from celeritas::Process
using SPConstModel = std::shared_ptr< Model const >
 
using UPConstGridBuilder = std::unique_ptr< ValueGridBuilder const >
 
using VecModel = std::vector< SPConstModel >
 
using StepLimitBuilders = ValueGridArray< UPConstGridBuilder >
 
using ActionIdIter = RangeIter< ActionId >
 

Public Member Functions

 MockProcess (Input data)
 
VecModel build_models (ActionIdIter start_id) const final
 Construct the models associated with this process.
 
StepLimitBuilders step_limits (Applicability range) const final
 Get the interaction cross sections for the given energy range.
 
bool use_integral_xs () const final
 Whether to use the integral method to sample interaction length.
 
bool applies_at_rest () const final
 Whether the process applies when the particle is stopped.
 
std::string_view label () const final
 Name of the process.
 
- Public Member Functions inherited from celeritas::Process
virtual ~Process ()
 Default destructor.
 

Additional Inherited Members

- Protected Member Functions inherited from celeritas::Process
 CELER_DEFAULT_COPY_MOVE (Process)
 

Detailed Description

Mock process.

Multiple instances of this process can be created to test out the physics. The value grids are all parameterized:

The given applicability vector has one element per model that it will create. Each model can have a different particle type and/or energy range.

Member Function Documentation

◆ applies_at_rest()

bool celeritas::test::MockProcess::applies_at_rest ( ) const
finalvirtual

Whether the process applies when the particle is stopped.

Implements celeritas::Process.

◆ build_models()

auto celeritas::test::MockProcess::build_models ( ActionIdIter  start_id) const
finalvirtual

Construct the models associated with this process.

Implements celeritas::Process.

◆ label()

std::string_view celeritas::test::MockProcess::label ( ) const
finalvirtual

Name of the process.

Implements celeritas::Process.

◆ step_limits()

auto celeritas::test::MockProcess::step_limits ( Applicability  range) const
finalvirtual

Get the interaction cross sections for the given energy range.

Implements celeritas::Process.

◆ use_integral_xs()

bool celeritas::test::MockProcess::use_integral_xs ( ) const
finalvirtual

Whether to use the integral method to sample interaction length.

Implements celeritas::Process.


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