GammaLib  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GModelSpectralPlawPhotonFlux Class Reference

Photon flux normalized power law spectral model class. More...

#include <GModelSpectralPlawPhotonFlux.hpp>

Inheritance diagram for GModelSpectralPlawPhotonFlux:
GModelSpectral GBase

Public Member Functions

 GModelSpectralPlawPhotonFlux (void)
 Void constructor. More...
 
 GModelSpectralPlawPhotonFlux (const std::string &type, const std::string &flux, const std::string &index, const std::string &emin, const std::string &emax)
 Model type and parameter name constructor. More...
 
 GModelSpectralPlawPhotonFlux (const double &flux, const double &index, const GEnergy &emin, const GEnergy &emax)
 Constructor. More...
 
 GModelSpectralPlawPhotonFlux (const GXmlElement &xml)
 XML constructor. More...
 
 GModelSpectralPlawPhotonFlux (const GModelSpectralPlawPhotonFlux &model)
 Copy constructor. More...
 
virtual ~GModelSpectralPlawPhotonFlux (void)
 Destructor. More...
 
virtual
GModelSpectralPlawPhotonFlux
operator= (const GModelSpectralPlawPhotonFlux &model)
 Assignment operator. More...
 
virtual void clear (void)
 Clear power law model. More...
 
virtual
GModelSpectralPlawPhotonFlux
clone (void) const
 Clone power law model. More...
 
virtual std::string classname (void) const
 Return class name. More...
 
virtual std::string type (void) const
 Return model type. More...
 
virtual double eval (const GEnergy &srcEng, const GTime &srcTime=GTime(), const bool &gradients=false) const
 Evaluate function. More...
 
virtual double flux (const GEnergy &emin, const GEnergy &emax) const
 Returns model photon flux between emin, emax More...
 
virtual double eflux (const GEnergy &emin, const GEnergy &emax) const
 Returns model energy flux between emin, emax More...
 
virtual GEnergy mc (const GEnergy &emin, const GEnergy &emax, const GTime &time, GRan &ran) const
 Returns MC energy between [emin, emax]. More...
 
virtual void read (const GXmlElement &xml)
 Read model from XML element. More...
 
virtual void write (GXmlElement &xml) const
 Write model into XML element. More...
 
virtual std::string print (const GChatter &chatter=NORMAL) const
 Print power law information. More...
 
void type (const std::string &type)
 Set model type. More...
 
double flux (void) const
 Return photon flux. More...
 
void flux (const double &flux)
 Set photon flux. More...
 
double index (void) const
 Return power law index. More...
 
void index (const double &index)
 Set power law index. More...
 
GEnergy emin (void) const
 Return minimum energy. More...
 
void emin (const GEnergy &emin)
 Set minimum energy. More...
 
GEnergy emax (void) const
 Return maximum energy. More...
 
void emax (const GEnergy &emax)
 Set maximum energy. More...
 
- Public Member Functions inherited from GModelSpectral
 GModelSpectral (void)
 Void constructor. More...
 
 GModelSpectral (const GModelSpectral &model)
 Copy constructor. More...
 
virtual ~GModelSpectral (void)
 Destructor. More...
 
virtual GModelSpectraloperator= (const GModelSpectral &model)
 Assignment operator. More...
 
virtual GModelParoperator[] (const int &index)
 Returns model parameter. More...
 
virtual const GModelParoperator[] (const int &index) const
 Returns model parameter (const version) More...
 
virtual GModelParoperator[] (const std::string &name)
 Returns reference to model parameter. More...
 
virtual const GModelParoperator[] (const std::string &name) const
 Returns reference to model parameter (const version) More...
 
GModelParat (const int &index)
 Returns model parameter. More...
 
const GModelParat (const int &index) const
 Returns model parameter (const version) More...
 
bool has_par (const std::string &name) const
 Checks if parameter name exists. More...
 
int size (void) const
 Return number of parameters. More...
 
void autoscale (void)
 Autoscale parameters. More...
 
- Public Member Functions inherited from GBase
virtual ~GBase (void)
 Destructor. More...
 

Protected Member Functions

void init_members (void)
 Initialise class members. More...
 
