ctools 2.1.0.dev
Loading...
Searching...
No Matches
ctedispcube.hpp
Go to the documentation of this file.
1/***************************************************************************
2 * ctedispcube - Energy dispersion cube generation tool *
3 * ----------------------------------------------------------------------- *
4 * copyright (C) 2016-2022 by Maria Haupt *
5 * ----------------------------------------------------------------------- *
6 * *
7 * This program is free software: you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation, either version 3 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
19 * *
20 ***************************************************************************/
21/**
22 * @file ctedispcube.hpp
23 * @brief Energy dispersion cube generation tool definition
24 * @author Chia-Chun Lu
25 */
26
27#ifndef CTEDISPCUBE_HPP
28#define CTEDISPCUBE_HPP
29
30/* __ Includes ___________________________________________________________ */
31#include "GammaLib.hpp"
32#include "GCTALib.hpp"
33#include "ctobservation.hpp"
34
35/* __Definitions _________________________________________________________ */
36#define CTEDISPCUBE_NAME "ctedispcube"
37
38
39/***********************************************************************//**
40 * @class ctedispcube
41 *
42 * @brief Energy dispersion cube generation tool
43 ***************************************************************************/
44class ctedispcube : public ctobservation {
45
46public:
47 // Constructors and destructors
48 ctedispcube(void);
49 explicit ctedispcube(const GObservations& obs);
50 ctedispcube(int argc, char *argv[]);
51 ctedispcube(const ctedispcube& app);
52 virtual ~ctedispcube(void);
53
54 // Operators
56
57 // Methods
58 void clear(void);
59 void process(void);
60 void save(void);
61 const GCTACubeEdisp& edispcube(void) const;
62
63protected:
64 // Protected methods
65 void init_members(void);
66 void copy_members(const ctedispcube& app);
67 void free_members(void);
68 void get_parameters(void);
69 void init_cube(void);
70
71 // User parameters
72 GFilename m_outcube; //!< Output exposure cube file
73 bool m_addbounds; //!< Add energies at boundaries?
74 GChatter m_chatter; //!< Chattiness
75
76 // Protected members
77 GCTACubeEdisp m_edispcube; //!< Energy dispersion cube
78};
79
80
81/***********************************************************************//**
82 * @brief Return energy dispersion cube
83 *
84 * @return Energy dispersion cube
85 ***************************************************************************/
86inline
87const GCTACubeEdisp& ctedispcube::edispcube(void) const
88{
89 return (m_edispcube);
90}
91
92#endif /* CTEDISPCUBE_HPP */
Energy dispersion cube generation tool.
const GCTACubeEdisp & edispcube(void) const
Return energy dispersion cube.
GFilename m_outcube
Output exposure cube file.
void copy_members(const ctedispcube &app)
Copy class members.
void clear(void)
Clear energy dispersion tool.
void get_parameters(void)
Get application parameters.
ctedispcube(void)
Void constructor.
void save(void)
Save energy dispersion cube.
void init_members(void)
Initialise class members.
GChatter m_chatter
Chattiness.
ctedispcube & operator=(const ctedispcube &app)
Assignment operator.
GCTACubeEdisp m_edispcube
Energy dispersion cube.
void init_cube(void)
Initialise energy dispersion cube.
virtual ~ctedispcube(void)
Destructor.
void process(void)
Generate the energy dispersion cube.
bool m_addbounds
Add energies at boundaries?
void free_members(void)
Delete class members.
Base class for observation tools.
const GObservations & obs(void) const
Return observation container.
Observation tool base class interface definition.