41 #define G_READ "GLATEdisp::read(GFits&)"
42 #define G_READ_EDISP "GLATEdisp::read_edisp(GFitsTable&)"
87 load(filename, evtype);
140 if (
this != &edisp) {
202 GFits fits(filename);
227 fits.
saveto(filename, clobber);
304 result.append(
"=== GLATEdisp ===");
void read(const GFits &file, const std::string &evtype)
Read energy dispersion from FITS file.
GFitsTable * table(const int &extno)
Get pointer to table HDU.
bool contains(const int &extno) const
Check if HDU exists in FITS file.
std::vector< double > m_scale
Energy dispersion scaling parameters.
void save(const GFilename &filename, const bool &clobber=false)
Save energy dispersion into FITS file.
GLATEdisp & operator=(const GLATEdisp &edisp)
Assignment operator.
void read(const GFitsTable &hdu)
Read response table from FITS table HDU.
Interface for the Fermi LAT energy dispersion.
void clear(void)
Clear instance.
void write(GFitsTable &hdu) const
Write response table into FITS table.
int size(void) const
Return number of bins in energy dispersion response.
FITS table float column class interface definition.
FITS file class interface definition.
void write_edisp(GFits &file) const
Write energy dispersion into FITS file.
std::vector< double > m_ls1
Energy dispersion ...
void write(GFits &file) const
Write energy dispersion into FITS file.
void saveto(const GFilename &filename, const bool &clobber=false)
Saves to specified FITS file.
GLATResponseTable m_edisp_bins
Energy dispersion energy and cos theta binning.
void read_edisp(const GFitsTable &table)
Read energy dispersion from FITS table.
int ncostheta(void) const
Return number of cosine theta bins in energy dispersion response.
Abstract interface for FITS table.
int nenergies(void) const
Return number of energies in energy dispersion response.
Fermi LAT energy dispersion class definition.
const std::string & extname(void) const
Return extension name.
void free_members(void)
Delete class members.
GLATEdisp(void)
Void constructor.
GLATEdisp * clone(void) const
Clone energy dispersion response.
void clear(void)
Clear energy dispersion response.
std::string print(const GChatter &chatter=NORMAL) const
Print energy dispersion information.
virtual ~GLATEdisp(void)
Destructor.
const std::string extname_lat_edisp
std::vector< double > m_norm
Energy dispersion normalization.
void copy_members(const GLATEdisp &edisp)
Copy class members.
Exception handler interface definition.
const std::string & evtype(void) const
Return event type.
GFitsHDU * append(const GFitsHDU &hdu)
Append HDU to FITS file.
FITS binary table class definition.
void load(const GFilename &filename, const std::string &evtype)
Load energy dispersion from FITS file.
std::string parformat(const std::string &s, const int &indent=0)
Convert string in parameter format.
int size(void) const
Return number of bins in response table.
void init_members(void)
Initialise class members.
Filename class interface definition.
std::string m_evtype
Event type.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.
FITS table abstract base class interface definition.