GammaLib 2.0.0
Loading...
Searching...
No Matches
GModelSpectralPlawEnergyFlux Class Reference

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

#include <GModelSpectralPlawEnergyFlux.hpp>

Inheritance diagram for GModelSpectralPlawEnergyFlux:
GModelSpectral GBase

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

Detailed Description

Energy 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\_eflux} \frac{{\tt m\_index}+1} {{\tt e\_max}^{{\tt m\_index}+2} - {\tt e\_min}^{{\tt m\_index}+2}} E^{\tt m\_index} \]

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

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

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

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

Definition at line 73 of file GModelSpectralPlawEnergyFlux.hpp.

Constructor & Destructor Documentation

◆ GModelSpectralPlawEnergyFlux() [1/5]

GModelSpectralPlawEnergyFlux::GModelSpectralPlawEnergyFlux ( void )

Void constructor.

Definition at line 73 of file GModelSpectralPlawEnergyFlux.cpp.

References init_members().

Referenced by clone().

◆ GModelSpectralPlawEnergyFlux() [2/5]

GModelSpectralPlawEnergyFlux::GModelSpectralPlawEnergyFlux ( const std::string & type,
const std::string & eflux,
const std::string & index,
const std::string & emin,
const std::string & emax )

Model type and parameter name constructor.

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

Definition at line 93 of file GModelSpectralPlawEnergyFlux.cpp.

References eflux(), emax(), emin(), index(), init_members(), m_eflux, m_emax, m_emin, m_index, m_type, GOptimizerPar::name(), and type().

◆ GModelSpectralPlawEnergyFlux() [3/5]

GModelSpectralPlawEnergyFlux::GModelSpectralPlawEnergyFlux ( const double & eflux,
const double & index,
const GEnergy & emin,
const GEnergy & emax )
explicit

Constructor.

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

Construct a spectral power law from the

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

Definition at line 131 of file GModelSpectralPlawEnergyFlux.cpp.

References eflux(), emax(), emin(), index(), init_members(), m_eflux, m_emax, m_emin, m_index, GEnergy::MeV(), and GOptimizerPar::value().

◆ GModelSpectralPlawEnergyFlux() [4/5]

GModelSpectralPlawEnergyFlux::GModelSpectralPlawEnergyFlux ( const GXmlElement & xml)
explicit

XML constructor.

Parameters
[in]xmlXML element.

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

Definition at line 159 of file GModelSpectralPlawEnergyFlux.cpp.

References init_members(), and read().

◆ GModelSpectralPlawEnergyFlux() [5/5]

GModelSpectralPlawEnergyFlux::GModelSpectralPlawEnergyFlux ( const GModelSpectralPlawEnergyFlux & model)

Copy constructor.

Parameters
[in]modelSpectral power law model.

Definition at line 178 of file GModelSpectralPlawEnergyFlux.cpp.

References copy_members(), and init_members().

◆ ~GModelSpectralPlawEnergyFlux()

GModelSpectralPlawEnergyFlux::~GModelSpectralPlawEnergyFlux ( void )
virtual

Destructor.

Definition at line 195 of file GModelSpectralPlawEnergyFlux.cpp.

References free_members().

Member Function Documentation

◆ classname()

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

Return class name.

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

Implements GModelSpectral.

Definition at line 160 of file GModelSpectralPlawEnergyFlux.hpp.

◆ clear()

void GModelSpectralPlawEnergyFlux::clear ( void )
virtual

◆ clone()

GModelSpectralPlawEnergyFlux * GModelSpectralPlawEnergyFlux::clone ( void ) const
virtual

Clone power law model.

Returns
Pointer to deep copy of power law model

Implements GModelSpectral.

Definition at line 270 of file GModelSpectralPlawEnergyFlux.cpp.

References GModelSpectralPlawEnergyFlux().

◆ copy_members()

void GModelSpectralPlawEnergyFlux::copy_members ( const GModelSpectralPlawEnergyFlux & model)
protected

Copy class members.

Parameters
[in]modelSpectral power law model.

Definition at line 730 of file GModelSpectralPlawEnergyFlux.cpp.

References m_eflux, m_emax, m_emin, 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 GModelSpectralPlawEnergyFlux(), and operator=().

◆ eflux() [1/3]

void GModelSpectralPlawEnergyFlux::eflux ( const double & eflux)
inline

Set energy flux.

Parameters
[in]efluxEnergy flux (erg/cm2/s).

Sets the energy flux.

