#include <LyaGaussianSED.hpp>
Public Member Functions | |
double | dispersion () const |
double | generateWavelength () const override |
double | integratedLuminosity (const Range &wavelengthRange) const override |
Range | intrinsicWavelengthRange () const override |
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 | |
LyaGaussianSED () | |
void | setupSelfBefore () 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 = LyaGaussianSED |
Private Attributes | |
double | _dispersion |
double | _wavelengthCenter |
double | _wavelengthDispersion |
Range | _wavelengthRange |
Friends | |
class | ItemRegistry |
The LyaGaussianSED class implements a Gaussian spectrum around the central Lyman-alpha wavelength
as the spectral variable, and a dispersion
The thermal velocity corresponding to the dispersion
and the full width at half maximum of the Gaussian line profile is given by
This SED can be implemented analytically and it can sampled using the standard procedure for a Gaussian deviate. To simplify some numerical operations, such as tabulating the SED, we limit the intrinsic range of the SED to
To simplify normalization of this SED, the source wavelength range configured by the user must fully contain the intrinsic wavelength range defined by
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 LyaGaussianSED : "a Gaussian spectrum around the central Lyman-alpha wavelength" .
|
inline |
This function returns the value of the discoverable double property dispersion : "the Gaussian velocity dispersion" .
This property represents a physical quantity of type "velocity" .
The minimum value for this property is "]0 km/s" .
The maximum value for this property is "1000 km/s]" .
The default value for this property is given by the conditional value expression "50 km/s" .
|
overridevirtual |
This function draws a random wavelength from the normalized spectral energy distribution.
Implements SED.
|
overridevirtual |
This function returns the normalized integrated luminosity
Implements SED.
|
overridevirtual |
This function returns the intrinsic wavelength range of the SED. For our Gaussian profile, we limit the range to
Implements SED.
|
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.