#include <LyaDoublePeakedSED.hpp>
Public Member Functions | |
double | generateWavelength () const override |
double | integratedLuminosity (const Range &wavelengthRange) const override |
Range | intrinsicWavelengthRange () const override |
double | scale () 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 | |
LyaDoublePeakedSED () | |
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 = LyaDoublePeakedSED |
Private Attributes | |
double | _scale |
double | _wavelengthCenter |
Range | _wavelengthRange |
double | _wavelengthScale |
Friends | |
class | ItemRegistry |
The LyaDoublePeakedSED class implements a double-peaked SED, centered on the Lyman-alpha line wavelength
The spectrum can be expressed analytically (see Dijkstra et al. 2006a, ApJ, 649, 14-36). Using the photon velocity shift
as the spectral variable and a velocity scale
The two peaks of this profile are situated at
The cumulative distribution is
which can be inverted so that we can obtain a sample from the distribution through
where
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 LyaDoublePeakedSED : "a double-peaked spectrum around the central Lyman-alpha wavelength" .
|
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 double-peaked spectrum, we limit the range to
Implements SED.
|
inline |
This function returns the value of the discoverable double property scale : "the velocity scale" .
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" .
|
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.