Definition at line 217 of file GModelSpectralPlawEnergyFlux.hpp.

References eflux(), m_eflux, and GOptimizerPar::value().

◆ eflux() [2/3]

double GModelSpectralPlawEnergyFlux::eflux ( const GEnergy & emin,
const GEnergy & emax ) const
virtual

Returns model energy flux between [emin, emax] (units: erg/cm2/s)

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 470 of file GModelSpectralPlawEnergyFlux.cpp.

References eflux(), emax(), emin(), index(), m_eflux, m_index, GEnergy::MeV(), and GOptimizerPar::value().

◆ eflux() [3/3]

double GModelSpectralPlawEnergyFlux::eflux ( void ) const
inline

Return energy flux.

Returns
Energy flux (erg/cm2/s).

Returns the energy flux.

Definition at line 203 of file GModelSpectralPlawEnergyFlux.hpp.

References m_eflux, and GOptimizerPar::value().

Referenced by eflux(), eflux(), eval(), GModelSpectralPlawEnergyFlux(), GModelSpectralPlawEnergyFlux(), read(), and write().

◆ emax() [1/2]

void GModelSpectralPlawEnergyFlux::emax ( const GEnergy & emax)
inline

Set maximum energy.

Parameters
[in]emaxMaximum energy.

Sets the maximum energy.

Definition at line 308 of file GModelSpectralPlawEnergyFlux.hpp.

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

◆ emax() [2/2]

GEnergy GModelSpectralPlawEnergyFlux::emax ( void ) const
inline

Return maximum energy.

Returns
Maximum energy.

Returns the maximum energy.

Definition at line 292 of file GModelSpectralPlawEnergyFlux.hpp.

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

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

◆ emin() [1/2]

void GModelSpectralPlawEnergyFlux::emin ( const GEnergy & emin)
inline

Set minimum energy.

Parameters
[in]eminMinimum energy.

Sets the minimum energy.

Definition at line 277 of file GModelSpectralPlawEnergyFlux.hpp.

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

◆ emin() [2/2]

GEnergy GModelSpectralPlawEnergyFlux::emin ( void ) const
inline

Return minimum energy.

Returns
Minimum energy.

Returns the minimum energy.

Definition at line 261 of file GModelSpectralPlawEnergyFlux.hpp.

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

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

◆ eval()

double GModelSpectralPlawEnergyFlux::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\_eflux} \frac{{\tt m\_index}+2} {{\tt e\_max}^{{\tt m\_index}+2} - {\tt e\_min}^{{\tt m\_index}+2}} E^{\tt m\_index} \]

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

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

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

  • \({\tt e\_min}\) is the minimum energy of an interval,
  • \({\tt e\_max}\) is the maximum energy of an interval,
  • \({\tt m\_eflux}\) is the energy 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\_eflux}} = \frac{S_{\rm E}(E | t)}{{\tt m\_eflux}} \]

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

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

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

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

No partial derivatives are supported for the energy boundaries.

Implements GModelSpectral.

Definition at line 341 of file GModelSpectralPlawEnergyFlux.cpp.

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

◆ flux()

double GModelSpectralPlawEnergyFlux::flux ( const GEnergy & emin,
const GEnergy & emax ) const
virtual

Returns model photon flux between [emin, emax] (units: ph/cm2/s)

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 406 of file GModelSpectralPlawEnergyFlux.cpp.

References emax(), emin(), gammalib::erg2MeV, flux(), index(), m_eflux, m_index, GEnergy::MeV(), norm(), and GOptimizerPar::value().

Referenced by flux().

◆ free_members()

void GModelSpectralPlawEnergyFlux::free_members ( void )
protected

Delete class members.

Definition at line 766 of file GModelSpectralPlawEnergyFlux.cpp.

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

◆ index() [1/2]

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

Set power law index.

Parameters
[in]indexPower law index.

Sets the power law index.

Definition at line 246 of file GModelSpectralPlawEnergyFlux.hpp.

References index(), m_index, and GOptimizerPar::value().

◆ index() [2/2]

double GModelSpectralPlawEnergyFlux::index ( void ) const
inline

Return power law index.

Returns
Power law index.

Returns the power law index.

Definition at line 232 of file GModelSpectralPlawEnergyFlux.hpp.

References m_index, and GOptimizerPar::value().

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

◆ init_members()

◆ mc()

GEnergy GModelSpectralPlawEnergyFlux::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 518 of file GModelSpectralPlawEnergyFlux.cpp.

