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