GammaLib 2.0.0
|
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. | |
![]() | |
GFunction (void) | |
Void constructor. | |
GFunction (const GFunction &function) | |
Copy constructor. | |
virtual | ~GFunction (void) |
Destructor. | |
GFunction & | operator= (const GFunction &function) |
Assignment operator. | |
Protected Attributes | |
double | m_ereco |
double | m_e0 |
Incident energy (MeV) | |
double | m_wgt |
Inverse of Gaussian standard deviation (1/MeV) | |
Additional Inherited Members | |
![]() | |
void | init_members (void) |
Initialise class members. | |
void | copy_members (const GFunction &function) |
Copy class members. | |
void | free_members (void) |
Delete class members. | |
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 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.