void copy_members (const GModelSpectralPlawPhotonFlux &model)
 Copy class members. More...
 
void free_members (void)
 Delete class members. More...
 
void update (const GEnergy &srcEng) const
 Update precomputed values. More...
 
- Protected Member Functions inherited from GModelSpectral
void init_members (void)
 Initialise class members. More...
 
void copy_members (const GModelSpectral &model)
 Copy class members. More...
 
void free_members (void)
 Delete class members. More...
 

Protected Attributes

std::string m_type
 Model type. More...
 
GModelPar m_flux
 Photon flux (ph/cm2/s) More...
 
GModelPar m_index
 Spectral index. More...
 
GModelPar m_emin
 Lower energy limit (MeV) More...
 
GModelPar m_emax
 Upper energy limit (MeV) More...
 
double m_log_emin
 Log(emin) More...
 
double m_log_emax
 Log(emax) More...
 
double m_pow_emin
 emin^(index+1) More...
 
double m_pow_emax
 emax^(index+1) More...
 
double m_norm
 Power-law normalization (for pivot energy 1 MeV) More...
 
double m_g_norm
 Power-law normalization gradient. More...
 
double m_power
 Power-law factor. More...
 
double m_last_index
 Last spectral index (MeV) More...
 
GEnergy m_last_emin
 Last lower energy limit. More...
 
GEnergy m_last_emax
 Last upper energy limit. More...
 
GEnergy m_last_energy
 Last source energy. More...
 
- Protected Attributes inherited from GModelSpectral
std::vector< GModelPar * > m_pars
 Parameter pointers. More...
 

Detailed Description

Photon flux normalized power law spectral model class.

This class implements a power law spectrum. The model is defined by

\[ S_{\rm E}(E | t) = {\tt m\_flux} \frac{{\tt m\_index}+1} {{\tt e\_max}^{{\tt m\_index}+1} - {\tt e\_min}^{{\tt m\_index}+1}} E^{\tt m\_index} \]

for \({\tt m\_index} \ne -1\) and

\[ S_{\rm E}(E | t) = \frac{{\tt m\_flux}} {\log {\tt e\_max} - \log {\tt e\_min}} E^{\tt m\_index} \]

for \({\tt m\_index} = -1\), where

  • \({\tt e\_min}\) is the minimum energy of an interval,
  • \({\tt e\_max}\) is the maximum energy of an interval,
  • \({\tt m\_flux}\) is the photon flux between \({\tt e\_min}\) and \({\tt e\_max}\), and
  • \({\tt m\_index}\) is the spectral index.

Definition at line 73 of file GModelSpectralPlawPhotonFlux.hpp.

Constructor & Destructor Documentation

GModelSpectralPlawPhotonFlux::GModelSpectralPlawPhotonFlux ( void  )

Void constructor.

Constructs empty power law photon flux model.

Definition at line 83 of file GModelSpectralPlawPhotonFlux.cpp.

References init_members().

Referenced by clone().

GModelSpectralPlawPhotonFlux::GModelSpectralPlawPhotonFlux ( const std::string &  type,
const std::string &  flux,
const std::string &  index,
const std::string &  emin,
const std::string &  emax 
)

Model type and parameter name constructor.

Parameters
[in]typeModel type.
[in]fluxName of photon flux parameter.
[in]indexName of index parameter.
[in]eminName of emin parameter.
[in]emaxName of emax parameter.

Definition at line 103 of file GModelSpectralPlawPhotonFlux.cpp.

References init_members(), m_emax, m_emin, m_flux, m_index, m_type, GOptimizerPar::name(), and type().

GModelSpectralPlawPhotonFlux::GModelSpectralPlawPhotonFlux ( const double &  flux,
const double &  index,
const GEnergy emin,
const GEnergy emax 
)

Constructor.

Parameters
[in]fluxPhoton flux (ph/cm2/s).
[in]indexPower law index.
[in]eminMinimum energy.
[in]emaxMaximum energy.

Construct a spectral power law from the

  • integral photon flux (in ph/cm2/s),
  • spectral index,
  • minimum energy and
  • maximum energy.

Definition at line 141 of file GModelSpectralPlawPhotonFlux.cpp.

