27 #ifndef GCTAMODELRADIALACCEPTANCE_HPP
28 #define GCTAMODELRADIALACCEPTANCE_HPP
70 virtual void clear(
void);
72 virtual std::string
classname(
void)
const;
73 virtual std::string
type(
void)
const;
77 const bool& gradients =
false)
const;
114 double eval(
const double& r);
139 return (
"GCTAModelRadialAcceptance");
154 return (
"RadialAcceptance");
CTA event list class interface definition.
void set_pointers(void)
Set pointers.
Abstract spectral model base class.
XML element node class interface definition.
Abstract temporal model base class.
void free_members(void)
Delete class members.
double m_roi
ROI radius in radians.
GVector cos(const GVector &vector)
Computes cosine of vector elements.
virtual GCTAModelRadialAcceptance * clone(void) const
Clone instance.
Abstract interface for the event classes.
GModelTemporal * m_temporal
Temporal model.
const GCTAModelRadial * m_parent
Pointer to radial model.
GCTAModelRadial * radial(void) const
Return radial model component.
Random number generator class.
virtual GCTAEventList * mc(const GObservation &obs, GRan &ran) const
Return simulated list of events.
double eval(const double &r)
Integration kernel for the Npred method.
virtual double eval(const GEvent &event, const GObservation &obs, const bool &gradients=false) const
Return background rate in units of events MeV s sr .
Model parameter class interface definition.
double m_cosdist
Cosine of distance.
double m_dist
Distance between pointing and ROI centre in radians.
Abstract temporal model base class interface definition.
GModelSpectral * spectral(void) const
Return spectral model component.
GModelTemporal * temporal(void) const
Return temporal model component.
Single parameter function abstract base class definition.
GCTAModelRadial * m_radial
Radial model.
virtual void write(GXmlElement &xml) const
Write model into XML element.
double m_sindist
Sinus of distance.
Abstract data model base class interface definition.
Abstract radial acceptance model class interface definition.
void copy_members(const GCTAModelRadialAcceptance &model)
Copy class members.
Abstract event base class definition.
Abstract data model class.
GModelTemporal * xml_temporal(const GXmlElement &temporal) const
Return pointer to temporal model from XML element.
virtual std::string classname(void) const
Return class name.
Abstract observation base class.
GModelSpectral * m_spectral
Spectral model.
Abstract observation base class interface definition.
Abstract spectral model base class interface definition.
GCTAModelRadial * xml_radial(const GXmlElement &radial) const
Construct radial model from XML element.
virtual std::string type(void) const =0
void init_members(void)
Initialise class members.
virtual ~GCTAModelRadialAcceptance(void)
Destructor.
double m_cosroi
Cosine of ROI radius.
roi_kern(const GCTAModelRadial *parent, const double &roi, const double &dist)
Single parameter function abstract base class.
GVector sin(const GVector &vector)
Computes sine of vector elements.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print model information.
Radial acceptance model class.
virtual GCTAModelRadialAcceptance & operator=(const GCTAModelRadialAcceptance &model)
Assignment operator.
virtual void read(const GXmlElement &xml)
Read model from XML element.
Abstract radial acceptance model class.
virtual bool is_constant(void) const
Signals if model is temporally constant.
virtual void clear(void)
Clear instance.
virtual double npred(const GEnergy &obsEng, const GTime &obsTime, const GObservation &obs) const
Return spatially integrated background rate in units of events MeV s .
GCTAModelRadialAcceptance(void)
Void constructor.
bool valid_model(void) const
Verifies if model has all components.
virtual std::string type(void) const
Return model type.
Class that handles energies in a unit independent way.
GModelSpectral * xml_spectral(const GXmlElement &spectral) const
Return pointer to spectral model from XML element.