Celeritas
0.5.0-57+aeecb15
|
Base class for testing fields. More...
#include <FieldTestBase.hh>
Public Types | |
Type aliases | |
using | SPConstParticle = std::shared_ptr< ParticleParams const > |
using | MevEnergy = units::MevEnergy |
Public Member Functions | |
SPConstParticle const & | particle () |
SPConstParticle const & | particle () const |
Access particle params (if already created) | |
ParticleTrackView | make_particle_view (PDGNumber pdg, MevEnergy energy) |
template<class GTV , class Field > | |
real_type | calc_field_curvature (ParticleTrackView const &particle, GTV const &geo, Field const &calc_field) const |
Calculate the radius of the field curvature for the particle/geometry. | |
Public Member Functions inherited from celeritas::test::Test | |
std::string | make_unique_filename (std::string_view ext={}) |
Generate test-unique filename. | |
Protected Member Functions | |
virtual SPConstParticle | build_particle () const =0 |
Additional Inherited Members | |
Static Public Member Functions inherited from celeritas::test::Test | |
static std::string | test_data_path (std::string_view subdir, std::string_view filename) |
Get the path to a test file at {source}/test/{subdir}/data/{filename} . More... | |
static std::string | genericize_pointers (std::string_view s) |
Replace pointer addresses with 0x0 for improved testability. | |
static bool | strict_testing () |
True if strict testing is required. More... | |
Static Public Attributes inherited from celeritas::test::Test | |
static constexpr double | inf = HUGE_VAL |
static constexpr float | inff = HUGE_VALF |
static constexpr double | coarse_eps = 1e-6 |
Base class for testing fields.