Celeritas  0.5.0-57+aeecb15
Classes | Protected Member Functions | List of all members
celeritas::test::EventIOTestBase Class Reference

Helpers for testing reading+writing of event files. More...

#include <EventIOTestBase.hh>

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

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
std::string make_unique_filename (std::string_view ext={})
 Generate test-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}. 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
 

Detailed Description

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.


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