27#ifndef GCTAMODELRADIALGAUSS_HPP
28#define GCTAMODELRADIALGAUSS_HPP
72 virtual void clear(
void);
74 virtual std::string
classname(
void)
const;
75 virtual std::string
type(
void)
const;
76 virtual double eval(
const double& offset,
77 const bool& gradients =
false)
const;
80 virtual double omega(
void)
const;
86 double sigma(
void)
const;
102 double arg2 = arg * arg;
103 double f = std::exp(-0.5 * arg2);
104 return (f*std::sin(x));
123 return (
"GCTAModelRadialGauss");
Abstract radial acceptance model class interface definition.
Single parameter function abstract base class definition.
Model parameter class interface definition.
CTA instrument direction class.
double eval(const double &x)
Radial Gaussian CTA model class.
virtual void write(GXmlElement &xml) const
Write model into XML element.
virtual void read(const GXmlElement &xml)
Read model from XML element.
virtual double eval(const double &offset, const bool &gradients=false) const
Evaluate function.
virtual double omega(void) const
Returns integral over radial model (in steradians)
virtual double mc_max_value(const GCTAObservation &obs) const
Return maximum function value for Monte Carlo simulations.
GModelPar m_sigma
Width parameter (degrees^2)
virtual std::string print(const GChatter &chatter=NORMAL) const
Print point source information.
void init_members(void)
Initialise class members.
GCTAModelRadialGauss(void)
Void constructor.
virtual GCTAModelRadialGauss & operator=(const GCTAModelRadialGauss &model)
Assignment operator.
virtual GCTAInstDir mc(GRan &ran) const
Returns MC instrument direction.
virtual GCTAModelRadialGauss * clone(void) const
Clone instance.
double sigma(void) const
Return Gaussian width parameter.
void free_members(void)
Delete class members.
virtual std::string classname(void) const
Return class name.
void copy_members(const GCTAModelRadialGauss &model)
Copy class members.
virtual ~GCTAModelRadialGauss(void)
Destructor.
virtual void clear(void)
Clear instance.
virtual std::string type(void) const
Return model type.
Abstract radial acceptance model class.
Single parameter function abstract base class.
double value(void) const
Return parameter value.
Random number generator class.