|
Celeritas 0.7.0-dev.194+develop.0df4cab59
|
Helpers for testing reading+writing of event files. More...
#include <EventIOTestBase.hh>

Classes | |
| struct | ReadAllResult |
Public Types | |
Type aliases | |
| using | VecPrimary = std::vector< Primary > |
| using | Reader = EventReaderInterface |
| using | Writer = EventWriterInterface |
| using | SPConstParticles = std::shared_ptr< ParticleParams const > |
Protected Member Functions | |
| void | SetUp () override |
| ReadAllResult | read_all (Reader &read_event) const |
| void | write_test_event (Writer &write_event) const |
| void | read_check_test_event (Reader &read_event) const |
| SPConstParticles const & | particles () const |
Additional Inherited Members | |
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 () |
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 |
Helpers for testing reading+writing of event files.
This defines several particles: proton, d_quark, anti_u_quark, w_minus, gamma; and provides utilities for reading all primaries from a file.