78 const double&
operator[](
const int& index)
const;
79 double&
operator()(
const int& index,
const int& col);
80 const double&
operator()(
const int& index,
const int& col)
const;
83 std::vector<double>&
operator[](
const std::string& colname);
84 const std::vector<double>&
operator[](
const std::string& colname)
const;
94 double&
at(
const int& index);
95 const double&
at(
const int& index)
const;
96 double&
at(
const int& index,
const int& col);
97 const double&
at(
const int& index,
const int& col)
const;
98 void append(
const std::string& name,
99 const std::vector<double>& column);
103 const bool& clobber =
false)
const;
GArf & operator-=(const GArf &arf)
Subtract Auxiliary Response File.
GArf operator/(const GArf &arf, const double &scale)
Auxiliary Response File vision operator friend.
double & operator[](const int &index)
Return content of spectral bin.
GArf(void)
Void constructor.
void copy_members(const GArf &pha)
Copy class members.
GEbounds m_ebounds
Energy boundaries.
double & at(const int &index)
Return content of spectral bin.
void read(const GFits &fits)
Read Auxiliary Response File.
GFilename m_filename
Filename of origin.
Definition of interface for all GammaLib classes.
std::vector< std::string > m_colnames
Additional column names.
void save(const GFilename &filename, const bool &clobber=false) const
Save Auxiliary Response File.
GFitsHeader m_header
FITS header cards.
void append(const std::string &name, const std::vector< double > &column)
Append additional column to spectrum.
GArf operator+(const GArf &a, const GArf &b)
Auxiliary Response File addition operator friend.
Auxiliary Response File class.
GArf & operator/=(const double &scale)
Divide Auxiliary Response File values.
GArf & operator=(const GArf &arf)
Assignment operator.
int column_index(const std::string &colname) const
Returns index of additional vector column.
Node array class interface definition.
const std::string extname_arf
void free_members(void)
Delete class members.
GArf & operator+=(const GArf &arf)
Add Auxiliary Response File.
std::vector< std::vector< double > > m_coldata
Additional column data.
Energy boundaries container class.
void init_members(void)
Initialise class members.
GArf & operator*=(const double &scale)
Scale Auxiliary Response File values.
std::string print(const GChatter &chatter=NORMAL) const
Print Auxiliary Response File.
Interface class for all GammaLib classes.
virtual ~GArf(void)
Destructor.
void set_logetrue(void)
Set true energy node array.
Abstract interface for FITS table.
GArf operator*(const GArf &arf, const double &scale)
Auxiliary Response File scaling operator friend.
void write(GFits &fits) const
Write Auxiliary Response File.
const GFitsHeader & header(void) const
Return FITS header.
int columns(void) const
Return number of additional columns.
friend GArf operator*(const GArf &arf, const double &scale)
Auxiliary Response File scaling operator friend.
void clear(void)
Clear object.
Energy boundaries class interface definition.
friend GArf operator+(const GArf &a, const GArf &b)
Auxiliary Response File addition operator friend.
const GFilename & filename(void) const
Return file name.
friend GArf operator/(const GArf &arf, const double &scale)
Auxiliary Response File vision operator friend.
friend GArf operator-(const GArf &a, const GArf &b)
Auxiliary Response File subtraction operator friend.
double & operator()(const int &index, const int &col)
Return content of additional columns.
std::string classname(void) const
Return class name.
GArf operator-(const GArf &a, const GArf &b)
Auxiliary Response File subtraction operator friend.
GNodeArray m_logetrue
Log10 energies in TeV.
int size(void) const
Return number of spectral bins.
void load(const GFilename &filename)
Load Auxiliary Response File.
GArf * clone(void) const
Clone object.
Filename class interface definition.
const GEbounds & ebounds(void) const
Return energy boundaries.
std::vector< double > m_specresp
Spectral response.
Class that handles energies in a unit independent way.