27 #ifndef GLATMEANPSF_HPP
28 #define GLATMEANPSF_HPP
72 const double&
offset(
const int& inx)
const;
73 const double&
energy(
const int& inx)
const;
75 const std::string&
name(
void)
const;
76 void name(
const std::string& name);
79 double psf(
const double& offset,
const double& logE);
90 double integral(
const double& radmax,
const double& logE);
126 return (
"GLATMeanPsf");
Fermi/LAT observation class.
int size(void) const
Return number of nodes in node array.
std::string m_name
Source name for mean PSF.
const GSkyDir & dir(void) const
Return sky direction for mean PSF.
double m_theta_max
Maximum inclination angle (default 70 deg)
double operator()(const double &offset, const double &logE)
Return mean PSF*exposure value.
const std::string & name(void) const
Return source name for mean PSF.
double m_wgt4
Weighting factor 4.
void init_members(void)
Initialise class members.
Sky direction class interface definition.
const double & offset(const int &inx) const
Return offset angle for given bin.
int m_inx2_exp
Exposure index 2.
GLATMeanPsf * clone(void) const
Clone mean PSF.
Definition of interface for all GammaLib classes.
void free_members(void)
Delete class members.
void set_offsets(void)
Set array of offset values in degrees.
int size(void) const
Return number of bins in mean PSF.
GLATMeanPsf & operator=(const GLATMeanPsf &cube)
Assignment operator.
double exposure(const double &logE)
Return exposure value.
GLATMeanPsf(void)
Void constructor.
void clear(void)
Clear mean PSF.
Node array class interface definition.
std::string classname(void) const
Return class name.
double m_wgt1
Weighting factor 1.
GSkyDir m_dir
Source direction for mean PSF.
Interface class for all GammaLib classes.
double m_last_energy
Last requested logE value.
std::vector< double > m_mapcorr
Map corrections.
double m_last_offset
Last requested offset value.
GNodeArray m_offset
Offsets of mean PSF.
void set(const GSkyDir &dir, const GLATObservation &obs)
Compute mean PSF and exposure.
double m_wgt3
Weighting factor 3.
std::vector< double > m_psf
Mean PSF values.
double psf(const double &offset, const double &logE)
Return mean PSF value.
double m_wgt2
Weighting factor 2.
void copy_members(const GLATMeanPsf &psf)
Copy class members.
double integral(const double &radmax, const double &logE)
Compute integral over PSF.
std::vector< double > m_exposure
Mean exposure.
int nenergies(void) const
Return number of energy bins.
const double & thetamax(void) const
Return maximum theta angle.
Fermi/LAT mean PSF class.
std::string print(const GChatter &chatter=NORMAL) const
Print livetime cube information.
int noffsets(void) const
Return number of offset bins.
GNodeArray m_energy
log10(energy) of mean PSF
int m_inx1_exp
Exposure index 1.
virtual ~GLATMeanPsf(void)
Destructor.
const double & energy(const int &inx) const
Return energy for given bin.
void set_map_corrections(const GLATObservation &obs)
Compute map corrections.