MIDSX 0.1
A x-ray transport code system for dosimetry
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MonoenergeticSpectrum Class Reference

Class which represents a monoenergetic energy spectrum. More...

#include <source.h>

Collaboration diagram for MonoenergeticSpectrum:

Public Member Functions

 MonoenergeticSpectrum (double energy)
 Constructor for the MonoenergeticSpectrum class.
 
double sampleEnergy () override
 Returns the energy of the monoenergetic spectrum.
 

Private Attributes

double energy_
 

Detailed Description

Class which represents a monoenergetic energy spectrum.

Definition at line 32 of file source.h.

Constructor & Destructor Documentation

◆ MonoenergeticSpectrum()

MonoenergeticSpectrum::MonoenergeticSpectrum ( double energy)
explicit

Constructor for the MonoenergeticSpectrum class.

Parameters
energyThe energy of the monoenergetic spectrum.

Member Function Documentation

◆ sampleEnergy()

double MonoenergeticSpectrum::sampleEnergy ( )
overridevirtual

Returns the energy of the monoenergetic spectrum.

Returns
A sample from the monoenergetic spectrum. Will always be the same value.

Implements EnergySpectrum.

Member Data Documentation

◆ energy_

double MonoenergeticSpectrum::energy_
private

Definition at line 49 of file source.h.


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