GammaLib  1.7.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GModelSpectralBrokenPlaw Class Reference

Broken power law spectral model class. More...

#include <GModelSpectralBrokenPlaw.hpp>

Inheritance diagram for GModelSpectralBrokenPlaw:
GModelSpectral GBase

Public Member Functions

 GModelSpectralBrokenPlaw (void)
 Void constructor. More...
 
 GModelSpectralBrokenPlaw (const std::string &type, const std::string &prefactor, const std::string &index1, const std::string &breakenergy, const std::string &index2)
 Model type and parameter name constructor. More...
 
 GModelSpectralBrokenPlaw (const double &prefactor, const double &index1, const GEnergy &breakenergy, const double &index2)
 Parameter constructor. More...
 
 GModelSpectralBrokenPlaw (const GXmlElement &xml)
 XML constructor. More...
 
 GModelSpectralBrokenPlaw (const GModelSpectralBrokenPlaw &model)
 Copy constructor. More...
 
virtual ~GModelSpectralBrokenPlaw (void)
 Destructor. More...
 
virtual GModelSpectralBrokenPlawoperator= (const GModelSpectralBrokenPlaw &model)
 Assignment operator. More...
 
virtual void clear (void)
 Clear broken power law model. More...
 
virtual GModelSpectralBrokenPlawclone (void) const
 Clone broken 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 Monte Carlo 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 brokenpowerlaw information. More...
 
void type (const std::string &type)
 Set model type. More...
 
double prefactor (void) const
 Return pre factor. More...
 
double index1 (void) const
 Return power law index1. More...
 
double index2 (void) const
 Return power law index2. More...
 
GEnergy breakenergy (void) const
 Return breakenergy energy. More...
 
void prefactor (const double &prefactor)
 Set pre factor. More...
 
void index1 (const double &index1)
 Set power law index1. More...
 
void index2 (const double &index2)
 Set power law index2. More...
 
void breakenergy (const GEnergy &breakenergy)
 Set breakenergy 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 GModelSpectralBrokenPlaw &model)
 Copy class members. More...
 
void free_members (void)
 Delete class members. More...
 
void update_eval_cache (const GEnergy &energy) const
 Update eval precomputation cache. More...
 
void update_mc_cache (const GEnergy &emin, const GEnergy &emax) const
 Update Monte Carlo pre computation cache. 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_norm
 Normalization factor. More...
 
GModelPar m_index1
 Spectral index1. More...
 
GModelPar m_index2
 Spectral index2. More...
 
GModelPar m_breakenergy
 Energy of spectral break. More...
 
GEnergy m_last_energy
 Last energy value. More...
 
double m_last_index1
 Last index1 parameter. More...
 
double m_last_index2
 Last index1 parameter. More...
 
double m_last_breakenergy
 Last breakenergy parameter. More...
 
double m_last_e_norm
 Last E/Ebreakenergy value. More...
 
double m_last_log_e_norm
 Last ln(E/Ebreakenergy) value. More...
 
double m_last_power
 Last power value. More...
 
double m_mc_emin
 Minimum energy. More...
 
double m_mc_emax
 Maximum energy. More...
 
double m_mc_exponent1
 Exponent (index1+1) More...
 
double m_mc_exponent2
 Exponent (index2+1) More...
 
double m_mc_pow_emin
 Power of minimum energy. More...
 
double m_mc_pow_ewidth
 Power of energy width. More...
 
std::vector< double > m_mc_cum
 Cumulative distribution. More...
 
std::vector< double > m_mc_min
 Lower boundary for MC. More...
 
std::vector< double > m_mc_max
 Upper boundary for MC. More...
 
std::vector< double > m_mc_exp
 Exponent for MC. More...
 
- Protected Attributes inherited from GModelSpectral
std::vector< GModelPar * > m_pars
 Parameter pointers. More...
 

Detailed Description

Broken power law spectral model class.

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

