67 const double& theta = 0.0,
68 const double& phi = 0.0,
69 const double& zenith = 0.0,
70 const double& azimuth = 0.0,
71 const bool& etrue =
true)
const;
81 const double& theta = 0.0,
82 const double& phi = 0.0,
83 const double& zenith = 0.0,
84 const double& azimuth = 0.0,
85 const bool& etrue =
true)
const;
87 const double& theta = 0.0,
88 const double& phi = 0.0,
89 const double& zenith = 0.0,
90 const double& azimuth = 0.0,
91 const bool& etrue =
true)
const;
94 const double& theta = 0.0,
95 const double& phi = 0.0,
96 const double& zenith = 0.0,
97 const double& azimuth = 0.0,
98 const bool& etrue =
true)
const;
107 const bool& clobber =
false)
const;
115 void update(
const double& logE,
const double& theta)
const;
151 return (
"GCTAPsf2D");
virtual ~GCTAPsf2D(void)
Destructor.
GCTAResponseTable m_psf
PSF response table.
GCTAPsf2D & operator=(const GCTAPsf2D &psf)
Assignment operator.
GFilename filename(void) const
Return filename.
double operator()(const double &delta, const double &logE, const double &theta=0.0, const double &phi=0.0, const double &zenith=0.0, const double &azimuth=0.0, const bool &etrue=true) const
Return point spread function (in units of sr^-1)
void read(const GFitsTable &table)
Read point spread function from FITS table.
GCTAPsf2D(void)
Void constructor.
Abstract base class for the CTA point spread function.
int m_inx_energy
Energy index.
double m_width1
Gaussian 1 width.
Random number generator class.
double m_norm
Global normalization.
double m_sigma2
Gaussian 2 sigma.
double m_par_theta
Cache offset angle.
int m_inx_ampl3
3nd Gaussian relative amplitude
CTA 2D point spread function class.
void copy_members(const GCTAPsf2D &psf)
Copy class members.
const GCTAResponseTable & table(void) const
Return response table.
void update(const double &logE, const double &theta) const
Update PSF parameter cache.
int m_inx_ampl2
2nd Gaussian relative amplitude
int m_inx_sigma3
3nd Gaussian sigma
CTA response table class definition.
const std::string extname_cta_psf2d
double m_width2
Gaussian 2 width.
std::string print(const GChatter &chatter=NORMAL) const
Print point spread function information.
double mc(GRan &ran, const double &logE, const double &theta=0.0, const double &phi=0.0, const double &zenith=0.0, const double &azimuth=0.0, const bool &etrue=true) const
Simulate PSF offset (radians)
Abstract interface for FITS table.
double m_norm3
Gaussian 3 normalization.
double m_sigma3
Gaussian 3 sigma.
double delta_max(const double &logE, const double &theta=0.0, const double &phi=0.0, const double &zenith=0.0, const double &azimuth=0.0, const bool &etrue=true) const
Return maximum size of PSF (radians)
void save(const GFilename &filename, const bool &clobber=false) const
Save point spread function table into FITS file.
void load(const GFilename &filename)
Load point spread function from FITS file.
CTA point spread function base class definition.
void init_members(void)
Initialise class members.
int m_inx_sigma1
1st Gaussian sigma
int m_inx_sigma2
2nd Gaussian sigma
void clear(void)
Clear point spread function.
void write(GFitsBinTable &table) const
Write point spread function into FITS binary table.
int m_inx_theta
Theta index.
double containment_radius(const double &fraction, const double &logE, const double &theta=0.0, const double &phi=0.0, const double &zenith=0.0, const double &azimuth=0.0, const bool &etrue=true) const
Return the radius that contains a fraction of the events (radians)
double m_par_logE
Cache energy.
void free_members(void)
Delete class members.
CTA response table class.
GCTAPsf2D * clone(void) const
Clone point spread functions.
std::string classname(void) const
Return class name.
double m_sigma1
Gaussian 1 sigma.
double m_width3
Gaussian 3 width.
GFilename m_filename
Name of Aeff response file.
Filename class interface definition.
double m_norm2
Gaussian 2 normalization.