GammaLib
2.1.0.dev
|
Public Member Functions | |
bkg_gauss_kernel (const double &ereco, const double &e0, const double &sigma) | |
double | eval (const double &e) |
Computes Compton background multiplied with Gaussian. More... | |
Public Member Functions inherited from GFunction | |
GFunction (void) | |
Void constructor. More... | |
GFunction (const GFunction &function) | |
Copy constructor. More... | |
virtual | ~GFunction (void) |
Destructor. More... | |
GFunction & | operator= (const GFunction &function) |
Assignment operator. More... | |
Protected Attributes | |
double | m_ereco |
double | m_e0 |
Incident energy (MeV) More... | |
double | m_wgt |
Inverse of Gaussian standard deviation (1/MeV) More... | |
Additional Inherited Members | |
Protected Member Functions inherited from GFunction | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GFunction &function) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Definition at line 113 of file GCOMD2Response.hpp.
|
inline |
Definition at line 115 of file GCOMD2Response.hpp.
|
virtual |
Computes Compton background multiplied with Gaussian.
[in] | e | Energy (MeV). |
Computes a Gaussian kernel value using
\[ B_{\rm c}(E|E',E_0) = \frac{1}{\sigma(E') \sqrt{2\pi}} \exp \left( -\frac{1}{2} \frac{(E-E')^2}{\sigma^2(E')} \right) \]
where \(E'\) is the reconstructed energy, \(\sigma(E')\) is the standard deviation at the reconstructed energy, and \(E\) is the energy over which the convolution is performed.
The code implementation is based on the COMPASS RESRS209 function FUNC2.F (release 1.0, 14-Oct-91).
Implements GFunction.
Definition at line 1099 of file GCOMD2Response.cpp.
References exp(), and gammalib::inv_sqrt2pi.
|
protected |
Incident energy (MeV)
Definition at line 124 of file GCOMD2Response.hpp.
|
protected |
Definition at line 123 of file GCOMD2Response.hpp.
|
protected |
Inverse of Gaussian standard deviation (1/MeV)
Definition at line 125 of file GCOMD2Response.hpp.