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

Super exponential cut off power law spectral class. More...

#include <GModelSpectralSuperExpPlaw.hpp>

Inheritance diagram for GModelSpectralSuperExpPlaw:
GModelSpectral GBase

Classes

class  eflux_kernel
 
class  flux_kernel
 

Public Member Functions

 GModelSpectralSuperExpPlaw (void)
 Void constructor. More...
 
 GModelSpectralSuperExpPlaw (const std::string &type, const std::string &prefactor, const std::string &index1, const std::string &pivot, const std::string &cutoff, const std::string &index2)
 Model type and parameter name constructor. More...
 
 GModelSpectralSuperExpPlaw (const double &prefactor, const double &index1, const GEnergy &pivot, const GEnergy &cutoff, const double &index2)
 Constructor. More...
 
 GModelSpectralSuperExpPlaw (const GXmlElement &xml)
 XML constructor. More...
 
 GModelSpectralSuperExpPlaw (const GModelSpectralSuperExpPlaw &model)
 Copy constructor. More...
 
virtual ~GModelSpectralSuperExpPlaw (void)
 Destructor. More...
 
virtual
GModelSpectralSuperExpPlaw
operator= (const GModelSpectralSuperExpPlaw &model)
 Assignment operator. More...
 
virtual void clear (void)
 Clear exponentially cut off power law model. More...
 
virtual
GModelSpectralSuperExpPlaw
clone (void) const
 Clone super exponentially cut off 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 model information. More...
 
void type (const std::string &type)
 Set model type. More...
 
double prefactor (void) const
 Return pre factor. More...
 
void prefactor (const double &prefactor)
 Set pre factor. More...
 
double index1 (void) const
 Return power law index. More...
 
void index1 (const double &index1)
 Set power law index. More...
 
double index2 (void) const
 Return cut off index. More...
 
void index2 (const double &index2)
 Set cut off index. More...
 
GEnergy cutoff (void) const
 Return exponential cut-off energy. More...
 
void cutoff (const GEnergy &cutoff)
 Set exponential cut-off energy. More...
 
GEnergy pivot (void) const
 Return pivot energy. More...
 
void pivot (const GEnergy &pivot)
 Set pivot 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 GModelSpectralSuperExpPlaw &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 index. More...
 
GModelPar m_index2
 Index of cutoff. More...
 
GModelPar m_ecut
 Exponential cut off energy. More...
 
GModelPar m_pivot
 Pivot energy. More...
 
GEnergy m_last_energy
 Last energy value. More...
 
double m_last_index1
 Last index1 parameter. More...
 
double m_last_ecut
 Last energy cut-off parameter. More...
 
double m_last_pivot
 Last pivot parameter. More...
 
double m_last_index2
 Last index2 parameter. More...
 
double m_last_e_norm
 Last E/Epivot value. More...
 
double m_last_e_cut
 Last E/Ecut value. More...
 
double m_last_exponent
 last pow(E/Ecut,index2) 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_exponent
 Exponent (index+1) More...
 
double m_mc_pow_emin
 Power of minimum energy. More...
 
double m_mc_pow_ewidth
 Power of energy width. More...
 
- Protected Attributes inherited from GModelSpectral
std::vector< GModelPar * > m_pars
 Parameter pointers. More...
 

Detailed Description

Super exponential cut off power law spectral class.

This class implements a power law spectrum with super exponential cut off. The model is defined by

\[ S_{\rm E}(E | t) = {\tt m\_norm} \left( \frac{E}{\tt m\_pivot} \right)^{\tt m\_index1} \exp \left( - \left( \frac{E}{\tt m\_ecut} \right)^{\tt m\_index2} \right) \]

where

  • \({\tt m\_norm}\) is the normalization or prefactor,
  • \({\tt m\_pivot}\) is the pivot energy,
  • \({\tt m\_index1}\) is the spectral index
  • \({\tt m\_ecut}\) is the cut off energy, and
  • \({\tt m\_index2}\) is the index of the cut off.

Definition at line 65 of file GModelSpectralSuperExpPlaw.hpp.

Constructor & Destructor Documentation

GModelSpectralSuperExpPlaw::GModelSpectralSuperExpPlaw ( void  )

Void constructor.

Definition at line 82 of file GModelSpectralSuperExpPlaw.cpp.

References init_members().

Referenced by clone().

