27#ifndef CTBUTTERFLY_HPP
28#define CTBUTTERFLY_HPP
31#include "GammaLib.hpp"
36#define CTBUTTERFLY_NAME "ctbutterfly"
Butterfly calculation tool.
void copy_members(const ctbutterfly &app)
Copy class members.
void get_parameters(void)
Get application parameters.
bool m_apply_edisp
Apply energy dispersion?
void save(void)
Save butterfly diagram.
ctbutterfly & operator=(const ctbutterfly &app)
Assignment operator.
GChatter m_chatter
Chattiness.
GMatrixSparse m_covariance
Covariance matrix.
void create_fits(void)
Set result FITS file.
std::vector< double > m_energies
Energy values.
const GFits & butterfly(void) const
Return butterfly FITS file.
void eigenvectors(const double &a, const double &b, const double &c, const double &d, double *lambda1, double *lambda2, GVector *vector1, GVector *vector2)
Compute normalized eigenvectors and eigenvalues.
std::vector< double > m_intensities
Power law intensity.
std::vector< double > m_max_intensities
Maximum intensities.
std::string m_method
Computation method.
void init_members(void)
Initialise class members.
GFilename m_outfile
Output ASCII file name.
GFits m_fits
FITS file holding butterfly.
int m_max_iter
Maximum number of iterations.
void process(void)
Computes the butterfly.
void gaussian_error_propagation(GModels &models)
Compute butterfly using Gaussian error propagation.
void free_members(void)
Delete class members.
void clear(void)
Clear ctbutterfly tool.
void ellipsoid_boundary(GModels &models)
Compute butterfly using the ellipsoid boundary method.
ctbutterfly(void)
Void constructor.
virtual ~ctbutterfly(void)
Destructor.
double m_confidence
Confidence level.
void check_model(void)
Check if sky model is valid.
std::vector< double > m_min_intensities
Minimum intensities.
std::string m_srcname
Name of source to compute butterfly.
GEbounds m_ebounds
Energy binning definition.
Base class for likelihood tools.
const GObservations & obs(void) const
Return observation container.
Likelihood tool base class interface definition.