27 #ifndef GCTAPSFPERFTABLE_HPP
28 #define GCTAPSFPERFTABLE_HPP
63 const double& theta = 0.0,
64 const double& phi = 0.0,
65 const double& zenith = 0.0,
66 const double& azimuth = 0.0,
67 const bool& etrue =
true)
const;
77 const double& theta = 0.0,
78 const double& phi = 0.0,
79 const double& zenith = 0.0,
80 const double& azimuth = 0.0,
81 const bool& etrue =
true)
const;
83 const double& theta = 0.0,
84 const double& phi = 0.0,
85 const double& zenith = 0.0,
86 const double& azimuth = 0.0,
87 const bool& etrue =
true)
const;
90 const double& theta = 0.0,
91 const double& phi = 0.0,
92 const double& zenith = 0.0,
93 const double& azimuth = 0.0,
94 const bool& etrue =
true)
const;
102 void update(
const double& logE)
const;
127 return (
"GCTAPsfPerfTable");
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)
void update(const double &logE) const
Update PSF parameter cache.
virtual ~GCTAPsfPerfTable(void)
Destructor.
std::string classname(void) const
Return class name.
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)
double m_par_scale
Gaussian normalization.
GCTAPsfPerfTable * clone(void) const
Clone instance.
Abstract base class for the CTA point spread function.
void load(const GFilename &filename)
Load point spread function from performance table.
Random number generator class.
GFilename m_filename
Name of Aeff response file.
double m_par_sigma
Gaussian sigma (radians)
std::string print(const GChatter &chatter=NORMAL) const
Print point spread function information.
Node array class interface definition.
void free_members(void)
Delete class members.
void clear(void)
Clear instance.
GNodeArray m_logE
log(E) nodes for Aeff interpolation
void copy_members(const GCTAPsfPerfTable &psf)
Copy class members.
std::vector< double > m_r80
80% containment radius of PSF in degrees
CTA point spread function base class definition.
std::vector< double > m_r68
68% containment radius of PSF in degrees
void init_members(void)
Initialise class members.
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)
GCTAPsfPerfTable & operator=(const GCTAPsfPerfTable &psf)
Assignment operator.
CTA performance table point spread function class.
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)
std::vector< double > m_sigma
Sigma value of PSF in radians.
GCTAPsfPerfTable(void)
Void constructor.
double m_par_width
Gaussian width parameter.
Filename class interface definition.
double m_par_logE
Energy for which precomputation is done.