References init_members(), m_emax, m_emin, m_flux, m_index, GEnergy::MeV(), and GOptimizerPar::value().

GModelSpectralPlawPhotonFlux::GModelSpectralPlawPhotonFlux ( const GXmlElement xml)
explicit

XML constructor.

Parameters
[in]xmlXML element.

Constructs flux normalized power law spectral model by extracting information from an XML element.

Definition at line 169 of file GModelSpectralPlawPhotonFlux.cpp.

References init_members(), and read().

GModelSpectralPlawPhotonFlux::GModelSpectralPlawPhotonFlux ( const GModelSpectralPlawPhotonFlux model)

Copy constructor.

Parameters
[in]modelSpectral power law model.

Definition at line 188 of file GModelSpectralPlawPhotonFlux.cpp.

References copy_members(), and init_members().

GModelSpectralPlawPhotonFlux::~GModelSpectralPlawPhotonFlux ( void  )
virtual

Destructor.

Definition at line 205 of file GModelSpectralPlawPhotonFlux.cpp.

References free_members().

Member Function Documentation

std::string GModelSpectralPlawPhotonFlux::classname ( void  ) const
inlinevirtual

Return class name.

Returns
String containing the class name ("GModelSpectralPlawPhotonFlux").

Implements GModelSpectral.

Definition at line 160 of file GModelSpectralPlawPhotonFlux.hpp.

void GModelSpectralPlawPhotonFlux::clear ( void  )
virtual
GModelSpectralPlawPhotonFlux * GModelSpectralPlawPhotonFlux::clone ( void  ) const
virtual

Clone power law model.

Returns
Pointer to deep copy of power law model

Implements GModelSpectral.

Definition at line 280 of file GModelSpectralPlawPhotonFlux.cpp.

References GModelSpectralPlawPhotonFlux().

void GModelSpectralPlawPhotonFlux::copy_members ( const GModelSpectralPlawPhotonFlux model)
protected

Copy class members.

Parameters
[in]modelSpectral power law model.

Definition at line 740 of file GModelSpectralPlawPhotonFlux.cpp.

References m_emax, m_emin, m_flux, m_index, m_last_emax, m_last_emin, m_last_energy, m_last_index, m_log_emax, m_log_emin, m_norm, GModelSpectral::m_pars, m_pow_emax, m_pow_emin, m_power, and m_type.

Referenced by GModelSpectralPlawPhotonFlux(), and operator=().

double GModelSpectralPlawPhotonFlux::eflux ( const GEnergy emin,
const GEnergy emax 
) const
virtual

Returns model energy flux between emin, emax

Parameters
[in]eminMinimum photon energy.
[in]emaxMinimum photon energy.
Returns
Energy flux (erg/cm2/s).

Computes

\[ \int_{\tt emin}^{\tt emax} S_{\rm E}(E | t) E \, dE \]

where

  • [emin, emax] is an energy interval, and
  • \(S_{\rm E}(E | t)\) is the spectral model (ph/cm2/s/MeV).

Implements GModelSpectral.

Definition at line 469 of file GModelSpectralPlawPhotonFlux.cpp.

References emax(), emin(), index(), log(), m_flux, m_index, GEnergy::MeV(), gammalib::MeV2erg, norm(), pow(), and GOptimizerPar::value().

GEnergy GModelSpectralPlawPhotonFlux::emax ( void  ) const
inline

Return maximum energy.

Returns
Maximum energy.

Returns the maximum energy.

Definition at line 294 of file GModelSpectralPlawPhotonFlux.hpp.

References m_emax, GEnergy::MeV(), and GOptimizerPar::value().

Referenced by eflux(), flux(), read(), update(), and write().

void GModelSpectralPlawPhotonFlux::emax ( const GEnergy emax)
inline

Set maximum energy.

Parameters
[in]emaxMaximum energy.

Sets the maximum energy.

Definition at line 310 of file GModelSpectralPlawPhotonFlux.hpp.

References m_emax, GEnergy::MeV(), and GOptimizerPar::value().

GEnergy GModelSpectralPlawPhotonFlux::emin ( void  ) const
inline

Return minimum energy.

Returns
Minimum energy.

Returns the minimum energy.

