|
Celeritas 0.7.0-dev.172+develop.fe2a0acd4
|
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 | |
| virtual std::string | make_unique_filename (std::string_view ext) |
| Generate test-unique filename. | |
| std::string | make_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}. | |
| static bool | strict_testing () |
| True if strict testing is required. | |
Static Public Attributes inherited from celeritas::test::Test | |
| static constexpr double | inf = HUGE_VAL |
| static constexpr float | inff = HUGE_VALF |
| static constexpr double | fine_eps = 1e-12 |
| static constexpr double | coarse_eps = 1e-6 |
Base class for testing fields.