31#include "GammaLib.hpp"
36#define CTMODEL_NAME "ctmodel"
59 ctmodel(
int argc,
char *argv[]);
70 void publish(
const std::string& name =
"");
71 const GCTAEventCube&
cube(
void)
const;
72 void cube(
const GCTAEventCube&
cube);
85 GModels
trim_models(GModels& all_models,
const GCTARoi& roi);
Model cube generation tool.
double m_dec_pnt
Declination Ascension of pointing.
GFilename m_outcube
Output model cube.
const GCTAEventCube & cube(void) const
Return model cube.
void get_parameters(void)
Get application parameters.
bool has_cube(void) const
Signal if cube has been set or loaded.
void process(void)
Generate the model map(s)
void save(void)
Save model cube.
GModels trim_models(GModels &all_models, const GCTARoi &roi)
Find the models falling inside a defined region of interest.
std::vector< GEnergy > m_energy
Cube energies.
std::vector< GEnergy > m_ewidth
Cube energy widths.
void init_members(void)
Initialise class members.
void copy_members(const ctmodel &app)
Copy class members.
ctmodel & operator=(const ctmodel &app)
Assignment operator.
void extract_cube_properties(void)
Extract cube properties in data members.
void publish(const std::string &name="")
Publish model cube.
GChatter m_chatter
Chattiness.
bool m_has_cube
Signal if cube exists.
void free_members(void)
Delete class members.
void clear(void)
Clear ctmodel tool.
ctmodel(void)
Void constructor.
bool m_append_cube
Signal to append cube.
GCTAEventCube m_cube
Model cube.
void get_obs(void)
Get observation container.
std::vector< GCTAInstDir > m_dir
Cube directions.
void fill_cube(const GCTAObservation *obs, GModels &models)
Fill models into model cube.
virtual ~ctmodel(void)
Destructor.
std::vector< double > m_solidangle
Cube solid angles.
bool m_apply_edisp
Apply energy dispersion?
double m_ra_pnt
Right Ascension of pointing.
GGti m_gti
Model cube GTIs.
bool m_publish
Publish model cube?
void models(const GModels &models)
Set models.
bool m_binned
Signal binned mode.
Base class for observation tools.
GObservations m_obs
Observation container.
const GObservations & obs(void) const
Return observation container.
Observation tool base class interface definition.