GammaLib 2.1.0.dev
Loading...
Searching...
No Matches
GCOMTools.hpp
Go to the documentation of this file.
1/***************************************************************************
2 * GCOMTools.hpp - COMPTEL tools *
3 * ----------------------------------------------------------------------- *
4 * copyright (C) 2021 by Juergen Knoedlseder *
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 GCOMTools.hpp
23 * @brief Definition of COMPTEL tools
24 * @author Juergen Knoedlseder
25 */
26
27#ifndef GCOMTOOLS_HPP
28#define GCOMTOOLS_HPP
29
30/* __ Includes ___________________________________________________________ */
31
32/* __ Forward declarations _______________________________________________ */
33class GTime;
34
35/* __ Namespaces _________________________________________________________ */
36
37/* __ Constants __________________________________________________________ */
38
39/* __ Prototypes _________________________________________________________ */
40namespace gammalib {
41 GTime com_time(const int& tjd, const int& tics);
42 int com_tjd(const GTime& time);
43 int com_tics(const GTime& time);
44}
45
46#endif /* GCOMTOOLS_HPP */
Time class.
Definition GTime.hpp:55
int com_tics(const GTime &time)
Convert GTime in COMPTEL tics.
int com_tjd(const GTime &time)
Convert GTime in COMPTEL TJD.
Definition GCOMTools.cpp:91
GTime com_time(const int &tjd, const int &tics)
Convert TJD and COMPTEL tics in GTime object.
Definition GCOMTools.cpp:55