|
GammaLib 2.2.0.dev
|
Interface for the Fermi/LAT efficiency factor functor. More...
#include <GLATEfficiency.hpp>
Public Member Functions | |
| GLATEfficiency (void) | |
| Void constructor. | |
| GLATEfficiency (const std::vector< double > &pars) | |
| Assignment constructor. | |
| GLATEfficiency (const GLATEfficiency &eff) | |
| Copy constructor. | |
| virtual | ~GLATEfficiency (void) |
| Destructor. | |
| GLATEfficiency & | operator= (const GLATEfficiency &eff) |
| Assignment operator. | |
| double | operator() (const double &logE) const |
| Functor operator. | |
| void | clear (void) |
| Clear efficiency factor functor. | |
| GLATEfficiency * | clone (void) const |
| Clone efficiency factor functor. | |
| std::string | classname (void) const |
| Return class name. | |
| std::vector< double > | pars (void) const |
| Return efficiency parameters. | |
| std::string | print (const GChatter &chatter=NORMAL) const |
| Print efficiency factors. | |
Public Member Functions inherited from GBase | |
| virtual | ~GBase (void) |
| Destructor. | |
Private Member Functions | |
| void | init_members (void) |
| Initialise class members. | |
| void | copy_members (const GLATEfficiency &eff) |
| Copy class members. | |
| void | free_members (void) |
| Delete class members. | |
Private Attributes | |
| double | m_a0 |
| Energy domain 1 scale. | |
| double | m_a1 |
| Energy domain 2 scale. | |
| double | m_a2 |
| Energy domain 3 scale. | |
| double | m_b0 |
| Energy domain 1 offset. | |
| double | m_b1 |
| Energy domain 2 offset. | |
| double | m_b2 |
| Energy domain 3 offset. | |
| double | m_logEb1 |
| Separation of energy domains 1/2. | |
| double | m_logEb2 |
| Separation of energy domains 2/3. | |
Interface for the Fermi/LAT efficiency factor functor.
Definition at line 41 of file GLATEfficiency.hpp.
| GLATEfficiency::GLATEfficiency | ( | void | ) |
Void constructor.
Definition at line 54 of file GLATEfficiency.cpp.
References init_members().
Referenced by clone().
|
explicit |
| GLATEfficiency::GLATEfficiency | ( | const GLATEfficiency & | eff | ) |
Copy constructor.
| [in] | eff | Efficiency factor functor. |
Definition at line 96 of file GLATEfficiency.cpp.
References copy_members(), and init_members().
|
virtual |
|
inlinevirtual |
Return class name.
Implements GBase.
Definition at line 85 of file GLATEfficiency.hpp.
|
virtual |
Clear efficiency factor functor.
This method properly resets the object to an initial state.
Implements GBase.
Definition at line 192 of file GLATEfficiency.cpp.
References free_members(), and init_members().
|
virtual |
Clone efficiency factor functor.
Implements GBase.
Definition at line 210 of file GLATEfficiency.cpp.
References GLATEfficiency().
Referenced by GLATAeff::copy_members().
|
private |
Copy class members.
| [in] | eff | Efficiency factor functor. |
Definition at line 306 of file GLATEfficiency.cpp.
References m_a0, m_a1, m_a2, m_b0, m_b1, m_b2, m_logEb1, and m_logEb2.
Referenced by GLATEfficiency(), and operator=().
|
private |
Delete class members.
Definition at line 326 of file GLATEfficiency.cpp.
Referenced by clear(), operator=(), and ~GLATEfficiency().
|
private |
Initialise class members.
Definition at line 284 of file GLATEfficiency.cpp.
References m_a0, m_a1, m_a2, m_b0, m_b1, m_b2, m_logEb1, and m_logEb2.
Referenced by clear(), GLATEfficiency(), GLATEfficiency(), GLATEfficiency(), and operator=().
| double GLATEfficiency::operator() | ( | const double & | logE | ) | const |
| GLATEfficiency & GLATEfficiency::operator= | ( | const GLATEfficiency & | eff | ) |
Assignment operator.
| [in] | eff | Efficiency factor functor. |
Definition at line 134 of file GLATEfficiency.cpp.
References copy_members(), free_members(), and init_members().
| std::vector< double > GLATEfficiency::pars | ( | void | ) | const |
Return efficiency parameters.
Returns a vector with 6 elements containing the efficiency parameters.
Definition at line 223 of file GLATEfficiency.cpp.
References m_a0, m_a1, m_a2, m_b0, m_logEb1, m_logEb2, and pars().
Referenced by GLATEfficiency(), pars(), and GLATAeff::write_efficiency().
Print efficiency factors.
| [in] | chatter | Chattiness. |
Implements GBase.
Definition at line 247 of file GLATEfficiency.cpp.
References m_a0, m_a1, m_a2, m_b0, m_b1, m_b2, m_logEb1, m_logEb2, gammalib::parformat(), SILENT, and gammalib::str().
|
private |
Energy domain 1 scale.
Definition at line 68 of file GLATEfficiency.hpp.
Referenced by copy_members(), GLATEfficiency(), init_members(), operator()(), pars(), and print().
|
private |
Energy domain 2 scale.
Definition at line 69 of file GLATEfficiency.hpp.
Referenced by copy_members(), GLATEfficiency(), init_members(), operator()(), pars(), and print().
|
private |
Energy domain 3 scale.
Definition at line 70 of file GLATEfficiency.hpp.
Referenced by copy_members(), GLATEfficiency(), init_members(), operator()(), pars(), and print().
|
private |
Energy domain 1 offset.
Definition at line 71 of file GLATEfficiency.hpp.
Referenced by copy_members(), GLATEfficiency(), init_members(), operator()(), pars(), and print().
|
private |
Energy domain 2 offset.
Definition at line 72 of file GLATEfficiency.hpp.
Referenced by copy_members(), GLATEfficiency(), init_members(), operator()(), and print().
|
private |
Energy domain 3 offset.
Definition at line 73 of file GLATEfficiency.hpp.
Referenced by copy_members(), GLATEfficiency(), init_members(), operator()(), and print().
|
private |
Separation of energy domains 1/2.
Definition at line 74 of file GLATEfficiency.hpp.
Referenced by copy_members(), GLATEfficiency(), init_members(), operator()(), pars(), and print().
|
private |
Separation of energy domains 2/3.
Definition at line 75 of file GLATEfficiency.hpp.
Referenced by copy_members(), GLATEfficiency(), init_members(), operator()(), pars(), and print().