GammaLib  2.1.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GCOMD2Response::bkg_gauss_kernel Class Reference
Inheritance diagram for GCOMD2Response::bkg_gauss_kernel:
GFunction

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...
 
GFunctionoperator= (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...
 

Detailed Description

Definition at line 113 of file GCOMD2Response.hpp.

Constructor & Destructor Documentation

GCOMD2Response::bkg_gauss_kernel::bkg_gauss_kernel ( const double &  ereco,
const double &  e0,
const double &  sigma 
)
inline

Definition at line 115 of file GCOMD2Response.hpp.

Member Function Documentation

double GCOMD2Response::bkg_gauss_kernel::eval ( const double &  e)
virtual

Computes Compton background multiplied with Gaussian.

Parameters
[in]eEnergy (MeV).
Returns
Gaussian kernel value.

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.

Member Data Documentation

double GCOMD2Response::bkg_gauss_kernel::m_e0
protected

Incident energy (MeV)

Definition at line 124 of file GCOMD2Response.hpp.

double GCOMD2Response::bkg_gauss_kernel::m_ereco
protected

Definition at line 123 of file GCOMD2Response.hpp.

double GCOMD2Response::bkg_gauss_kernel::m_wgt
protected

Inverse of Gaussian standard deviation (1/MeV)

Definition at line 125 of file GCOMD2Response.hpp.


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