An open source method of characteristics neutron transport code.
|
A class used to read tracking data from a file. More...
#include <TrackTraversingAlgorithms.h>
Public Member Functions | |
ReadSegments (TrackGenerator *track_generator) | |
Constructor for ReadSegments calls the TraverseSegments constructor and initializes the input FILE to NULL. More... | |
void | setInputFile (FILE *input) |
Sets the input file to read in tracking information. More... | |
void | execute () |
Reads a tracking file and saves the information explicitly for every Track in the TrackGenerator. More... | |
void | onTrack (Track *track, segment *segments) |
Saves tracking information to the corresponding Track explicitly. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TraverseSegments | |
TraverseSegments (TrackGenerator *track_generator) | |
Constructor for the TraverseSegments class assigns the TrackGenerator and pulls relevant information from it. | |
virtual | ~TraverseSegments () |
Destructor for TraverseSegments. | |
void | loopOverTracks (MOCKernel *kernel) |
Loops over Tracks, applying the provided kernel to all segments and the functionality described in onTrack(...) to all Tracks. More... | |
void | loopOverTracksByStackTwoWay (TransportKernel *kernel) |
Loops over all 3D Tracks using axial on-the-fly ray tracking by z-stack, going forward then backward on each 3D Track. More... | |
template<class KernelType > | |
MOCKernel * | getKernel () |
Protected Attributes inherited from TraverseSegments | |
TrackGenerator * | _track_generator |
TrackGenerator3D * | _track_generator_3D |
double * | _global_z_mesh |
int | _mesh_size |
segmentationType | _segment_formation |
A class used to read tracking data from a file.
"src/TrackTraversingAlgorithms.h"
ReadSegments imports Track data from the provided file and writes the tracking data to the Tracks in the provided TrackGenerator.
ReadSegments::ReadSegments | ( | TrackGenerator * | track_generator | ) |
Constructor for ReadSegments calls the TraverseSegments constructor and initializes the input FILE to NULL.
track_generator | The TrackGenerator to pull tracking information from |
|
virtual |
Reads a tracking file and saves the information explicitly for every Track in the TrackGenerator.
The tracking file is set by setInputFile(...)
Implements TraverseSegments.
Saves tracking information to the corresponding Track explicitly.
track | The track for which all tracking information is explicitly saved (including segments) |
segments | The segments associated with the Track |
Implements TraverseSegments.
void ReadSegments::setInputFile | ( | FILE * | input | ) |
Sets the input file to read in tracking information.
input | the tracking file |