78 double&
operator()(
const int& itrue,
const int& imeasured);
79 const double&
operator()(
const int& itrue,
const int& imeasured)
const;
86 int ntrue(
void)
const;
90 double&
at(
const int& itrue,
const int& imeasured);
91 const double&
at(
const int& itrue,
const int& imeasured)
const;
99 const bool& clobber =
false,
100 const std::string& unit =
"keV")
const;
104 const std::string& unit =
"keV")
const;
151 return (
m_matrix(itrue, imeasured));
167 return (
m_matrix(itrue, imeasured));
int size(void) const
Return number of redistribution matrix bins.
int imeasmax(void) const
Return measured energy index of maximum value of the redistribution matrix.
std::string print(const GChatter &chatter=NORMAL) const
Print Redistribution Matrix File.
int m_imeasmax
Index of measured maximum.
GArf operator/(const GArf &arf, const double &scale)
Auxiliary Response File vision operator friend.
GRmf(void)
Void constructor.
void free_members(void)
Delete class members.
Sparse matrix class interface definition.
Definition of interface for all GammaLib classes.
Redistribution Matrix File class.
int nmeasured(void) const
Return number of measured energy bins in redistribution matrix.
double & at(const int &itrue, const int &imeasured)
Return content of redistribution matrix bin.
GFilename m_filename
Filename of origin.
GRmf & operator=(const GRmf &rmf)
Assignment operator.
void copy_members(const GRmf &rmf)
Copy class members.
GArf operator+(const GArf &a, const GArf &b)
Auxiliary Response File addition operator friend.
friend GRmf operator*(const GRmf &rmf, const double &scale)
Redistribution Matrix File scaling operator friend.
void init_members(void)
Initialise class members.
GRmf & operator+=(const GRmf &rmf)
Add Redistribution Matrix File.
const GEbounds & emeasured(void) const
Return measured energy boundaries.
const GFilename & filename(void) const
Return file name.
int m_itruemax
Index of true maximum.
GRmf & operator-=(const GRmf &rmf)
Subtract Redistribution Matrix File.
Energy boundaries container class.
GRmf * clone(void) const
Clone object.
const int & rows(void) const
Return number of matrix rows.
Interface class for all GammaLib classes.
GMatrixSparse m_matrix
Sparse redistribution matrix.
Abstract interface for FITS table.
GEbounds m_ebds_measured
Measured energy boundaries.
int ntrue(void) const
Return number of true energy bins in redistribution matrix.
GArf operator*(const GArf &arf, const double &scale)
Auxiliary Response File scaling operator friend.
void clear(void)
Clear object.
friend GRmf operator+(const GRmf &a, const GRmf &b)
Redistribution Matrix File addition operator friend.
void save(const GFilename &filename, const bool &clobber=false, const std::string &unit="keV") const
Save Redistribution Matrix File.
GFitsHeader m_header
FITS header cards.
const GFitsHeader & header(void) const
Return FITS header.
int itruemax(void) const
Return true energy index of maximum value of the redistribution matrix.
GRmf & operator/=(const double &scale)
Divide Redistribution Matrix File values.
double & operator()(const int &itrue, const int &imeasured)
Return content of redistribution matrix bin.
GRmf & operator*=(const double &scale)
Scale Redistribution Matrix File values.
friend GRmf operator/(const GRmf &rmf, const double &scale)
Redistribution Matrix File vision operator friend.
Sparse matrix class definition.
Energy boundaries class interface definition.
void read(const GFits &fits)
Read Redistribution Matrix File.
std::string classname(void) const
Return class name.
const GEbounds & etrue(void) const
Return true energy boundaries.
GEbounds m_ebds_true
True energy boundaries.
GArf operator-(const GArf &a, const GArf &b)
Auxiliary Response File subtraction operator friend.
virtual ~GRmf(void)
Destructor.
const int & columns(void) const
Return number of matrix columns.
friend GRmf operator-(const GRmf &a, const GRmf &b)
Redistribution Matrix File subtraction operator friend.
void write(GFits &fits, const std::string &unit="keV") const
Write Redistribution Matrix File.
Filename class interface definition.
void load(const GFilename &filename)
Load Redistribution Matrix File.
const GMatrixSparse & matrix(void) const
Return redistribution matrix.
Class that handles energies in a unit independent way.
const std::string extname_rmf