MIDSX 0.1
A x-ray transport code system for dosimetry
|
Class which represents a photon source. More...
#include <source.h>
Public Member Functions | |
PhotonSource (std::unique_ptr< EnergySpectrum > energy_spectrum, std::unique_ptr< Directionality > directionality, std::unique_ptr< SourceGeometry > source_geometry) | |
Constructor for the PhotonSource class. | |
Photon | generatePhoton () |
Returns a photon generated from the photon source. | |
Private Attributes | |
std::unique_ptr< EnergySpectrum > | energy_spectrum_ |
std::unique_ptr< Directionality > | directionality_ |
std::unique_ptr< SourceGeometry > | source_geometry_ |
Class which represents a photon source.
The photon source is a combination of an energy spectrum, a directionality, and a geometry.
PhotonSource::PhotonSource | ( | std::unique_ptr< EnergySpectrum > | energy_spectrum, |
std::unique_ptr< Directionality > | directionality, | ||
std::unique_ptr< SourceGeometry > | source_geometry ) |
Constructor for the PhotonSource class.
energy_spectrum | The energy spectrum of the photon source. |
directionality | The directionality of the photon source. |
source_geometry | The geometry of the photon source. |
Photon PhotonSource::generatePhoton | ( | ) |
Returns a photon generated from the photon source.
|
private |
|
private |
|
private |