An open source method of characteristics neutron transport code.
DumpSegments Class Reference

A class used to write tracking data to a file. More...

#include <TrackTraversingAlgorithms.h>

Public Member Functions

 DumpSegments (TrackGenerator *track_generator)
 Constructor for DumpSegments calls the TraverseSegments constructor and initializes the output FILE to NULL. More...
 
void setOutputFile (FILE *out)
 Sets the file in 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 >
MOCKernelgetKernel ()
 
- Protected Attributes inherited from TraverseSegments
TrackGenerator_track_generator
 
TrackGenerator3D_track_generator_3D
 
double * _global_z_mesh
 
int _mesh_size
 
segmentationType _segment_formation
 

Detailed Description

A class used to write tracking data to a file.

"src/TrackTraversingAlgorithms.h"

DumpSegments imports Track data from the provided TrackGenerator and writes the tracking data to the provided file.

Constructor & Destructor Documentation

◆ DumpSegments()

DumpSegments::DumpSegments ( TrackGenerator track_generator)

Constructor for DumpSegments calls the TraverseSegments constructor and initializes the output FILE to NULL.

Parameters
track_generatorThe TrackGenerator to pull tracking information from

Member Function Documentation

◆ execute()

void DumpSegments::execute ( )
virtual

Writes all tracking information to file.

SegmentationKernels are created to temporarily store segments for on-the-fly method. For each Track, onTrack(...) writes the tracking information to file.

Implements TraverseSegments.

◆ onTrack()

void DumpSegments::onTrack ( Track track,
segment segments 
)
virtual

Writes tracking information to file for a Track and associated segments.

Parameters
trackThe Track whose information is written to file
segmentsThe segments associated with the Track whose information is written to file

Implements TraverseSegments.

◆ setOutputFile()

void DumpSegments::setOutputFile ( FILE *  out)

Sets the file in which to write tracking information.

Parameters
outthe file in which to write tracking information

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