GModelSpectralSuperExpPlaw::GModelSpectralSuperExpPlaw ( const std::string &  type,
const std::string &  prefactor,
const std::string &  index1,
const std::string &  pivot,
const std::string &  cutoff,
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]pivotName of pivot parameter.
[in]cutoffName of cutoff parameter.
[in]index2Name of index2 parameter.

Definition at line 102 of file GModelSpectralSuperExpPlaw.cpp.

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

GModelSpectralSuperExpPlaw::GModelSpectralSuperExpPlaw ( const double &  prefactor,
const double &  index1,
const GEnergy pivot,
const GEnergy cutoff,
const double &  index2 
)

Constructor.

Parameters
[in]prefactorPre factor normalization (ph/cm2/s/MeV).
[in]index1Power law index.
[in]pivotPivot energy.
[in]cutoffCut off energy.
[in]index2index of cut off

Construct an exponentially cut off power law from

  • a prefactor value (in units of ph/cm2/s/MeV)
  • a spectral index,
  • a pivot energy,
  • a cut off energy, and
  • a cut off exponent

Definition at line 144 of file GModelSpectralSuperExpPlaw.cpp.

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

GModelSpectralSuperExpPlaw::GModelSpectralSuperExpPlaw ( const GXmlElement xml)
explicit

XML constructor.

Parameters
[in]xmlXML element.

Constructs an exponentially cut off 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 178 of file GModelSpectralSuperExpPlaw.cpp.

References init_members(), and read().

GModelSpectralSuperExpPlaw::GModelSpectralSuperExpPlaw ( const GModelSpectralSuperExpPlaw model)

Copy constructor.

Parameters
[in]modelSuper exponentially cut off power law model.

Definition at line 197 of file GModelSpectralSuperExpPlaw.cpp.

References copy_members(), and init_members().

GModelSpectralSuperExpPlaw::~GModelSpectralSuperExpPlaw ( void  )
virtual

Destructor.

Definition at line 214 of file GModelSpectralSuperExpPlaw.cpp.

References free_members().

Member Function Documentation

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

Return class name.

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

Implements GModelSpectral.

Definition at line 205 of file GModelSpectralSuperExpPlaw.hpp.

void GModelSpectralSuperExpPlaw::clear ( void  )
virtual

Clear exponentially cut off power law model.

Implements GModelSpectral.

Definition at line 269 of file GModelSpectralSuperExpPlaw.cpp.

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

GModelSpectralSuperExpPlaw * GModelSpectralSuperExpPlaw::clone ( void  ) const
virtual

Clone super exponentially cut off power law model.

Returns
Pointer to deep copy of super exponentially cut off power law model.

Implements GModelSpectral.

Definition at line 289 of file GModelSpectralSuperExpPlaw.cpp.

References GModelSpectralSuperExpPlaw().

void GModelSpectralSuperExpPlaw::copy_members ( const GModelSpectralSuperExpPlaw model)
protected
GEnergy GModelSpectralSuperExpPlaw::cutoff ( void  ) const
inline

Return exponential cut-off energy.

Returns
Exponential cut-off energy.

Returns the exponential cut-off energy.

Definition at line 365 of file GModelSpectralSuperExpPlaw.hpp.

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

void GModelSpectralSuperExpPlaw::cutoff ( const GEnergy cutoff)
inline

Set exponential cut-off energy.

Parameters
[in]cutoffExponential cut-off energy.

Sets the exponential cut-off energy.

Definition at line 381 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::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 numerically.

Implements GModelSpectral.

Definition at line 480 of file GModelSpectralSuperExpPlaw.cpp.

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

double GModelSpectralSuperExpPlaw::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) = {\tt m\_norm} \left( \frac{E}{\tt m\_pivot} \right)^{\tt m\_index1} \exp \left( - \left( \frac{E}{\tt m\_ecut} \right)^{\tt m\_index2} \right) \]

where

  • \({\tt m\_norm}\) is the normalization or prefactor,
  • \({\tt m\_pivot}\) is the pivot energy,
  • \({\tt m\_index1}\) is the spectral index
  • \({\tt m\_ecut}\) is the cut off energy, and
  • \({\tt m\_index2}\) is the index of the cut off.

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

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

\[ \frac{\delta S_{\rm E}(E | t)}{\delta {\tt m\_ecut}} = S_{\rm E}(E | t) \, \left( \frac{E}{{\tt m\_ecut}^{\tt m\_index2}} \right) \, \left(\frac{\tt m\_index2}{\tt m\_ecut}\right) \]

