37 #define G_READ_SCALE "GLATPsfBase::read_scale(GFitsTable&)"
207 if (scale->
number() == 3) {
252 hdu_scale->
extname(
"PSF_SCALING_PARAMS");
261 col_scale(0,2) = 0.0;
262 col_scale(0,3) = 0.0;
265 col_scale(0,0) = 0.0;
266 col_scale(0,1) = 0.0;
273 hdu_scale->
append(col_scale);
virtual ~GLATPsfBase(void)
Destructor.
void number(const int &number)
Set number of elements in column.
void read_scale(const GFitsTable &hdu)
Read PSF scale factors from FITS table.
void clear(void)
Clear instance.
void copy_members(const GLATPsfBase &psf)
Copy class members.
GFitsTableCol * append(const GFitsTableCol &column)
Append column to the table.
FITS table float column class interface definition.
double m_scale_index
PSF scaling index.
double scale_factor(const double &energy) const
Return scale factor for energy (in MeV)
void write_scale(GFits &file) const
Write PSF scale factors.
GVector sqrt(const GVector &vector)
Computes square root of vector elements.
void free_members(void)
Delete class members.
Abstract Fermi/LAT point spread function base class.
bool m_front
PSF is for front section?
Abstract interface for FITS table column.
Abstract interface for FITS table.
GLATPsfBase(void)
Void constructor.
void init_members(void)
Initialise class members.
const std::string & extname(void) const
Return extension name.
double m_min_ctheta
Minimum valid cos(theta)
GLATPsfBase & operator=(const GLATPsfBase &psf)
Assignment operator.
GLATResponseTable m_rpsf_bins
PSF energy and cos theta binning.
virtual double real(const int &row, const int &inx=0) const =0
Abstract Fermi/LAT point spread function base class definition.
GVector pow(const GVector &vector, const double &power)
Computes tanh of vector elements.
GFitsHDU * append(const GFitsHDU &hdu)
Append HDU to FITS file.
FITS binary table class definition.
double m_scale_par1
PSF scaling parameter 1.
const bool & front(void) const
Signal that point spread function is for front section.
double m_scale_par2
PSF scaling parameter 2.