27#ifndef GCOMRESPONSE_HPP
28#define GCOMRESPONSE_HPP
71 virtual void clear(
void);
73 virtual std::string
classname(
void)
const;
89 const std::string&
rspname(
void)
const;
103 GMatrix* gradients = NULL)
const;
106 GMatrix* gradients = NULL)
const;
109 GMatrix* gradients = NULL)
const;
112 GMatrix* gradients = NULL)
const;
118 const double& theta_max,
119 GMatrix* gradients = NULL)
const;
146 return (
"GCOMResponse");
Calibration database class interface definition.
Abstract response base class definition.
COMPTEL Data Space class.
Interface for the COMPTEL instrument response function.
virtual double irf(const GEvent &event, const GPhoton &photon, const GObservation &obs) const
Return value of instrument response function.
void free_members(void)
Delete class members.
virtual bool use_edisp(void) const
Signal if energy dispersion will be used.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print COMPTEL response information.
virtual GVector irf_ptsrc(const GModelSky &model, const GObservation &obs, GMatrix *gradients=NULL) const
Return instrument response to point source.
int m_phigeo_bins
Number of Phigeo bins.
double m_phibar_min
Phigeo value of first bin (deg)
void write(GFitsImageFloat &image) const
Write COMPTEL response into FITS image.
GVector irf_extended(const GModelSky &model, const GObservation &obs, const GSkyDir &model_dir, const double &theta_max, GMatrix *gradients=NULL) const
GCOMResponse(void)
Void constructor.
virtual GVector irf_radial(const GModelSky &model, const GObservation &obs, GMatrix *gradients=NULL) const
Return instrument response to radial source.
int m_phibar_bins
Number of Phibar bins.
const std::string & rspname(void) const
Return response name.
double m_phibar_bin_size
Phigeo binsize (deg)
void copy_members(const GCOMResponse &rsp)
Copy class members.
std::vector< double > m_iaq
IAQ array.
double m_phigeo_min
Phigeo value of first bin (deg)
virtual ~GCOMResponse(void)
Destructor.
virtual GVector irf_elliptical(const GModelSky &model, const GObservation &obs, GMatrix *gradients=NULL) const
Return instrument response to elliptical source.
const GCaldb & caldb(void) const
Return calibration database.
double m_phibar_ref_value
Phigeo reference value (deg)
void read(const GFitsImage &hdu)
Read COMPTEL response from FITS image.
double m_phigeo_ref_value
Phigeo reference value (deg)
std::string m_rspname
Response name.
virtual GEbounds ebounds(const GEnergy &obsEnergy) const
Return true energy boundaries for a specific observed energy.
GCaldb m_caldb
Calibration database.
void init_members(void)
Initialise class members.
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 void clear(void)
Clear instance.
double m_phigeo_ref_pixel
Phigeo reference pixel (starting from 1)
double m_phigeo_bin_size
Phigeo binsize (deg)
virtual GVector irf_diffuse(const GModelSky &model, const GObservation &obs, GMatrix *gradients=NULL) const
Return instrument response to diffuse source.
virtual GCOMResponse * clone(void) const
Clone instance.
double m_phibar_ref_pixel
Phigeo reference pixel (starting from 1)
virtual GCOMResponse & operator=(const GCOMResponse &rsp)
Assignment operator.
virtual bool use_tdisp(void) const
Signal if time dispersion will be used.
virtual std::string classname(void) const
Return class name.
void load(const std::string &rspname)
Load COMPTEL response.
Calibration database class.
Energy boundaries container class.
Class that handles energies in a unit independent way.
Abstract interface for the event classes.
Single precision FITS image class.
Abstract FITS image base class.
Generic matrix class definition.
Abstract observation base class.
Class that handles photons.
Abstract instrument response base class.
Class that handles gamma-ray sources.