Definition at line 263 of file GModelSpectralPlawPhotonFlux.hpp.

References m_emin, GEnergy::MeV(), and GOptimizerPar::value().

Referenced by eflux(), flux(), read(), update(), and write().

void GModelSpectralPlawPhotonFlux::emin ( const GEnergy emin)
inline

Set minimum energy.

Parameters
[in]eminMinimum energy.

Sets the minimum energy.

Definition at line 279 of file GModelSpectralPlawPhotonFlux.hpp.

References m_emin, GEnergy::MeV(), and GOptimizerPar::value().

double GModelSpectralPlawPhotonFlux::eval ( const GEnergy srcEng,
const GTime srcTime = GTime(),
const bool &  gradients = false 
) const
virtual

Evaluate function.

Parameters
[in]srcEngTrue photon energy.
[in]srcTimeTrue photon arrival time.
[in]gradientsCompute gradients?
Returns
Model value (ph/cm2/s/MeV).

Computes

\[ S_{\rm E}(E | t) = {\tt m\_flux} \frac{{\tt m\_index}+1} {{\tt e\_max}^{{\tt m\_index}+1} - {\tt e\_min}^{{\tt m\_index}+1}} E^{\tt m\_index} \]

for \({\tt m\_index} \ne -1\) and

\[ S_{\rm E}(E | t) = \frac{{\tt m\_flux}} {\log {\tt e\_max} - \log {\tt e\_min}} E^{\tt m\_index} \]

for \({\tt m\_index} = -1\), where

  • \({\tt e\_min}\) is the minimum energy of an interval,
  • \({\tt e\_max}\) is the maximum energy of an interval,
  • \({\tt m\_flux}\) is the photon flux between \({\tt e\_min}\) and \({\tt e\_max}\), and
  • \({\tt m\_index}\) is the spectral index.

If the gradients flag is true the method will also compute the partial derivatives of the model with respect to the parameters using

\[ \frac{\delta S_{\rm E}(E | t)}{\delta {\tt m\_flux}} = \frac{S_{\rm E}(E | t)}{{\tt m\_flux}} \]

\[ \frac{\delta S_{\rm E}(E | t)}{\delta {\tt m\_index}} = S_{\rm E}(E | t) \, \left( \frac{1}{{\tt m\_index}+1} - \frac{\log({\tt e\_max}) {\tt e\_max}^{{\tt m\_index}+1} - \log({\tt e\_min}) {\tt e\_min}^{{\tt m\_index}+1}} {{\tt e\_max}^{{\tt m\_index}+1} - {\tt e\_min}^{{\tt m\_index}+1}} + \ln(E) \right) \]

for \({\tt m\_index} \ne -1\) and

\[ \frac{\delta S_{\rm E}(E | t)}{\delta {\tt m\_index}} = S_{\rm E}(E | t) \, \ln(E) \]

for \({\tt m\_index} = -1\).

Implements GModelSpectral.

Definition at line 349 of file GModelSpectralPlawPhotonFlux.cpp.

References GOptimizerPar::factor_gradient(), GOptimizerPar::factor_value(), flux(), GOptimizerPar::is_free(), gammalib::is_infinite(), gammalib::is_notanumber(), gammalib::ln10, GEnergy::log10MeV(), m_flux, m_g_norm, m_index, m_norm, m_power, GOptimizerPar::scale(), update(), and GOptimizerPar::value().

double GModelSpectralPlawPhotonFlux::flux ( const GEnergy emin,
const GEnergy emax 
) const
virtual

Returns model photon flux between emin, emax

Parameters
[in]eminMinimum photon energy.
[in]emaxMinimum photon energy.
Returns
Photon flux (ph/cm2/s).

Computes

\[ \int_{\tt emin}^{\tt emax} S_{\rm E}(E | t) dE \]

where

  • [emin, emax] is an energy interval, and
  • \(S_{\rm E}(E | t)\) is the spectral model (ph/cm2/s/MeV).

Implements GModelSpectral.

Definition at line 413 of file GModelSpectralPlawPhotonFlux.cpp.

References emax(), emin(), flux(), index(), log(), m_flux, m_index, GEnergy::MeV(), pow(), and GOptimizerPar::value().

