|
GammaLib 2.2.0.dev
|
Multi-wavelength response class. More...
#include <GMWLResponse.hpp>
Public Member Functions | |
| GMWLResponse (void) | |
| Void constructor. | |
| GMWLResponse (const GMWLResponse &rsp) | |
| Copy constructor. | |
| virtual | ~GMWLResponse (void) |
| Destructor. | |
| virtual GMWLResponse & | operator= (const GMWLResponse &rsp) |
| Assignment operator. | |
| virtual void | clear (void) |
| Clear instance. | |
| virtual GMWLResponse * | clone (void) const |
| Clone instance. | |
| virtual std::string | classname (void) const |
| Return class name. | |
| virtual bool | use_edisp (void) const |
| Signal if response uses energy dispersion. | |
| virtual bool | use_tdisp (void) const |
| Signal if response uses time dispersion. | |
| virtual double | irf (const GEvent &event, const GPhoton &photon, const GObservation &obs) const |
| Return instrument response function. | |
| virtual double | nroi (const GModelSky &model, const GEnergy &obsEng, const GTime &obsTime, const GObservation &obs) const |
| Return integral of event probability for a given sky model over ROI. | |
| virtual GEbounds | ebounds (const GEnergy &obsEnergy) const |
| Return true energy boundaries for a specific observed energy. | |
| virtual std::string | print (const GChatter &chatter=NORMAL) const |
| Print response information. | |
| virtual double | irf_spatial (const GEvent &event, const GSource &source, const GObservation &obs) const |
| Return instrument response function. | |
Public Member Functions inherited from GResponse | |
| GResponse (void) | |
| Void constructor. | |
| GResponse (const GResponse &rsp) | |
| Copy constructor. | |
| virtual | ~GResponse (void) |
| Destructor. | |
| virtual GResponse & | operator= (const GResponse &rsp) |
| Assignment operator. | |
| virtual double | convolve (const GModelSky &model, const GEvent &event, const GObservation &obs, const bool &grad=true) const |
| Convolve sky model with the instrument response. | |
| virtual GVector | convolve (const GModelSky &model, const GObservation &obs, GMatrixSparse *gradients=NULL) const |
| Convolve sky model with the instrument response. | |
| virtual GVector | irf_spatial (const GModelSky &model, const GObservation &obs, GMatrix *gradients=NULL) const |
| Return instrument response vector integrated over the spatial model. | |
| virtual void | remove_response_cache (const std::string &cache_id) |
| Remove response cache for specific observation and model. | |
Public Member Functions inherited from GBase | |
| virtual | ~GBase (void) |
| Destructor. | |
Protected Member Functions | |
| void | init_members (void) |
| Initialise class members. | |
| void | copy_members (const GMWLResponse &pnt) |
| Copy class members. | |
| void | free_members (void) |
| Delete class members. | |
Protected Member Functions inherited from GResponse | |
| void | init_members (void) |
| Initialise class members. | |
| void | copy_members (const GResponse &rsp) |
| Copy class members. | |
| void | free_members (void) |
| Delete class members. | |
| double | eval_prob (const GModelSky &model, const GEvent &event, const GEnergy &srcEng, const GTime &srcTime, const GObservation &obs, const bool &grad) const |
| Convolve sky model with the instrument response. | |
| GVector | eval_probs (const GModelSky &model, const GObservation &obs, GMatrixSparse *gradients=NULL) const |
| Convolve sky model with the instrument response. | |
| int | size_edisp_vector (const GModelSky &model, const GObservation &obs, const bool &grad) const |
| Return size of vector for energy dispersion computation. | |
| GEbounds | ebounds_model (const GModelSky &model) const |
| Return true energy intervals for sky model. | |
| virtual double | irf_ptsrc (const GEvent &event, const GSource &source, const GObservation &obs) const |
| Return instrument response to point source. | |
| virtual double | irf_radial (const GEvent &event, const GSource &source, const GObservation &obs) const |
| Return instrument response to radial source. | |
| virtual double | irf_elliptical (const GEvent &event, const GSource &source, const GObservation &obs) const |
| Return instrument response to elliptical source. | |
| virtual double | irf_diffuse (const GEvent &event, const GSource &source, const GObservation &obs) const |
| Return instrument response to diffuse source. | |
| virtual double | irf_composite (const GEvent &event, const GSource &source, const GObservation &obs) const |
| Return instrument response to composite source. | |
| virtual GVector | irf_ptsrc (const GModelSky &model, const GObservation &obs, GMatrix *gradients=NULL) const |
| Return instrument response to point source sky model. | |
| virtual GVector | irf_radial (const GModelSky &model, const GObservation &obs, GMatrix *gradients=NULL) const |
| Return instrument response to radial source sky model. | |
| virtual GVector | irf_elliptical (const GModelSky &model, const GObservation &obs, GMatrix *gradients=NULL) const |
| Return instrument response to ellipitical source sky model. | |
| virtual GVector | irf_diffuse (const GModelSky &model, const GObservation &obs, GMatrix *gradients=NULL) const |
| Return instrument response to diffuse source sky model. | |
| virtual GVector | irf_composite (const GModelSky &model, const GObservation &obs, GMatrix *gradients=NULL) const |
| Return instrument response to composite source sky model. | |
Additional Inherited Members | |
Protected Attributes inherited from GResponse | |
| bool | m_use_irf_cache |
| Control usage of irf cache. | |
| bool | m_use_nroi_cache |
| Control usage of nroi cache. | |
| int | m_irf_radial_iter_theta |
| Radial model integration theta iterations. | |
| int | m_irf_radial_iter_phi |
| Radial model integration phi iterations. | |
| int | m_irf_elliptical_iter_theta |
| Elliptical model integration theta iterations. | |
| int | m_irf_elliptical_iter_phi |
| Elliptical model integration phi iterations. | |
| double | m_irf_diffuse_resolution |
| Angular resolution for diffuse model. | |
| GResponseCache | m_irf_cache |
| GResponseCache | m_nroi_cache |
| GResponseVectorCache | m_irf_vector_cache |
Multi-wavelength response class.
This class implements a dummy response class for multi-wavelength observations. Since the multi-wavelength instrument classes handles data that a provided in photon space, no instrument response is in fact needed. The dummy response implemented by this class provides a simple diagonal response matrix that allows integration of multi-wavelength observations using the standard instrument specific interface.
Definition at line 55 of file GMWLResponse.hpp.
| GMWLResponse::GMWLResponse | ( | void | ) |
Void constructor.
Definition at line 56 of file GMWLResponse.cpp.
References init_members().
Referenced by clone().
| GMWLResponse::GMWLResponse | ( | const GMWLResponse & | rsp | ) |
Copy constructor.
| [in] | rsp | Response. |
Definition at line 71 of file GMWLResponse.cpp.
References copy_members(), and init_members().
|
virtual |
|
inlinevirtual |
Return class name.
Implements GResponse.
Definition at line 101 of file GMWLResponse.hpp.
|
virtual |
Clear instance.
Implements GResponse.
Definition at line 141 of file GMWLResponse.cpp.
References free_members(), GResponse::free_members(), init_members(), and GResponse::init_members().
Referenced by GMWLObservation::init_members().
|
virtual |
Clone instance.
Implements GResponse.
Definition at line 159 of file GMWLResponse.cpp.
References GMWLResponse().
|
protected |
Copy class members.
| [in] | rsp | Response. |
Definition at line 264 of file GMWLResponse.cpp.
Referenced by GMWLResponse(), and operator=().
Return true energy boundaries for a specific observed energy.
| [in] | obsEnergy | Observed Energy. |
| GException::feature_not_implemented | Method is not implemented. |
Implements GResponse.
Definition at line 201 of file GMWLResponse.cpp.
References ebounds(), and G_EBOUNDS.
Referenced by ebounds().
|
protected |
Delete class members.
Definition at line 274 of file GMWLResponse.cpp.
Referenced by clear(), operator=(), and ~GMWLResponse().
|
protected |
Initialise class members.
Definition at line 252 of file GMWLResponse.cpp.
Referenced by clear(), GMWLResponse(), GMWLResponse(), and operator=().
|
inlinevirtual |
Return instrument response function.
| [in] | event | Event. |
| [in] | photon | Photon. |
| [in] | obs | Observation. |
Implements GResponse.
Definition at line 141 of file GMWLResponse.hpp.
|
inlinevirtual |
Return instrument response function.
| [in] | event | Event. |
| [in] | source | Source. |
| [in] | obs | Observation. |
Reimplemented from GResponse.
Definition at line 159 of file GMWLResponse.hpp.
|
virtual |
Return integral of event probability for a given sky model over ROI.
| [in] | model | Sky model. |
| [in] | obsEng | Observed photon energy. |
| [in] | obsTime | Observed photon arrival time. |
| [in] | obs | Observation. |
| GException::feature_not_implemented | Method is not implemented. |
Implements GResponse.
Definition at line 177 of file GMWLResponse.cpp.
References G_NROI.
|
virtual |
Assignment operator.
| [in] | rsp | Response. |
Definition at line 108 of file GMWLResponse.cpp.
References copy_members(), free_members(), init_members(), and GResponse::operator=().
Print response information.
| [in] | chatter | Chattiness (defaults to NORMAL). |
Implements GResponse.
Definition at line 221 of file GMWLResponse.cpp.
References SILENT.
|
inlinevirtual |
Signal if response uses energy dispersion.
Implements GResponse.
Definition at line 113 of file GMWLResponse.hpp.
|
inlinevirtual |
Signal if response uses time dispersion.
Implements GResponse.
Definition at line 125 of file GMWLResponse.hpp.