27 #ifndef GCTAPSFTABLE_HPP
28 #define GCTAPSFTABLE_HPP
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 int element(
const int& ieng,
const int& itheta,
const int& idelta);
137 return (
"GCTAPsfTable");
int m_inx_energy
Energy index.
GCTAPsfTable & operator=(const GCTAPsfTable &psf)
Assignment operator.
double m_psf_max
Maximum PSF value.
std::string print(const GChatter &chatter=NORMAL) const
Print point spread function information.
GCTAResponseTable m_psf
PSF response table.
int m_inx_theta
Theta index.
const GCTAResponseTable & table(void) const
Return response table.
Abstract base class for the CTA point spread function.
GCTAPsfTable(void)
Void constructor.
Random number generator class.
void copy_members(const GCTAPsfTable &psf)
Copy class members.
void save(const GFilename &filename, const bool &clobber=false) const
Save point spread function table into FITS file.
int m_inx_delta
Delta index.
std::string classname(void) const
Return class name.
void free_members(void)
Delete class members.
CTA response table class definition.
int element(const int &ieng, const int &itheta, const int &idelta)
Return element index.
void read(const GFitsTable &table)
Read point spread function from FITS table.
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)
GFilename filename(void) const
Return filename.
int m_inx_rpsf
PSF histogram.
const std::string extname_cta_psftable
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)
Abstract interface for FITS table.
void load(const GFilename &filename)
Load point spread function from FITS file.
virtual ~GCTAPsfTable(void)
Destructor.
CTA point spread function base class definition.
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)
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)
GCTAPsfTable * clone(void) const
Clone point spread functions.
void write(GFitsBinTable &table) const
Write point spread function into FITS table.
GFilename m_filename
Name of Aeff response file.
CTA response table class.
CTA point spread function table class.
void precompute(void)
Performs precomputations for point spread function.
double m_delta_max
Maximum delta angle (radians)
Filename class interface definition.
void clear(void)
Clear point spread function.
void init_members(void)
Initialise class members.