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