GammaLib  1.7.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GCOMSupport.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  * GCOMSupport.hpp - COMPTEL support functions *
3  * ----------------------------------------------------------------------- *
4  * copyright (C) 2012-2019 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 GCOMSupport.hpp
23  * @brief Definition of support function used by COMPTEL classes
24  * @author Juergen Knoedlseder
25  */
26 
27 #ifndef GCOMSUPPORT_HPP
28 #define GCOMSUPPORT_HPP
29 
30 /* __ Includes ___________________________________________________________ */
31 
32 /* __ Forward declarations _______________________________________________ */
33 class GSkyMap;
34 class GTime;
35 
36 /* __ Namespaces _________________________________________________________ */
37 
38 /* __ Constants __________________________________________________________ */
39 
40 /* __ Prototypes _________________________________________________________ */
41 namespace gammalib {
42  void com_wcs_mer2car(GSkyMap& map);
43  double com_energy1(const double& energy, const double& phigeo);
44  double com_energy2(const double& energy, const double& phigeo);
45  GTime com_time(const int& tjd, const int& tics);
46  int com_tjd(const GTime& time);
47  int com_tics(const GTime& time);
48 }
49 
50 #endif /* GCOMSUPPORT_HPP */
Sky map class.
Definition: GSkyMap.hpp:89
double com_energy2(const double &energy, const double &phigeo)
Return D2 energy deposit.
Time class.
Definition: GTime.hpp:54
GTime com_time(const int &tjd, const int &tics)
Convert TJD and COMPTEL ticks in GTime object.
void com_wcs_mer2car(GSkyMap &map)
Changes Mercator&#39;s projection to cartesian projection.
Definition: GCOMSupport.cpp:58
int com_tjd(const GTime &time)
Convert GTime in COMPTEL TJD.
int com_tics(const GTime &time)
Convert GTime in COMPTEL tics.
double com_energy1(const double &energy, const double &phigeo)
Return D1 energy deposit.