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