68 const double&
phibin = 0.0,
69 const int& nphibin = 0);
76 const double&
operator[](
const int& index)
const;
79 virtual void clear(
void);
81 virtual std::string
classname(
void)
const;
90 const std::string&
name(
void)
const;
96 const double&
phimin(
void)
const;
97 const double&
phibin(
void)
const;
110 const double& zetamin = 5.0);
113 const double& zetamin = 5.0);
119 const double& armmin,
120 const double& armmax)
const;
123 const bool& clobber =
false)
const;
126 const std::string& extname =
"")
const;
145 const double& x2,
const double& y2,
const double& r2)
const;
147 const double& x2,
const double& y2,
const double& r2,
148 const double& x3,
const double& y3,
const double& r3)
const;
196 return (
const_cast<double&
>((
m_dri.
pixels()[index])));
Definition of interface for all GammaLib classes.
COMPTEL selection set class definition.
Energy boundaries class interface definition.
Good time interval class interface definition.
Sky map class definition.
Interface class for all GammaLib classes.
COMPTEL Data Space class.
void init_statistics(void)
Initialise computation statistics.
const std::string & name(void) const
Return DRI cube name.
const int & num_skipped_superpackets(void) const
Return number of superpackets skipped for DRI.
const GEbounds & ebounds(void) const
Return energy boundaries of DRI cube.
virtual void clear(void)
Clear COMPTEL Data Space.
GCOMDri & operator=(const GCOMDri &dri)
Assignment operator.
const int & num_used_superpackets(void) const
Return number of superpackets used for DRI.
int m_num_skipped_superpackets
Number of skipped superpackets.
void save(const GFilename &filename, const bool &clobber=false) const
Save COMPTEL Data Space into DRI FITS file.
double compute_overlap(const double &x1, const double &y1, const double &r1, const double &x2, const double &y2, const double &r2, const double &x3, const double &y3, const double &r3) const
Compute overlap between three circles.
const double & phase_correction(void) const
Return pulsar phase correction factor.
virtual GCOMDri * clone(void) const
Clone COMPTEL Data Space.
int nchi(void) const
Return number of Chi bins.
void compute_drm(const GCOMObservation &obs, const GModel &model)
Compute DRM model.
double m_phibin
Phibar binsize (deg)
double m_phasecor
Pulsar phase correction.
const double & tof_correction(void) const
Return ToF correction factor.
void write_attributes(GFitsHDU *hdu) const
Write DRI attributes into FITS HDU.
const GGti & gti(void) const
Return Good Time Intervals of DRI cube.
GTime m_tstart
Selection start time.
virtual ~GCOMDri(void)
Destructor.
double compute_surface(const double &x1, const double &y1, const double &r1, const double &x2, const double &y2, const double &r2) const
Compute surface of overlap between two circles.
void free_members(void)
Delete class members.
GGti m_gti
Good Time Intervals of data cube.
int m_num_used_superpackets
Number of used superpackets.
void compute_drx(const GCOMObservation &obs, const GCOMSelection &select=GCOMSelection())
Compute DRX exposure map.
void compute_drg(const GCOMObservation &obs, const GCOMSelection &select=GCOMSelection(), const double &zetamin=5.0)
Compute geometry cube.
void compute_tof_correction(void)
Compute ToF correction.
double compute_geometry(const int &tjd, const double &theta, const double &phi, const GCOMSelection &select, const GCOMStatus &status) const
Compute DRG geometry factor.
void init_members(void)
Initialise class members.
const double & phibin(void) const
Return Compton scatter angle bin of DRI cube.
void init_cube(void)
Initialise DRI cube.
void load(const GFilename &filename)
Load COMPTEL Data Space from DRI FITS file.
double & operator[](const int &index)
DRI bin access operators.
const GSkyMap & map(void) const
Return DRI sky map.
double m_zetamin
Minimum zeta angle.
const int & num_superpackets(void) const
Return number of superpackets read for DRI.
const double & phimin(void) const
Return minimum Compton scatter angle of DRI cube.
GCOMDri(void)
Void constructor.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print COMPTEL Data Space.
GCOMSelection m_selection
Selection parameters.
GEbounds m_ebounds
Energy boundaries of data cube.
int npsi(void) const
Return number of Psi bins.
double m_phimin
Phibar minimum (deg)
void compute_dre(const GCOMObservation &obs, const GCOMSelection &select=GCOMSelection(), const double &zetamin=5.0)
Compute event cube.
std::string m_name
Data cube name.
GTime m_tstop
Selection stop time.
int size(void) const
Return number of bins.
int m_num_superpackets
Number of superpackets.
bool use_superpacket(const GCOMOad &oad, const GCOMTim &tim, const GCOMSelection &select)
Check if superpacket should be used.
bool m_has_selection
Signal that selection was applied.
void read_attributes(const GFitsHDU *hdu)
Read DRI attributes from FITS HDU.
void write(GFits &fits, const std::string &extname="") const
Write COMPTEL Data Space into FITS image.
double m_tofcor
ToF correction.
int nphibar(void) const
Return number of Phibar bins.
virtual std::string classname(void) const
Return class name.
void read(const GFitsImage &image)
Read COMPTEL Data Space from DRI FITS image.
void copy_members(const GCOMDri &dri)
Copy class members.
double cone_content(const GSkyDir &dir, const double &armmin, const double &armmax) const
Compute content in cone.
COMPTEL Orbit Aspect Data class.
Interface class for COMPTEL observations.
COMPTEL selection set class.
COMPTEL instrument status class.
COMPTEL Good Time Intervals class.
Energy boundaries container class.
Abstract FITS extension base class.
Abstract FITS image base class.
Good Time Interval class.
const int & nmaps(void) const
Returns number of maps.
const int & nx(void) const
Returns number of pixels in x coordinate.
const int & npix(void) const
Returns number of pixels.
const int & ny(void) const
Returns number of pixels in y coordinate.
const double * pixels(void) const
Returns pointer to pixel data.
const std::string extname_dri