double GModelSpectralPlawPhotonFlux::flux ( void  ) const
inline

Return photon flux.

Returns
Photon flux (ph/cm2/s).

Returns the photon flux.

Definition at line 203 of file GModelSpectralPlawPhotonFlux.hpp.

References m_flux, and GOptimizerPar::value().

Referenced by eval(), flux(), read(), and write().

void GModelSpectralPlawPhotonFlux::flux ( const double &  flux)
inline

Set photon flux.

Parameters
[in]fluxPhoton flux (ph/cm2/s).

Sets the photon flux.

Definition at line 217 of file GModelSpectralPlawPhotonFlux.hpp.

References m_flux, and GOptimizerPar::value().

void GModelSpectralPlawPhotonFlux::free_members ( void  )
protected

Delete class members.

Definition at line 776 of file GModelSpectralPlawPhotonFlux.cpp.

Referenced by clear(), operator=(), and ~GModelSpectralPlawPhotonFlux().

double GModelSpectralPlawPhotonFlux::index ( void  ) const
inline

Return power law index.

Returns
Power law index.

Returns the power law index.

Definition at line 234 of file GModelSpectralPlawPhotonFlux.hpp.

References m_index, and GOptimizerPar::value().

Referenced by eflux(), flux(), mc(), read(), GCOMIaq::set(), update(), and write().

void GModelSpectralPlawPhotonFlux::index ( const double &  index)
inline

Set power law index.

Parameters
[in]indexPower law index.

Sets the power law index.

Definition at line 248 of file GModelSpectralPlawPhotonFlux.hpp.

References m_index, and GOptimizerPar::value().

GEnergy GModelSpectralPlawPhotonFlux::mc ( const GEnergy emin,
const GEnergy emax,
const GTime time,
GRan ran 
) const
virtual

Returns MC energy between [emin, emax].

Parameters
[in]eminMinimum photon energy.
[in]emaxMaximum photon energy.
[in]timeTrue photon arrival time.
[in,out]ranRandom number generator.
Returns
Energy.

Returns Monte Carlo energy by randomly drawing from a power law.

Implements GModelSpectral.

Definition at line 528 of file GModelSpectralPlawPhotonFlux.cpp.

References gammalib::check_energy_interval(), exp(), G_MC, index(), log(), GEnergy::MeV(), pow(), and GRan::uniform().

GModelSpectralPlawPhotonFlux & GModelSpectralPlawPhotonFlux::operator= ( const GModelSpectralPlawPhotonFlux model)
virtual

Assignment operator.

Parameters
[in]modelSpectral power law model.
Returns
Spectral power law model.

Definition at line 227 of file GModelSpectralPlawPhotonFlux.cpp.

References copy_members(), free_members(), init_members(), and GModelSpectral::operator=().

std::string GModelSpectralPlawPhotonFlux::print ( const GChatter chatter = NORMAL) const
virtual

Print power law information.

Parameters
[in]chatterChattiness.
Returns
String containing power law information.

Implements GModelSpectral.

Definition at line 629 of file GModelSpectralPlawPhotonFlux.cpp.

References GModelSpectral::m_pars, gammalib::parformat(), SILENT, GModelSpectral::size(), and gammalib::str().

void GModelSpectralPlawPhotonFlux::read ( const GXmlElement xml)
virtual

Read model from XML element.

Parameters
[in]xmlXML element.

Reads the spectral information from an XML element.

Implements GModelSpectral.

Definition at line 572 of file GModelSpectralPlawPhotonFlux.cpp.

References emax(), emin(), flux(), G_READ, index(), m_emax, m_emin, m_flux, m_index, GOptimizerPar::name(), GModelPar::read(), gammalib::xml_check_parnum(), and gammalib::xml_get_par().

Referenced by GModelSpectralPlawPhotonFlux().

std::string GModelSpectralPlawPhotonFlux::type ( void  ) const
inlinevirtual

Return model type.

Returns
Model type.

Returns the type of the spectral power law model.

Implements GModelSpectral.

Definition at line 174 of file GModelSpectralPlawPhotonFlux.hpp.

References m_type.

Referenced by GModelSpectralPlawPhotonFlux(), type(), and write().