\[ \frac{\delta S_{\rm E}(E | t)}{\delta {\tt m\_index2}} = -S_{\rm E}(E | t) \, \ln \left(\frac{E}{\tt m\_ecut}\right)\, \left(\frac{E}{{\tt m\_ecut}^{\tt m\_index2}} \right) \]

\[ \frac{\delta S_{\rm E}(E | t)}{\delta {\tt m\_pivot}} = -S_{\rm E}(E | t) \, \left( \frac{\tt m\_index}{\tt m\_pivot} \right) \]

Todo:
The method expects that pivot!=0 and ecut!=0. Otherwise Inf or NaN may result. We should add a test that prevents using invalid values.

Implements GModelSpectral.

Definition at line 355 of file GModelSpectralSuperExpPlaw.cpp.

References GOptimizerPar::factor_gradient(), GOptimizerPar::factor_value(), GOptimizerPar::is_free(), gammalib::is_infinite(), gammalib::is_notanumber(), log(), m_ecut, m_index1, m_index2, m_last_e_cut, m_last_e_norm, m_last_exponent, m_last_index1, m_last_index2, m_last_power, m_norm, m_pivot, GOptimizerPar::scale(), update_eval_cache(), and GOptimizerPar::value().

double GModelSpectralSuperExpPlaw::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 numerically.

Implements GModelSpectral.

Definition at line 434 of file GModelSpectralSuperExpPlaw.cpp.

References m_ecut, m_index1, m_index2, m_norm, m_pivot, GEnergy::MeV(), and GOptimizerPar::value().

void GModelSpectralSuperExpPlaw::free_members ( void  )
protected

Delete class members.

Definition at line 852 of file GModelSpectralSuperExpPlaw.cpp.

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

double GModelSpectralSuperExpPlaw::index1 ( void  ) const
inline

Return power law index.

Returns
Power law index.

Returns the power law index.

Definition at line 277 of file GModelSpectralSuperExpPlaw.hpp.

References m_index1, and GOptimizerPar::value().

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

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

Set power law index.

Parameters
[in]index1Power law index.

Sets the power law index.

Definition at line 291 of file GModelSpectralSuperExpPlaw.hpp.

References m_index1, and GOptimizerPar::value().

double GModelSpectralSuperExpPlaw::index2 ( void  ) const
inline

Return cut off index.

Returns
cut off index.

Returns the cut off index.

Definition at line 305 of file GModelSpectralSuperExpPlaw.hpp.

References m_index2, and GOptimizerPar::value().

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

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

Set cut off index.

Parameters
[in]index2Cut off index.

Sets the cut off index.

Definition at line 319 of file GModelSpectralSuperExpPlaw.hpp.

References m_index2, and GOptimizerPar::value().

GEnergy GModelSpectralSuperExpPlaw::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.

Simulates a random energy in the interval [emin, emax] for an exponentially cut off power law. The simulation is done using a rejection method. First, a random energy within [emin, emax] is drawn from an power law distribution. Then the energy is accepted or rejected based on an acceptance fraction that is computed from the exponential cut off.

Implements GModelSpectral.

Definition at line 526 of file GModelSpectralSuperExpPlaw.cpp.

References gammalib::check_energy_interval(), exp(), G_MC, index1(), log(), m_ecut, m_index2, m_mc_exponent, m_mc_pow_emin, m_mc_pow_ewidth, GEnergy::MeV(), norm(), pow(), GEnergy::print(), GTime::print(), GRan::uniform(), update_mc_cache(), and GOptimizerPar::value().

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

Assignment operator.

Parameters
[in]modelSuper exponentially cut off power law model.
Returns
Super exponentially cut off power law model.

Definition at line 236 of file GModelSpectralSuperExpPlaw.cpp.

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

GEnergy GModelSpectralSuperExpPlaw::pivot ( void  ) const
inline

Return pivot energy.

Returns
Pivot energy.

Returns the pivot energy.

Definition at line 334 of file GModelSpectralSuperExpPlaw.hpp.

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

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

void GModelSpectralSuperExpPlaw::pivot ( const GEnergy pivot)
inline

Set pivot energy.

Parameters
[in]pivotPivot energy.

Sets the pivot energy.

Definition at line 350 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::prefactor ( void  ) const
inline

Return pre factor.

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

Returns the pre factor.

Definition at line 248 of file GModelSpectralSuperExpPlaw.hpp.

References m_norm, and GOptimizerPar::value().

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

Set pre factor.

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

