An open source method of characteristics neutron transport code.
|
A class used to write tracking data to a file. More...
#include <TrackTraversingAlgorithms.h>
Public Member Functions | |
PrintSegments (TrackGenerator *track_generator) | |
Constructor for PrintSegments calls the TraverseSegments constructor and initializes the output FILE to NULL. More... | |
void | setOutputFile (FILE *out) |
Sets the file which to write tracking information. More... | |
void | execute () |
Writes all tracking information to file. More... | |
void | onTrack (Track *track, segment *segments) |
Writes tracking information to file for a Track and associated segments. 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 write tracking data to a file.
"src/TrackTraversingAlgorithms.h"
PrintSegments imports Track data from the provided TrackGenerator and writes the tracking data to the provided file.
PrintSegments::PrintSegments | ( | TrackGenerator * | track_generator | ) |
Constructor for PrintSegments calls the TraverseSegments constructor and initializes the output FILE to NULL.
track_generator | The TrackGenerator to pull tracking information from |
|
virtual |
Writes all tracking information to file.
SegmentationKernels are created to temporarily store segments for on-the-fly methods. For each Track, onTrack(...) writes the tracking information to file. FIXME debug ?
Implements TraverseSegments.
Writes tracking information to file for a Track and associated segments.
track | The Track whose information is written to file |
segments | The segments associated with the Track whose information is written to file FIXME debug ? |
Implements TraverseSegments.
void PrintSegments::setOutputFile | ( | FILE * | out | ) |
Sets the file which to write tracking information.
out | the file which to write tracking infmormation |