GammaLib
2.1.0.dev
|
Abstract base class for the CTA background model. More...
#include <GCTABackground.hpp>
Public Member Functions | |
GCTABackground (void) | |
Void constructor. More... | |
GCTABackground (const GCTABackground &bgd) | |
Copy constructor. More... | |
virtual | ~GCTABackground (void) |
Destructor. More... | |
virtual double | operator() (const double &logE, const double &detx, const double &dety) const =0 |
GCTABackground & | operator= (const GCTABackground &bgd) |
Assignment operator. More... | |
virtual void | clear (void)=0 |
Clear object. More... | |
virtual GCTABackground * | clone (void) const =0 |
Clones object. More... | |
virtual std::string | classname (void) const =0 |
Return class name. More... | |
virtual void | load (const GFilename &filename)=0 |
virtual GFilename | filename (void) const =0 |
virtual GCTAInstDir | mc (const GEnergy &energy, const GTime &time, GRan &ran) const =0 |
virtual const GModelSpectralNodes & | spectrum (void) const =0 |
virtual double | rate_ebin (const GCTAInstDir &dir, const GEnergy &emin, const GEnergy &emax) const =0 |
virtual std::string | print (const GChatter &chatter=NORMAL) const =0 |
Print content of object. 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 GCTABackground &bgd) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Abstract base class for the CTA background model.
Definition at line 48 of file GCTABackground.hpp.
GCTABackground::GCTABackground | ( | void | ) |
GCTABackground::GCTABackground | ( | const GCTABackground & | bgd | ) |
Copy constructor.
[in] | bgd | CTA background. |
Definition at line 68 of file GCTABackground.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 GBase.
Implemented in GCTABackground2D, GCTABackground3D, and GCTABackgroundPerfTable.
|
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 GBase.
Implemented in GCTABackground2D, GCTABackground3D, and GCTABackgroundPerfTable.
|
pure virtual |
Clones object.
Creates a deep copy of the object and returns a pointer to the object.
Implements GBase.
Implemented in GCTABackground2D, GCTABackground3D, and GCTABackgroundPerfTable.
Referenced by GCTAResponseIrf::background(), and GCTAResponseIrf::copy_members().
|
protected |
Copy class members.
[in] | bgd | CTA background. |
Definition at line 154 of file GCTABackground.cpp.
Referenced by GCTABackground(), and operator=().
|
pure virtual |
Implemented in GCTABackground2D, GCTABackground3D, and GCTABackgroundPerfTable.
|
protected |
Delete class members.
Definition at line 164 of file GCTABackground.cpp.
Referenced by GCTABackgroundPerfTable::clear(), GCTABackground3D::clear(), GCTABackground2D::clear(), operator=(), and ~GCTABackground().
|
protected |
Initialise class members.
Definition at line 142 of file GCTABackground.cpp.
Referenced by GCTABackgroundPerfTable::clear(), GCTABackground3D::clear(), GCTABackground2D::clear(), GCTABackground(), and operator=().
|
pure virtual |
Implemented in GCTABackground2D, GCTABackground3D, and GCTABackgroundPerfTable.
|
pure virtual |
Implemented in GCTABackground2D, GCTABackground3D, and GCTABackgroundPerfTable.
Referenced by GCTAModelIrfBackground::mc().
|
pure virtual |
Implemented in GCTABackground2D, GCTABackground3D, and GCTABackgroundPerfTable.
GCTABackground & GCTABackground::operator= | ( | const GCTABackground & | bgd | ) |
Assignment operator.
[in] | bgd | CTA background. |
Definition at line 106 of file GCTABackground.cpp.
References copy_members(), free_members(), and init_members().
Referenced by GCTABackgroundPerfTable::operator=(), GCTABackground2D::operator=(), and GCTABackground3D::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 GBase.
Implemented in GCTABackground2D, GCTABackground3D, and GCTABackgroundPerfTable.
Referenced by GCTAResponseIrf::print().
|
pure virtual |
Implemented in GCTABackground2D, GCTABackground3D, and GCTABackgroundPerfTable.
Referenced by GCTAModelIrfBackground::eval().
|
pure virtual |
Implemented in GCTABackground2D, GCTABackground3D, and GCTABackgroundPerfTable.
Referenced by GCTAModelIrfBackground::mc().