Sets the pre factor.

Definition at line 262 of file GModelSpectralSuperExpPlaw.hpp.

References m_norm, and GOptimizerPar::value().

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

Print model information.

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

Implements GModelSpectral.

Definition at line 681 of file GModelSpectralSuperExpPlaw.cpp.

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

void GModelSpectralSuperExpPlaw::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 620 of file GModelSpectralSuperExpPlaw.cpp.

References G_READ, index1(), index2(), m_ecut, m_index1, m_index2, m_norm, m_pivot, GOptimizerPar::name(), norm(), pivot(), GModelPar::read(), gammalib::xml_check_parnum(), and gammalib::xml_get_par().

Referenced by GModelSpectralSuperExpPlaw().

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

Return model type.

Returns
"SuperExpCutoff".

Returns the type of the super exponentially cut off power law model.

Implements GModelSpectral.

Definition at line 219 of file GModelSpectralSuperExpPlaw.hpp.

References m_type.

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

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

Set model type.

Parameters
[in]typeModel type.

Set the type of the super exponentially cut off power law model.

Definition at line 233 of file GModelSpectralSuperExpPlaw.hpp.

References m_type, and type().

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

Update eval precomputation cache.

Parameters
[in]energyEnergy.

Updates the precomputation cache for eval() method.

Definition at line 866 of file GModelSpectralSuperExpPlaw.cpp.

References exp(), index1(), index2(), m_ecut, m_index1, m_index2, m_last_e_cut, m_last_e_norm, m_last_ecut, m_last_energy, m_last_exponent, m_last_index1, m_last_index2, m_last_pivot, m_last_power, m_pivot, GEnergy::MeV(), pivot(), pow(), and GOptimizerPar::value().

Referenced by eval().

void GModelSpectralSuperExpPlaw::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 913 of file GModelSpectralSuperExpPlaw.cpp.

References index1(), log(), m_mc_emax, m_mc_emin, m_mc_exponent, m_mc_pow_emin, m_mc_pow_ewidth, GEnergy::MeV(), and pow().

Referenced by mc().

void GModelSpectralSuperExpPlaw::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 651 of file GModelSpectralSuperExpPlaw.cpp.

References G_WRITE, index1(), index2(), m_ecut, m_index1, m_index2, m_norm, m_pivot, GOptimizerPar::name(), norm(), pivot(), type(), GModelPar::write(), gammalib::xml_check_type(), and gammalib::xml_need_par().

Member Data Documentation

GModelPar GModelSpectralSuperExpPlaw::m_ecut
protected
double GModelSpectralSuperExpPlaw::m_last_e_cut
mutableprotected

Last E/Ecut value.

Definition at line 188 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::m_last_e_norm
mutableprotected

Last E/Epivot value.

Definition at line 187 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::m_last_ecut
mutableprotected

Last energy cut-off parameter.

Definition at line 184 of file GModelSpectralSuperExpPlaw.hpp.

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

GEnergy GModelSpectralSuperExpPlaw::m_last_energy
mutableprotected

Last energy value.

Definition at line 182 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::m_last_exponent
mutableprotected

last pow(E/Ecut,index2) value

Definition at line 189 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::m_last_index1
mutableprotected

Last index1 parameter.

Definition at line 183 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::m_last_index2
mutableprotected

Last index2 parameter.

Definition at line 186 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::m_last_pivot
mutableprotected

Last pivot parameter.

Definition at line 185 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::m_last_power
mutableprotected

Last power value.

Definition at line 190 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::m_mc_emax
mutableprotected

Maximum energy.

Definition at line 192 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::m_mc_emin
mutableprotected

Minimum energy.

Definition at line 191 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::m_mc_exponent
mutableprotected

Exponent (index+1)

Definition at line 193 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::m_mc_pow_emin
mutableprotected

Power of minimum energy.

Definition at line 194 of file GModelSpectralSuperExpPlaw.hpp.

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

double GModelSpectralSuperExpPlaw::m_mc_pow_ewidth
mutableprotected

Power of energy width.

Definition at line 195 of file GModelSpectralSuperExpPlaw.hpp.

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

GModelPar GModelSpectralSuperExpPlaw::m_norm
protected
GModelPar GModelSpectralSuperExpPlaw::m_pivot
protected
std::string GModelSpectralSuperExpPlaw::m_type
protected

Model type.

Definition at line 174 of file GModelSpectralSuperExpPlaw.hpp.

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


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