#include <LyaSEDDecorator.hpp>
Public Member Functions | |
double | conversionFraction () const |
double | generateWavelength () const override |
double | integratedLuminosity (const Range &wavelengthRange) const override |
Range | intrinsicWavelengthRange () const override |
ContSED * | sedLymanAlpha () const |
ContSED * | sedOriginal () const |
double | specificLuminosity (double wavelength) const override |
void | specificLuminosityArray (Array &lambdav, Array &pv, const Range &wavelengthRange) const override |
virtual double | specificLuminosity (double wavelength) const =0 |
virtual void | specificLuminosityArray (Array &lambdav, Array &pv, const Range &wavelengthRange) const =0 |
![]() | |
virtual double | generateWavelength () const =0 |
virtual double | integratedLuminosity (const Range &wavelengthRange) const =0 |
virtual Range | intrinsicWavelengthRange () const =0 |
Range | normalizationWavelengthRange () const |
![]() | |
template<class T > | |
T * | find (bool setup=true) const |
template<class T > | |
T * | interface (int levels=-999999, bool setup=true) const |
virtual string | itemName () const |
void | setup () |
string | typeAndName () const |
![]() | |
Item (const Item &)=delete | |
virtual | ~Item () |
void | addChild (Item *child) |
const vector< Item * > & | children () const |
virtual void | clearItemListProperty (const PropertyDef *property) |
void | destroyChild (Item *child) |
virtual bool | getBoolProperty (const PropertyDef *property) const |
virtual vector< double > | getDoubleListProperty (const PropertyDef *property) const |
virtual double | getDoubleProperty (const PropertyDef *property) const |
virtual string | getEnumProperty (const PropertyDef *property) const |
virtual int | getIntProperty (const PropertyDef *property) const |
virtual vector< Item * > | getItemListProperty (const PropertyDef *property) const |
virtual Item * | getItemProperty (const PropertyDef *property) const |
virtual string | getStringProperty (const PropertyDef *property) const |
int | getUtilityProperty (string name) const |
virtual void | insertIntoItemListProperty (const PropertyDef *property, int index, Item *item) |
Item & | operator= (const Item &)=delete |
Item * | parent () const |
virtual void | removeFromItemListProperty (const PropertyDef *property, int index) |
virtual void | setBoolProperty (const PropertyDef *property, bool value) |
virtual void | setDoubleListProperty (const PropertyDef *property, vector< double > value) |
virtual void | setDoubleProperty (const PropertyDef *property, double value) |
virtual void | setEnumProperty (const PropertyDef *property, string value) |
virtual void | setIntProperty (const PropertyDef *property, int value) |
virtual void | setItemProperty (const PropertyDef *property, Item *item) |
virtual void | setStringProperty (const PropertyDef *property, string value) |
void | setUtilityProperty (string name, int value) |
virtual string | type () const |
Protected Member Functions | |
LyaSEDDecorator () | |
void | setupSelfAfter () override |
![]() | |
ContSED () | |
![]() | |
SED () | |
Random * | random () const |
void | setupSelfBefore () override |
![]() | |
SimulationItem () | |
virtual bool | offersInterface (const std::type_info &interfaceTypeInfo) const |
virtual void | setupSelfAfter () |
virtual void | setupSelfBefore () |
![]() | |
Item () | |
Private Types | |
using | BaseType = ContSED |
using | ItemType = LyaSEDDecorator |
Private Attributes | |
double | _conversionFraction |
double | _ionizingFraction |
ContSED * | _sedLymanAlpha |
ContSED * | _sedOriginal |
Friends | |
class | ItemRegistry |
The LyaSEDDecorator class implements a decorator that adjusts another, arbitrary SED by converting a fraction of the ionizing part of that SED to Lyman-alpha emission.
There are three configuration options: the SED to be adjusted, called the 'original SED'; the SED representing the Lyman-alpha emission, called the 'Lyman-alpha SED'; and the fraction of the ionizing radiation to be converted. In the 'decorated SED' produced by this class, the specified fraction of the luminosity in the original SED short of
The luminosity normalization configured by the user applies to the decorated SED. The source wavelength range must include the ionizing portion of the spectrum to be considered, even if all ionizing radiation is being converted to Lyman-alpha emission.
This item type is displayed only if the Boolean expression "Lya|Level3" evaluates to true after replacing the names by true or false depending on their presence.
|
inlineprotected |
Default constructor for concrete Item subclass LyaSEDDecorator : "an SED decorator replacing ionizing radiation with Lyman-alpha line emission" .
|
inline |
This function returns the value of the discoverable double property conversionFraction : "the fraction of ionizing radiation replaced by Lyman-alpha emission" .
The minimum value for this property is "[0" .
The maximum value for this property is "1]" .
The default value for this property is given by the conditional value expression "0.5" .
|
overridevirtual |
This function draws a random wavelength from the normalized spectral energy distribution. It generates a wavelength from one of the user-configured SEDs as described in the class header.
Implements SED.
|
overridevirtual |
This function returns the normalized integrated luminosity
Implements SED.
|
overridevirtual |
This function returns the intrinsic wavelength range of the SED. For this decorator, it returns the union of the intrinsic ranges of the original and Lyman-alpha SEDs configured by the user, even if the configured conversion fraction is equal to one.
Implements SED.
|
inline |
This function returns the value of the discoverable item property sedLymanAlpha : "the SED representing the Lyman-alpha line emission" .
The default value for this property is given by the conditional value expression "LyaGaussianSED" .
|
inline |
This function returns the value of the discoverable item property sedOriginal : "the original SED being adjusted" .
The default value for this property is given by the conditional value expression "BlackBodySED" .
|
overrideprotectedvirtual |
This function precalculates some values for later use.
Reimplemented from SimulationItem.
|
overridevirtual |
This function returns the normalized specific luminosity
Implements ContSED.
|
overridevirtual |
This function returns the normalized specific luminosity
Implements ContSED.