GammaLib
2.0.0
|
Interface for the Fermi/LAT efficiency factor functor. More...
#include <GLATEfficiency.hpp>
Public Member Functions | |
GLATEfficiency (void) | |
Void constructor. More... | |
GLATEfficiency (const std::vector< double > &pars) | |
Assignment constructor. More... | |
GLATEfficiency (const GLATEfficiency &eff) | |
Copy constructor. More... | |
virtual | ~GLATEfficiency (void) |
Destructor. More... | |
GLATEfficiency & | operator= (const GLATEfficiency &eff) |
Assignment operator. More... | |
double | operator() (const double &logE) const |
Functor operator. More... | |
void | clear (void) |
Clear efficiency factor functor. More... | |
GLATEfficiency * | clone (void) const |
Clone efficiency factor functor. More... | |
std::string | classname (void) const |
Return class name. More... | |
std::vector< double > | pars (void) const |
Return efficiency parameters. More... | |
std::string | print (const GChatter &chatter=NORMAL) const |
Print efficiency factors. More... | |
Public Member Functions inherited from GBase | |
virtual | ~GBase (void) |
Destructor. More... | |
Private Member Functions | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GLATEfficiency &eff) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Private Attributes | |
double | m_a0 |
Energy domain 1 scale. More... | |
double | m_a1 |
Energy domain 2 scale. More... | |
double | m_a2 |
Energy domain 3 scale. More... | |
double | m_b0 |
Energy domain 1 offset. More... | |
double | m_b1 |
Energy domain 2 offset. More... | |
double | m_b2 |
Energy domain 3 offset. More... | |
double | m_logEb1 |
Separation of energy domains 1/2. More... | |
double | m_logEb2 |
Separation of energy domains 2/3. More... | |
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(), 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, and m_logEb2.
Referenced by 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().