27 #ifndef __GyotoPowerLawSpectrum_H_
28 #define __GyotoPowerLawSpectrum_H_
64 PowerLaw(double exponent, double constant=1.);
73 using Gyoto::Spectrum::Generic::operator();
74 virtual double operator()(double nu) const;
76 #ifdef GYOTO_USE_XERCES
81 virtual void
fillElement(FactoryMessenger *fmp) const ;
void setConstant(double)
Set constant_.
double getExponent() const
Get exponent_.
double getConstant() const
Get constant_.
virtual void fillElement(FactoryMessenger *fmp) const
called from Factory
virtual void setParameter(std::string name, std::string content, std::string unit)
To be called by fillElement()
Spectrum of a simple object (e.g. Star)
double constant_
I_nu=constant_*nu^exponent_.
Definition: GyotoPowerLawSpectrum.h:55
Pointers performing reference counting.
Definition: GyotoSmartPointer.h:51
virtual PowerLaw * clone() const
Cloner.
I_nu=constant_*nu^exponent_.
Definition: GyotoPowerLawSpectrum.h:52
Spectrum emitted by an Astrobj.
Definition: GyotoSpectrum.h:123
double exponent_
I_nu=constant_*nu^exponent_.
Definition: GyotoPowerLawSpectrum.h:56
void setExponent(double)
Set exponent_.