\[ S_{\rm E}(E | t) = k_0 \times \left \{ \begin{eqnarray} \left( \frac{E}{E_b} \right)^{\gamma_1} & {\rm if\,\,} E < E_b \\ \left( \frac{E}{E_b} \right)^{\gamma_2} & {\rm otherwise} \end{eqnarray} \right . \]

where \(k_0\) is the normalization or prefactor, \(\gamma_1\) is the spectral index before the break, \(\gamma_2\) is the spectral index after the break, and \(E_b\) is the break energy.

Definition at line 65 of file GModelSpectralBrokenPlaw.hpp.

Constructor & Destructor Documentation

GModelSpectralBrokenPlaw::GModelSpectralBrokenPlaw ( void  )

Void constructor.

Definition at line 78 of file GModelSpectralBrokenPlaw.cpp.

References init_members().

Referenced by clone().

GModelSpectralBrokenPlaw::GModelSpectralBrokenPlaw ( const std::string &  type,
const std::string &  prefactor,
const std::string &  index1,
const std::string &  breakenergy,
const std::string &  index2 
)

Model type and parameter name constructor.

Parameters
[in]typeModel type.
[in]prefactorName of prefactor parameter.
[in]index1Name of index1 parameter.
[in]breakenergyName of breakenergy parameter.
[in]index2Name of index2 parameter.

Definition at line 97 of file GModelSpectralBrokenPlaw.cpp.

References init_members(), m_breakenergy, m_index1, m_index2, m_norm, m_type, GOptimizerPar::name(), and type().

GModelSpectralBrokenPlaw::GModelSpectralBrokenPlaw ( const double &  prefactor,
const double &  index1,
const GEnergy breakenergy,
const double &  index2 
)

Parameter constructor.

Parameters
[in]prefactorPower law pre factor (ph/cm2/s/MeV).
[in]index1Power law index1.
[in]breakenergybreak energy.
[in]index2Power law index1.

Constructs a spectral power law using the model parameters

power law @p prefactor (ph/cm2/s/MeV)
spectral @p index1
Energy @p breakenergy of spectral break
spectral @p index2

Definition at line 136 of file GModelSpectralBrokenPlaw.cpp.

References GModelSpectral::autoscale(), init_members(), m_breakenergy, m_index1, m_index2, m_norm, GEnergy::MeV(), and GOptimizerPar::value().

GModelSpectralBrokenPlaw::GModelSpectralBrokenPlaw ( const GXmlElement xml)
explicit

XML constructor.

Parameters
[in]xmlXML element containing position information.

Constructs a power law spectral model by extracting information from an XML element. See the read() method for more information about the expected structure of the XML element.

Definition at line 168 of file GModelSpectralBrokenPlaw.cpp.

References init_members(), and read().

GModelSpectralBrokenPlaw::GModelSpectralBrokenPlaw ( const GModelSpectralBrokenPlaw model)

Copy constructor.

Parameters
[in]modelBroken power law model.

Definition at line 187 of file GModelSpectralBrokenPlaw.cpp.

References copy_members(), and init_members().

GModelSpectralBrokenPlaw::~GModelSpectralBrokenPlaw ( void  )
virtual

Destructor.

Definition at line 204 of file GModelSpectralBrokenPlaw.cpp.

References free_members().

Member Function Documentation

GEnergy GModelSpectralBrokenPlaw::breakenergy ( void  ) const
inline

Return breakenergy energy.

Returns
breakenergy energy.

Returns the breakenergy energy.

Definition at line 289 of file GModelSpectralBrokenPlaw.hpp.

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

Referenced by read(), update_eval_cache(), and write().

void GModelSpectralBrokenPlaw::breakenergy ( const GEnergy breakenergy)
inline

Set breakenergy energy.

Parameters
[in]breakenergybreakenergy energy.

Sets the breakenergy energy.

Definition at line 305 of file GModelSpectralBrokenPlaw.hpp.

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

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

Return class name.

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

Implements GModelSpectral.

Definition at line 159 of file GModelSpectralBrokenPlaw.hpp.

void GModelSpectralBrokenPlaw::clear ( void  )
virtual

Clear broken power law model.

Implements GModelSpectral.

Definition at line 259 of file GModelSpectralBrokenPlaw.cpp.

References GModelSpectral::free_members(), free_members(), GModelSpectral::init_members(), and init_members().

GModelSpectralBrokenPlaw * GModelSpectralBrokenPlaw::clone ( void  ) const
virtual

Clone broken power law model.

Returns
Pointer to deep copy of broken power law model.

Implements GModelSpectral.

Definition at line 279 of file GModelSpectralBrokenPlaw.cpp.

References GModelSpectralBrokenPlaw().

void GModelSpectralBrokenPlaw::copy_members ( const GModelSpectralBrokenPlaw model)
protected
double GModelSpectralBrokenPlaw::eflux ( const GEnergy emin,
const GEnergy emax 
) const
virtual

Returns model energy flux between emin, emax

Parameters
[in]eminMinimum photon energy.
[in]emaxMaximum 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). The integration is done analytically.