References gammalib::check_energy_interval(), emax(), emin(), G_MC, index(), GEnergy::MeV(), and GRan::uniform().

◆ operator=()

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

Assignment operator.

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

Definition at line 217 of file GModelSpectralPlawEnergyFlux.cpp.

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

◆ print()

std::string GModelSpectralPlawEnergyFlux::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 619 of file GModelSpectralPlawEnergyFlux.cpp.

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

Referenced by print().

◆ read()

void GModelSpectralPlawEnergyFlux::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 562 of file GModelSpectralPlawEnergyFlux.cpp.

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

Referenced by GModelSpectralPlawEnergyFlux().

◆ type() [1/2]

void GModelSpectralPlawEnergyFlux::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 GModelSpectralPlawEnergyFlux.hpp.

References m_type, and type().

◆ type() [2/2]

std::string GModelSpectralPlawEnergyFlux::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 GModelSpectralPlawEnergyFlux.hpp.

References m_type.

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

◆ update()

void GModelSpectralPlawEnergyFlux::update ( const GEnergy & srcEng) const
protected

Update precomputed values.

Parameters
[in]srcEngSource energy

Definition at line 778 of file GModelSpectralPlawEnergyFlux.cpp.

References emax(), emin(), index(), 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, and GEnergy::MeV().

Referenced by eval().

◆ write()

void GModelSpectralPlawEnergyFlux::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 591 of file GModelSpectralPlawEnergyFlux.cpp.

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

Member Data Documentation

◆ m_eflux

GModelPar GModelSpectralPlawEnergyFlux::m_eflux
protected

◆ m_emax

GModelPar GModelSpectralPlawEnergyFlux::m_emax
protected

◆ m_emin

GModelPar GModelSpectralPlawEnergyFlux::m_emin
protected

◆ m_g_norm

double GModelSpectralPlawEnergyFlux::m_g_norm
mutableprotected

Power-law normalization gradient.

Definition at line 145 of file GModelSpectralPlawEnergyFlux.hpp.

Referenced by eval(), and update().

◆ m_index

GModelPar GModelSpectralPlawEnergyFlux::m_index
protected

◆ m_last_emax

GEnergy GModelSpectralPlawEnergyFlux::m_last_emax
mutableprotected

Last upper energy limit.

Definition at line 149 of file GModelSpectralPlawEnergyFlux.hpp.

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

◆ m_last_emin

GEnergy GModelSpectralPlawEnergyFlux::m_last_emin
mutableprotected

Last lower energy limit.

Definition at line 148 of file GModelSpectralPlawEnergyFlux.hpp.

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

◆ m_last_energy

GEnergy GModelSpectralPlawEnergyFlux::m_last_energy
mutableprotected

Last source energy.

Definition at line 150 of file GModelSpectralPlawEnergyFlux.hpp.

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

◆ m_last_index

double GModelSpectralPlawEnergyFlux::m_last_index
mutableprotected

Last spectral index (MeV)

Definition at line 147 of file GModelSpectralPlawEnergyFlux.hpp.

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

◆ m_log_emax

double GModelSpectralPlawEnergyFlux::m_log_emax
mutableprotected

Log(emax)

Definition at line 141 of file GModelSpectralPlawEnergyFlux.hpp.

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

◆ m_log_emin

double GModelSpectralPlawEnergyFlux::m_log_emin
mutableprotected

Log(emin)

Definition at line 140 of file GModelSpectralPlawEnergyFlux.hpp.

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

◆ m_norm

double GModelSpectralPlawEnergyFlux::m_norm
mutableprotected

Power-law normalization (for pivot energy 1 MeV)

Definition at line 144 of file GModelSpectralPlawEnergyFlux.hpp.

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

◆ m_pow_emax

double GModelSpectralPlawEnergyFlux::m_pow_emax
mutableprotected

emax^(index+1)

Definition at line 143 of file GModelSpectralPlawEnergyFlux.hpp.

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

◆ m_pow_emin

double GModelSpectralPlawEnergyFlux::m_pow_emin
mutableprotected

emin^(index+1)

Definition at line 142 of file GModelSpectralPlawEnergyFlux.hpp.

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

◆ m_power

double GModelSpectralPlawEnergyFlux::m_power
mutableprotected

Power-law factor.

Definition at line 146 of file GModelSpectralPlawEnergyFlux.hpp.

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

◆ m_type

std::string GModelSpectralPlawEnergyFlux::m_type
protected

Model type.

Definition at line 133 of file GModelSpectralPlawEnergyFlux.hpp.

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


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