Struct rayx::SeparateEnergies¶
ClassList > rayx > SeparateEnergies
If there is only one spike (i.e. m_numberOfEnergies = 1), then this spike is at m_centerEnergy .More...
#include <EnergyDistribution.h>
Public Attributes¶
| Type | Name |
|---|---|
| double | m_centerEnergy |
| double | m_energySpread |
| int | m_numberOfEnergies |
Public Functions¶
| Type | Name |
|---|---|
| SeparateEnergies (double centerEnergy, double energySpread, int numberOfEnergies) |
Detailed Description¶
Describes a uniform distribution of m_numberOfEnergies many discrete energies. These discrete energies lie equidistant within the interval [m_centerEnergy - m_energySpread/2, m_centerEnergy + m_energySpread/2]. So you can visualize this distribution, by m_numberOfEnergies many spikes in an otherwise-empty diagram. All spikes have the same height (i.e. they have the same probability). A pair of consecutive spikes always has the same distance. The left-most spike is at energy m_centerEnergy - m_energySpread/2, while the right-most spike is at m_centerEnergy + m_energySpread/2.
Public Attributes Documentation¶
variable m_centerEnergy¶
variable m_energySpread¶
variable m_numberOfEnergies¶
Public Functions Documentation¶
function SeparateEnergies¶
inline rayx::SeparateEnergies::SeparateEnergies (
double centerEnergy,
double energySpread,
int numberOfEnergies
)
The documentation for this class was generated from the following file Intern/rayx-core/src/Beamline/EnergyDistribution.h