void GModelSpectralPlawPhotonFlux::type ( const std::string &  type)
inline

Set model type.

Parameters
[in]typeModel type.

Set the type of the spectral power law model.

Definition at line 188 of file GModelSpectralPlawPhotonFlux.hpp.

References m_type, and type().

void GModelSpectralPlawPhotonFlux::update ( const GEnergy srcEng) const
protected

Update precomputed values.

Parameters
[in]srcEngSource energy

Definition at line 788 of file GModelSpectralPlawPhotonFlux.cpp.

References emax(), emin(), index(), log(), m_g_norm, m_last_emax, m_last_emin, m_last_energy, m_last_index, m_log_emax, m_log_emin, m_norm, m_pow_emax, m_pow_emin, m_power, GEnergy::MeV(), and pow().

Referenced by eval().

void GModelSpectralPlawPhotonFlux::write ( GXmlElement xml) const
virtual

Write model into XML element.

Parameters
[in]xmlXML element.

Writes the spectral information into an XML element.

Implements GModelSpectral.

Definition at line 601 of file GModelSpectralPlawPhotonFlux.cpp.

References emax(), emin(), flux(), G_WRITE, index(), m_emax, m_emin, m_flux, m_index, GOptimizerPar::name(), type(), GModelPar::write(), gammalib::xml_check_type(), and gammalib::xml_need_par().

Member Data Documentation

GModelPar GModelSpectralPlawPhotonFlux::m_emax
protected

Upper energy limit (MeV)

Definition at line 137 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), emax(), GModelSpectralPlawPhotonFlux(), init_members(), read(), and write().

GModelPar GModelSpectralPlawPhotonFlux::m_emin
protected

Lower energy limit (MeV)

Definition at line 136 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), emin(), GModelSpectralPlawPhotonFlux(), init_members(), read(), and write().

GModelPar GModelSpectralPlawPhotonFlux::m_flux
protected

Photon flux (ph/cm2/s)

Definition at line 134 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), eflux(), eval(), flux(), GModelSpectralPlawPhotonFlux(), init_members(), read(), and write().

double GModelSpectralPlawPhotonFlux::m_g_norm
mutableprotected

Power-law normalization gradient.

Definition at line 145 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by eval(), and update().

GModelPar GModelSpectralPlawPhotonFlux::m_index
protected
GEnergy GModelSpectralPlawPhotonFlux::m_last_emax
mutableprotected

Last upper energy limit.

Definition at line 149 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), init_members(), and update().

GEnergy GModelSpectralPlawPhotonFlux::m_last_emin
mutableprotected

Last lower energy limit.

Definition at line 148 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), init_members(), and update().

GEnergy GModelSpectralPlawPhotonFlux::m_last_energy
mutableprotected

Last source energy.

Definition at line 150 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), init_members(), and update().

double GModelSpectralPlawPhotonFlux::m_last_index
mutableprotected

Last spectral index (MeV)

Definition at line 147 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), init_members(), and update().

double GModelSpectralPlawPhotonFlux::m_log_emax
mutableprotected

Log(emax)

Definition at line 141 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), init_members(), and update().

double GModelSpectralPlawPhotonFlux::m_log_emin
mutableprotected

Log(emin)

Definition at line 140 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), init_members(), and update().

double GModelSpectralPlawPhotonFlux::m_norm
mutableprotected

Power-law normalization (for pivot energy 1 MeV)

Definition at line 144 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), eval(), init_members(), and update().

double GModelSpectralPlawPhotonFlux::m_pow_emax
mutableprotected

emax^(index+1)

Definition at line 143 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), init_members(), and update().

double GModelSpectralPlawPhotonFlux::m_pow_emin
mutableprotected

emin^(index+1)

Definition at line 142 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), init_members(), and update().

double GModelSpectralPlawPhotonFlux::m_power
mutableprotected

Power-law factor.

Definition at line 146 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), eval(), init_members(), and update().

std::string GModelSpectralPlawPhotonFlux::m_type
protected

Model type.

Definition at line 133 of file GModelSpectralPlawPhotonFlux.hpp.

Referenced by copy_members(), GModelSpectralPlawPhotonFlux(), init_members(), and type().


The documentation for this class was generated from the following files: