Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::test::InteractorHostBase Class Reference

Test harness base class for EM physics models. More...

#include <InteractorHostTestBase.hh>

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

Public Member Functions

ImportProcess make_import_process (PDGNumber particle, PDGNumber secondary, ImportProcessClass ipc, std::vector< ImportModelClass > models) const
 
void check_conservation (Interaction const &interaction) const
 
void check_energy_conservation (Interaction const &interaction) const
 
void check_momentum_conservation (Interaction const &interaction) const
 
void set_material_params (MaterialParams::Input inp)
 
std::shared_ptr< MaterialParams const > const & material_params () const
 
void set_particle_params (ParticleParams::Input inp)
 
std::shared_ptr< ParticleParams const > const & particle_params () const
 
void set_cutoff_params (CutoffParams::Input inp)
 
std::shared_ptr< CutoffParams const > const & cutoff_params () const
 
void set_imported_processes (std::vector< ImportProcess > inp)
 
std::shared_ptr< ImportedProcesses const > const & imported_processes () const
 
void set_material (std::string const &name)
 
MaterialTrackViewmaterial_track ()
 
void set_inc_particle (PDGNumber n, MevEnergy energy)
 
void set_inc_direction (Real3 const &dir)
 
Real3 const & direction () const
 
ParticleTrackView const & particle_track () const
 
void resize_secondaries (int count)
 
SecondaryAllocatorsecondary_allocator ()
 
RandomEnginerng ()
 

Type aliases

using RandomEngine = DiagnosticRngEngine< std::mt19937 >
 
using MevEnergy = units::MevEnergy
 
using Action = Interaction::Action
 
using SecondaryAllocator = StackAllocator< Secondary >
 
using constSpanSecondaries = Span< Secondary const >
 
 InteractorHostBase ()
 
 ~InteractorHostBase ()
 

Detailed Description

Test harness base class for EM physics models.

Todo:
Since this now uses Collection objects it's generally safe to use this to test Models as well as device code – think about renaming it.

Member Typedef Documentation

◆ Action

Initialize and destroy

◆ constSpanSecondaries

Initialize and destroy

◆ MevEnergy

Initialize and destroy

◆ RandomEngine

Initialize and destroy

◆ SecondaryAllocator

Initialize and destroy

Constructor & Destructor Documentation

◆ InteractorHostBase()

celeritas::test::InteractorHostBase::InteractorHostBase ( )

Initialize and destroy

◆ ~InteractorHostBase()

celeritas::test::InteractorHostBase::~InteractorHostBase ( )

Initialize and destroy

Member Function Documentation

◆ cutoff_params()

std::shared_ptr<CutoffParams const> const& celeritas::test::InteractorHostBase::cutoff_params ( ) const
inline

Set and get cutoff params

◆ direction()

Real3 const& celeritas::test::InteractorHostBase::direction ( ) const
inline

Incident particle properties and access

◆ imported_processes()

std::shared_ptr<ImportedProcesses const> const& celeritas::test::InteractorHostBase::imported_processes ( ) const
inline

Set and get imported processes

◆ material_params()

std::shared_ptr<MaterialParams const> const& celeritas::test::InteractorHostBase::material_params ( ) const
inline

Set and get material properties

◆ material_track()

MaterialTrackView& celeritas::test::InteractorHostBase::material_track ( )
inline

Material properties

◆ particle_params()

std::shared_ptr<ParticleParams const> const& celeritas::test::InteractorHostBase::particle_params ( ) const
inline

Set and get particle params

◆ particle_track()

ParticleTrackView const& celeritas::test::InteractorHostBase::particle_track ( ) const
inline

Incident particle properties and access

◆ resize_secondaries()

void celeritas::test::InteractorHostBase::resize_secondaries ( int  count)

Secondary stack storage and access

◆ rng()

RandomEngine& celeritas::test::InteractorHostBase::rng ( )
inline

Get random number generator with clean counter

◆ secondary_allocator()

SecondaryAllocator& celeritas::test::InteractorHostBase::secondary_allocator ( )
inline

Secondary stack storage and access

◆ set_cutoff_params()

void celeritas::test::InteractorHostBase::set_cutoff_params ( CutoffParams::Input  inp)

Set and get cutoff params

◆ set_imported_processes()

void celeritas::test::InteractorHostBase::set_imported_processes ( std::vector< ImportProcess inp)

Set and get imported processes

◆ set_inc_direction()

void celeritas::test::InteractorHostBase::set_inc_direction ( Real3 const &  dir)

Incident particle properties and access

◆ set_inc_particle()

void celeritas::test::InteractorHostBase::set_inc_particle ( PDGNumber  n,
MevEnergy  energy 
)

Incident particle properties and access

◆ set_material()

void celeritas::test::InteractorHostBase::set_material ( std::string const &  name)

Material properties

◆ set_material_params()

void celeritas::test::InteractorHostBase::set_material_params ( MaterialParams::Input  inp)

Set and get material properties

◆ set_particle_params()

void celeritas::test::InteractorHostBase::set_particle_params ( ParticleParams::Input  inp)

Set and get particle params


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