Implements GModelSpectral.

Definition at line 498 of file GModelSpectralBrokenPlaw.cpp.

References m_breakenergy, m_index1, m_index2, m_norm, GEnergy::MeV(), gammalib::MeV2erg, gammalib::plaw_energy_flux(), and GOptimizerPar::value().

double GModelSpectralBrokenPlaw::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).

Evaluates

\[ S_{\rm E}(E | t) = k_0 \times \left \{ \begin{eqnarray} \left( \frac{E}{E_b} \right)^{\gamma_1} & {\rm if\,\,} E < E_b \\ \left( \frac{E}{E_b} \right)^{\gamma_2} & {\rm otherwise} \end{eqnarray} \right . \]

where \(k_0\) is the normalization or prefactor, \(\gamma_1\) is the spectral index before the break, \(\gamma_2\) is the spectral index after the break, and \(E_b\) is the break energy.

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 k_0} = \frac{S_{\rm E}(E | t)}{k_0} \]

\[ \frac{\delta S_{\rm E}(E | t)}{\delta \gamma_1} = \left \{ \begin{eqnarray} S_{\rm E}(E | t) \, \ln(E/E_b) & {\rm if\,\,} E < E_b \\ 0 & {\rm otherwise} \end{eqnarray} \right . \]

\[ \frac{\delta S_{\rm E}(E | t)}{\delta \gamma_2} = \left \{ \begin{eqnarray} 0 & {\rm if\,\,} E < E_b \\ S_{\rm E}(E | t) \, \ln(E/E_b) & {\rm otherwise} \end{eqnarray} \right . \]

\[ \frac{\delta S_{\rm E}(E | t)}{\delta E_b} = k_0 \times \left \{ \begin{eqnarray} -S_{\rm E}(E | t) \, \left( \frac{\gamma_1}{E_b} \right) & {\rm if\,\,} E < E_b \\ -S_{\rm E}(E | t) \, \left( \frac{\gamma_2}{E_b} \right) & {\rm otherwise} \end{eqnarray} \right . \]

Todo:
The method expects that energy!=0. Otherwise Inf or NaN may result.

Implements GModelSpectral.

Definition at line 348 of file GModelSpectralBrokenPlaw.cpp.

References GOptimizerPar::factor_gradient(), GOptimizerPar::factor_value(), GOptimizerPar::is_free(), gammalib::is_infinite(), gammalib::is_notanumber(), m_breakenergy, m_index1, m_index2, m_last_index1, m_last_index2, m_last_log_e_norm, m_last_power, m_norm, GEnergy::MeV(), GOptimizerPar::scale(), update_eval_cache(), and GOptimizerPar::value().

Referenced by GModelSpectralSmoothBrokenPlaw::mc().

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

Returns model photon flux between emin, emax

Parameters
[in]eminMinimum photon energy.
[in]emaxMaximum 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). The integration is done analytically.

Implements GModelSpectral.

Definition at line 431 of file GModelSpectralBrokenPlaw.cpp.

References m_breakenergy, m_index1, m_index2, m_norm, GEnergy::MeV(), gammalib::plaw_photon_flux(), and GOptimizerPar::value().

Referenced by update_mc_cache().

void GModelSpectralBrokenPlaw::free_members ( void  )
protected

Delete class members.

Definition at line 840 of file GModelSpectralBrokenPlaw.cpp.

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

double GModelSpectralBrokenPlaw::index1 ( void  ) const
inline

Return power law index1.

Returns
Power law index1.

Returns the power law index1.

Definition at line 231 of file GModelSpectralBrokenPlaw.hpp.

References m_index1, and GOptimizerPar::value().

Referenced by read(), update_eval_cache(), and write().

void GModelSpectralBrokenPlaw::index1 ( const double &  index1)
inline

Set power law index1.

Parameters
[in]index1Power law index1.

Sets the power law index1.

Definition at line 245 of file GModelSpectralBrokenPlaw.hpp.

References m_index1, and GOptimizerPar::value().

double GModelSpectralBrokenPlaw::index2 ( void  ) const
inline

Return power law index2.

Returns
Power law index2.

Returns the power law index2.

Definition at line 260 of file GModelSpectralBrokenPlaw.hpp.

References m_index2, and GOptimizerPar::value().

Referenced by read(), update_eval_cache(), and write().

void GModelSpectralBrokenPlaw::index2 ( const double &  index2)
inline

Set power law index2.

Parameters
[in]index2Power law index2.

Sets the power law index2.

Definition at line 274 of file GModelSpectralBrokenPlaw.hpp.

References m_index2, and GOptimizerPar::value().

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

Returns Monte Carlo 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.
Exceptions
GException::erange_invalidEnergy range is invalid (emin < emax required).

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

Implements GModelSpectral.

Definition at line 560 of file GModelSpectralBrokenPlaw.cpp.

References exp(), G_MC, log(), m_mc_cum, m_mc_exp, m_mc_max, m_mc_min, GEnergy::MeV(), GRan::uniform(), and update_mc_cache().

Referenced by GModelSpectralSmoothBrokenPlaw::mc().

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

Assignment operator.

Parameters
[in]modelBroken power law model.
Returns
Broken power law model.

Definition at line 226 of file GModelSpectralBrokenPlaw.cpp.

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

double GModelSpectralBrokenPlaw::prefactor ( void  ) const
inline

Return pre factor.

Returns
Pre factor (ph/cm2/s/MeV).

Returns the pre factor.

Definition at line 202 of file GModelSpectralBrokenPlaw.hpp.

References m_norm, and GOptimizerPar::value().

Referenced by read().

void GModelSpectralBrokenPlaw::prefactor ( const double &  prefactor)
inline

Set pre factor.

Parameters
[in]prefactorPre factor (ph/cm2/s/MeV).

Sets the pre factor.

Definition at line 216 of file GModelSpectralBrokenPlaw.hpp.

References m_norm, and GOptimizerPar::value().

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

Print brokenpowerlaw information.

Parameters
[in]chatterChattiness (defaults to NORMAL).
Returns
String containing model information.

Implements GModelSpectral.

Definition at line 682 of file GModelSpectralBrokenPlaw.cpp.

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

void GModelSpectralBrokenPlaw::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 617 of file GModelSpectralBrokenPlaw.cpp.

References breakenergy(), G_READ, index1(), index2(), m_breakenergy, m_index1, m_index2, m_norm, GOptimizerPar::name(), prefactor(), GModelPar::read(), and gammalib::xml_get_par().

Referenced by GModelSpectralBrokenPlaw().

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

Return model type.

Returns
"PowerLaw".

Returns the type of the spectral broken power law model.

Implements GModelSpectral.

Definition at line 173 of file GModelSpectralBrokenPlaw.hpp.

References m_type.

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

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

Set model type.

Parameters
[in]typeModel type.

Set the type of the spectral broken power law model.

Definition at line 187 of file GModelSpectralBrokenPlaw.hpp.

References m_type, and type().

void GModelSpectralBrokenPlaw::update_eval_cache ( const GEnergy energy) const
protected

Update eval precomputation cache.

Parameters
[in]energyEnergy.

Updates the precomputation cache for eval() the method.

Definition at line 854 of file GModelSpectralBrokenPlaw.cpp.

References breakenergy(), index1(), index2(), log(), m_breakenergy, m_index1, m_index2, m_last_breakenergy, m_last_e_norm, m_last_energy, m_last_index1, m_last_index2, m_last_log_e_norm, m_last_power, GEnergy::MeV(), pow(), and GOptimizerPar::value().

Referenced by eval().

void GModelSpectralBrokenPlaw::update_mc_cache ( const GEnergy emin,
const GEnergy emax 
) const
protected

Update Monte Carlo pre computation cache.

Parameters
[in]eminMinimum photon energy.
[in]emaxMaximum photon energy.

Updates the precomputation cache for Monte Carlo simulations.

Definition at line 901 of file GModelSpectralBrokenPlaw.cpp.

References abs(), flux(), log(), m_breakenergy, m_index1, m_index2, m_mc_cum, m_mc_emax, m_mc_emin, m_mc_exp, m_mc_max, m_mc_min, m_norm, GEnergy::MeV(), norm(), gammalib::plaw_photon_flux(), pow(), and GOptimizerPar::value().

Referenced by mc().

void GModelSpectralBrokenPlaw::write ( GXmlElement xml) const
virtual

Write model into XML element.

Parameters
[in]xmlXML element.
Exceptions
GException::model_invalid_spectralExisting XML element is not of the expected type.

Writes the spectral information into an XML element.

Implements GModelSpectral.

Definition at line 646 of file GModelSpectralBrokenPlaw.cpp.

References GXmlElement::attribute(), breakenergy(), G_WRITE, index1(), index2(), m_breakenergy, m_index1, m_index2, m_norm, GOptimizerPar::name(), norm(), type(), GModelPar::write(), and gammalib::xml_need_par().

Member Data Documentation

GModelPar GModelSpectralBrokenPlaw::m_breakenergy
protected
GModelPar GModelSpectralBrokenPlaw::m_index1
protected
GModelPar GModelSpectralBrokenPlaw::m_index2
protected
double GModelSpectralBrokenPlaw::m_last_breakenergy
mutableprotected

Last breakenergy parameter.

Definition at line 136 of file GModelSpectralBrokenPlaw.hpp.

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

double GModelSpectralBrokenPlaw::m_last_e_norm
mutableprotected

Last E/Ebreakenergy value.

Definition at line 137 of file GModelSpectralBrokenPlaw.hpp.

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

GEnergy GModelSpectralBrokenPlaw::m_last_energy
mutableprotected

Last energy value.

Definition at line 133 of file GModelSpectralBrokenPlaw.hpp.

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

double GModelSpectralBrokenPlaw::m_last_index1
mutableprotected

Last index1 parameter.

Definition at line 134 of file GModelSpectralBrokenPlaw.hpp.

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

double GModelSpectralBrokenPlaw::m_last_index2
mutableprotected

Last index1 parameter.

Definition at line 135 of file GModelSpectralBrokenPlaw.hpp.

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

double GModelSpectralBrokenPlaw::m_last_log_e_norm
mutableprotected

Last ln(E/Ebreakenergy) value.

Definition at line 138 of file GModelSpectralBrokenPlaw.hpp.

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

double GModelSpectralBrokenPlaw::m_last_power
mutableprotected

Last power value.

Definition at line 139 of file GModelSpectralBrokenPlaw.hpp.

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

std::vector<double> GModelSpectralBrokenPlaw::m_mc_cum
mutableprotected

Cumulative distribution.

Definition at line 146 of file GModelSpectralBrokenPlaw.hpp.

Referenced by mc(), and update_mc_cache().

double GModelSpectralBrokenPlaw::m_mc_emax
mutableprotected

Maximum energy.

Definition at line 141 of file GModelSpectralBrokenPlaw.hpp.

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

double GModelSpectralBrokenPlaw::m_mc_emin
mutableprotected

Minimum energy.

Definition at line 140 of file GModelSpectralBrokenPlaw.hpp.

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

std::vector<double> GModelSpectralBrokenPlaw::m_mc_exp
mutableprotected

Exponent for MC.

Definition at line 149 of file GModelSpectralBrokenPlaw.hpp.

Referenced by mc(), and update_mc_cache().

double GModelSpectralBrokenPlaw::m_mc_exponent1
mutableprotected

Exponent (index1+1)

Definition at line 142 of file GModelSpectralBrokenPlaw.hpp.

Referenced by copy_members(), and init_members().

double GModelSpectralBrokenPlaw::m_mc_exponent2
mutableprotected

Exponent (index2+1)

Definition at line 143 of file GModelSpectralBrokenPlaw.hpp.

Referenced by copy_members(), and init_members().

std::vector<double> GModelSpectralBrokenPlaw::m_mc_max
mutableprotected

Upper boundary for MC.

Definition at line 148 of file GModelSpectralBrokenPlaw.hpp.

Referenced by mc(), and update_mc_cache().

std::vector<double> GModelSpectralBrokenPlaw::m_mc_min
mutableprotected

Lower boundary for MC.

Definition at line 147 of file GModelSpectralBrokenPlaw.hpp.

Referenced by mc(), and update_mc_cache().

double GModelSpectralBrokenPlaw::m_mc_pow_emin
mutableprotected

Power of minimum energy.

Definition at line 144 of file GModelSpectralBrokenPlaw.hpp.

Referenced by copy_members(), and init_members().

double GModelSpectralBrokenPlaw::m_mc_pow_ewidth
mutableprotected

Power of energy width.

Definition at line 145 of file GModelSpectralBrokenPlaw.hpp.

Referenced by copy_members(), and init_members().

GModelPar GModelSpectralBrokenPlaw::m_norm
protected
std::string GModelSpectralBrokenPlaw::m_type
protected

Model type.

Definition at line 126 of file GModelSpectralBrokenPlaw.hpp.

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


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