GammaLib
2.1.0.dev
|
Abstract radial acceptance model class. More...
#include <GCTAModelRadial.hpp>
Public Member Functions | |
GCTAModelRadial (void) | |
Void constructor. More... | |
GCTAModelRadial (const GCTAModelRadial &model) | |
Copy constructor. More... | |
virtual | ~GCTAModelRadial (void) |
Destructor. More... | |
virtual GCTAModelRadial & | operator= (const GCTAModelRadial &model) |
Assignment operator. More... | |
virtual double | eval (const GCTAInstDir &dir, const GEnergy &energy, const GTime &time, const bool &gradients=false) const |
Evaluate function. More... | |
virtual GCTAInstDir | mc (const GEnergy &energy, const GTime &time, const GCTAObservation &obs, GRan &ran) const |
Returns MC instrument direction. More... | |
virtual void | clear (void)=0 |
Clear object. More... | |
virtual GCTAModelRadial * | clone (void) const =0 |
Clones object. More... | |
virtual std::string | classname (void) const =0 |
Return class name. More... | |
virtual std::string | type (void) const =0 |
virtual double | omega (void) const =0 |
virtual double | mc_max_value (const GCTAObservation &obs) const =0 |
virtual void | read (const GXmlElement &xml)=0 |
virtual void | write (GXmlElement &xml) const =0 |
virtual std::string | print (const GChatter &chatter=NORMAL) const =0 |
Print content of object. More... | |
virtual double | eval (const double &offset, const bool &gradients=false) const =0 |
virtual GCTAInstDir | mc (GRan &ran) const =0 |
Public Member Functions inherited from GCTAModelSpatial | |
GCTAModelSpatial (void) | |
Void constructor. More... | |
GCTAModelSpatial (const GCTAModelSpatial &model) | |
Copy constructor. More... | |
virtual | ~GCTAModelSpatial (void) |
Destructor. More... | |
virtual GCTAModelSpatial & | operator= (const GCTAModelSpatial &model) |
Assignment operator. More... | |
virtual GModelPar & | operator[] (const int &index) |
Returns model parameter. More... | |
virtual const GModelPar & | operator[] (const int &index) const |
Returns model parameter (const version) More... | |
virtual GModelPar & | operator[] (const std::string &name) |
Returns reference to model parameter. More... | |
virtual const GModelPar & | operator[] (const std::string &name) const |
Returns reference to model parameter (const version) More... | |
int | size (void) const |
Return number of model parameters. More... | |
virtual double | npred (const GEnergy &energy, const GTime &time, const GObservation &obs) const |
Return integral of spatial model component. More... | |
Public Member Functions inherited from GBase | |
virtual | ~GBase (void) |
Destructor. More... | |
Protected Member Functions | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GCTAModelRadial &model) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Protected Member Functions inherited from GCTAModelSpatial | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GCTAModelSpatial &model) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Additional Inherited Members | |
Protected Attributes inherited from GCTAModelSpatial | |
std::vector< GModelPar * > | m_pars |
Parameter pointers. More... | |
Abstract radial acceptance model class.
This class implements the radial component of the CTA radial acceptance model.
Definition at line 50 of file GCTAModelRadial.hpp.
GCTAModelRadial::GCTAModelRadial | ( | void | ) |
GCTAModelRadial::GCTAModelRadial | ( | const GCTAModelRadial & | model | ) |
Copy constructor.
[in] | model | Radial background model. |
Definition at line 70 of file GCTAModelRadial.cpp.
References copy_members(), and init_members().
|
virtual |
|
pure virtual |
Return class name.
Returns the class name for non-abstract classes in a human readable way.
Implements GCTAModelSpatial.
Implemented in GCTAModelRadialProfile, GCTAModelRadialPolynom, and GCTAModelRadialGauss.
|
pure virtual |
Clear object.
Sets the object to a clean initial state. After calling the method the object will be in the same state as it were if an empty instance of the object would have been created.
Implements GCTAModelSpatial.
Implemented in GCTAModelRadialProfile, GCTAModelRadialPolynom, and GCTAModelRadialGauss.
|
pure virtual |
Clones object.
Creates a deep copy of the object and returns a pointer to the object.
Implements GCTAModelSpatial.
Implemented in GCTAModelRadialProfile, GCTAModelRadialPolynom, and GCTAModelRadialGauss.
Referenced by GCTAModelRadialAcceptance::copy_members(), GCTAModelRadialAcceptance::GCTAModelRadialAcceptance(), and GCTAModelRadialAcceptance::radial().
|
protected |
Copy class members.
[in] | model | Radial acceptance model. |
Definition at line 216 of file GCTAModelRadial.cpp.
Referenced by GCTAModelRadial(), and operator=().
|
virtual |
Evaluate function.
[in] | dir | Event direction. |
[in] | energy | Event energy (not used). |
[in] | time | Event time (not used). |
[in] | gradients | Compute gradients? |
Evaluate radial model for a given event direction. The energy and time of the event are not used.
Implements GCTAModelSpatial.
Definition at line 146 of file GCTAModelRadial.cpp.
References gammalib::rad2deg, and GCTAInstDir::theta().
Referenced by GCTAModelRadialAcceptance::eval(), and GCTAModelRadialAcceptance::roi_kern::eval().
|
pure virtual |
Implemented in GCTAModelRadialProfile, GCTAModelRadialPolynom, and GCTAModelRadialGauss.
|
protected |
Delete class members.
Definition at line 226 of file GCTAModelRadial.cpp.
Referenced by GCTAModelRadialGauss::clear(), GCTAModelRadialPolynom::clear(), GCTAModelRadialProfile::clear(), operator=(), and ~GCTAModelRadial().
|
protected |
Initialise class members.
Definition at line 204 of file GCTAModelRadial.cpp.
Referenced by GCTAModelRadialGauss::clear(), GCTAModelRadialPolynom::clear(), GCTAModelRadialProfile::clear(), GCTAModelRadial(), and operator=().
|
virtual |
Returns MC instrument direction.
[in] | energy | Event energy (not used). |
[in] | time | Event time (not used). |
[in] | obs | CTA observation. |
[in,out] | ran | Random number generator. |
Return random instrument direction. The method sets the sky direction and the instrument coordinates of the instrument direction.
The energy and time of the event are not used.
Reimplemented from GCTAModelSpatial.
Definition at line 176 of file GCTAModelRadial.cpp.
References GCTAInstDir::dir(), and GCTAObservation::pointing().
Referenced by GCTAModelRadialAcceptance::mc().
|
pure virtual |
Implemented in GCTAModelRadialProfile, GCTAModelRadialPolynom, and GCTAModelRadialGauss.
|
pure virtual |
Implements GCTAModelSpatial.
Implemented in GCTAModelRadialProfile, GCTAModelRadialPolynom, and GCTAModelRadialGauss.
|
pure virtual |
Implemented in GCTAModelRadialProfile, GCTAModelRadialPolynom, and GCTAModelRadialGauss.
Referenced by GCTAModelRadialAcceptance::mc().
|
virtual |
Assignment operator.
[in] | model | Radial background model. |
Definition at line 107 of file GCTAModelRadial.cpp.
References copy_members(), free_members(), and init_members().
Referenced by GCTAModelRadialGauss::operator=(), GCTAModelRadialPolynom::operator=(), and GCTAModelRadialProfile::operator=().
Print content of object.
[in] | chatter | Chattiness (defaults to NORMAL). |
Formats the content in a standard way and puts this content in a C++ string that is returned.
Implements GCTAModelSpatial.
Implemented in GCTAModelRadialProfile, GCTAModelRadialPolynom, and GCTAModelRadialGauss.
|
pure virtual |
Implements GCTAModelSpatial.
Implemented in GCTAModelRadialProfile, GCTAModelRadialPolynom, and GCTAModelRadialGauss.
Referenced by GCTAModelRadialAcceptance::xml_radial().
|
pure virtual |
Implements GCTAModelSpatial.
Implemented in GCTAModelRadialProfile, GCTAModelRadialPolynom, and GCTAModelRadialGauss.
Referenced by GCTAModelRadialRegistry::GCTAModelRadialRegistry().
|
pure virtual |
Implements GCTAModelSpatial.
Implemented in GCTAModelRadialProfile, GCTAModelRadialPolynom, and GCTAModelRadialGauss.
Referenced by GCTAModelRadialAcceptance::write().