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