GammaLib
2.0.0
|
COMPTEL Orbit Aspect Data class. More...
#include <GCOMOad.hpp>
Public Member Functions | |
GCOMOad (void) | |
Void constructor. More... | |
GCOMOad (const GCOMOad &oad) | |
Copy constructor. More... | |
virtual | ~GCOMOad (void) |
Destructor. More... | |
GCOMOad & | operator= (const GCOMOad &oad) |
Assignment operator. More... | |
virtual void | clear (void) |
Clear COMPTEL Orbit Aspect Data. More... | |
virtual GCOMOad * | clone (void) const |
Clone COMPTEL Orbit Aspect Data. More... | |
virtual std::string | classname (void) const |
Return class name. More... | |
virtual std::string | print (const GChatter &chatter=NORMAL) const |
Print COMPTEL Orbit Aspect Data. More... | |
const GTime & | tstart (void) const |
Return start time of superpacket. More... | |
void | tstart (const GTime &tstart) |
Set start time of superpacket. More... | |
const GTime & | tstop (void) const |
Return stop time of superpacket. More... | |
void | tstop (const GTime &tstop) |
Set stop time of superpacket. More... | |
const int & | tjd (void) const |
Return Truncated Julian Days of Orbit Aspect Record. More... | |
void | tjd (const int &tjd) |
Set Truncated Julian Days of Orbit Aspect Record. More... | |
const int & | tics (void) const |
Return tics of Orbit Aspect Record. More... | |
void | tics (const int &tics) |
Set tics of Orbit Aspect Record. More... | |
const float & | gcaz (void) const |
Return Geocentre azimuth angle. More... | |
void | gcaz (const float &gcaz) |
Set Geocentre azimuth angle. More... | |
const float & | gcel (void) const |
Return Geocentre zenith angle. More... | |
void | gcel (const float &gcel) |
Set Geocentre zenith angle. More... | |
const float & | georad (void) const |
Return apparent radius of Earth. More... | |
void | georad (const float &georad) |
Set apparent radius of Earth. More... | |
const GSkyDir & | zaxis (void) const |
Return telescope Z-axis. More... | |
void | zaxis (const GSkyDir &zaxis) |
Set telescope Z-axis. More... | |
const GSkyDir & | xaxis (void) const |
Return telescope X-axis. More... | |
void | xaxis (const GSkyDir &xaxis) |
Set telescope X-axis. More... | |
const GVector & | pos (void) const |
Return telescope position vector (km) More... | |
void | pos (const GVector &pos) |
Set telescope position vector (km) More... | |
double | theta (const GSkyDir &sky) const |
Return zenith angle of sky direction in COMPTEL coordinates. More... | |
double | phi (const GSkyDir &sky) const |
Return azimuth angle of sky direction in COMPTEL coordinates. More... | |
Public Member Functions inherited from GBase | |
virtual | ~GBase (void) |
Destructor. More... | |
Protected Member Functions | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GCOMOad &oad) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Protected Attributes | |
GTime | m_tstart |
Start time of superpacket. More... | |
GTime | m_tstop |
Stop time of superpacket. More... | |
GSkyDir | m_zaxis |
Telescope z-axis. More... | |
GSkyDir | m_xaxis |
Telescope x-axis. More... | |
int | m_tjd |
TJD of OAD record. More... | |
int | m_tics |
Tics of OAD record. More... | |
float | m_gcaz |
Geocentre azimuth angle (deg) More... | |
float | m_gcel |
Geocentre zenith angle (deg) More... | |
float | m_georad |
Apparent radius of Earth (deg) More... | |
GVector | m_pos |
Position vector (km) More... | |
double | m_posang |
X-axis position angle in COMPTEL system. More... | |
COMPTEL Orbit Aspect Data class.
The class holds one record of a COMPTEL Orbit Aspect Data file.
Definition at line 49 of file GCOMOad.hpp.
GCOMOad::GCOMOad | ( | void | ) |
Void constructor.
Definition at line 53 of file GCOMOad.cpp.
References init_members().
Referenced by clone().
GCOMOad::GCOMOad | ( | const GCOMOad & | oad | ) |
Copy constructor.
[in] | oad | COMPTEL Orbit Aspect Data. |
Definition at line 68 of file GCOMOad.cpp.
References copy_members(), and init_members().
|
virtual |
|
inlinevirtual |
Return class name.
Implements GBase.
Definition at line 119 of file GCOMOad.hpp.
|
virtual |
Clear COMPTEL Orbit Aspect Data.
Implements GBase.
Definition at line 136 of file GCOMOad.cpp.
References free_members(), and init_members().
|
virtual |
Clone COMPTEL Orbit Aspect Data.
Implements GBase.
Definition at line 154 of file GCOMOad.cpp.
References GCOMOad().
|
protected |
|
protected |
Delete class members.
Definition at line 256 of file GCOMOad.cpp.
Referenced by clear(), operator=(), and ~GCOMOad().
|
inline |
Return Geocentre azimuth angle.
Returns the Geocentre azimuth angle in degrees.
Definition at line 251 of file GCOMOad.hpp.
References m_gcaz.
Referenced by GCOMDri::compute_dre(), GCOMDri::compute_drg(), gcaz(), and GCOMOads::read().
|
inline |
Set Geocentre azimuth angle.
[in] | gcaz | Geocentre azimuth angle (deg). |
Set the Geocentre azimuth angle.
Definition at line 265 of file GCOMOad.hpp.
|
inline |
Return Geocentre zenith angle.
Returns the Geocentre zenith angle in degrees.
Definition at line 280 of file GCOMOad.hpp.
References m_gcel.
Referenced by GCOMDri::compute_dre(), GCOMDri::compute_drg(), gcel(), and GCOMOads::read().
|
inline |
Set Geocentre zenith angle.
[in] | gcel | Geocentre zenith angle (deg). |
Set the Geocentre zenith angle.
Definition at line 294 of file GCOMOad.hpp.
|
inline |
Return apparent radius of Earth.
Returns the apparent radius of Earth in degrees.
Definition at line 309 of file GCOMOad.hpp.
References m_georad.
Referenced by GCOMDri::compute_dre(), GCOMDri::compute_drg(), georad(), and GCOMOads::read().
|
inline |
Set apparent radius of Earth.
[in] | georad | Apparent radius of Earth (deg). |
Set the apparent radius of Earth.
Definition at line 323 of file GCOMOad.hpp.
|
protected |
Initialise class members.
Definition at line 208 of file GCOMOad.cpp.
References GSkyDir::clear(), GTime::clear(), m_gcaz, m_gcel, m_georad, m_pos, m_posang, m_tics, m_tjd, m_tstart, m_tstop, m_xaxis, and m_zaxis.
Referenced by clear(), GCOMOad(), and operator=().
Assignment operator.
[in] | oad | COMPTEL Orbit Aspect Data. |
Definition at line 106 of file GCOMOad.cpp.
References copy_members(), free_members(), and init_members().
|
inline |
Return azimuth angle of sky direction in COMPTEL coordinates.
[in] | sky | Sky direction. |
Returns the azimuth angle of a sky direction in COMPTEL coordinates.
Definition at line 443 of file GCOMOad.hpp.
References m_posang, m_xaxis, m_zaxis, and GSkyDir::posang_deg().
Referenced by GCOMDri::compute_drg().
|
inline |
Return telescope position vector (km)
Returns the telescope position vector (km).
Definition at line 398 of file GCOMOad.hpp.
References m_pos.
Referenced by GCOMDri::compute_dre(), pos(), and GCOMOads::read().
|
inline |
Set telescope position vector (km)
[in] | pos | Telescope position vector (km). |
Set the telescope position vector (km).
Definition at line 412 of file GCOMOad.hpp.
Print COMPTEL Orbit Aspect Data.
[in] | chatter | Chattiness. |
Implements GBase.
Definition at line 166 of file GCOMOad.cpp.
References m_tics, m_tjd, m_tstart, m_tstop, GTime::mjd(), gammalib::parformat(), SILENT, gammalib::str(), and GTime::utc().
|
inline |
Return zenith angle of sky direction in COMPTEL coordinates.
[in] | sky | Sky direction. |
Returns the zenith angle of a sky direction in COMPTEL coordinates.
Definition at line 428 of file GCOMOad.hpp.
References GSkyDir::dist_deg(), and m_zaxis.
Referenced by GCOMDri::compute_drg(), and GCOMDri::compute_drx().
|
inline |
Return tics of Orbit Aspect Record.
Returns the tics of the Orbit Aspect Record.
Definition at line 222 of file GCOMOad.hpp.
References m_tics.
Referenced by GCOMBvcs::find(), GCOMOads::read(), and tics().
|
inline |
Set tics of Orbit Aspect Record.
[in] | tics | Tics of Orbit Aspect Record. |
Set the tics of the Orbit Aspect Record.
Definition at line 236 of file GCOMOad.hpp.
|
inline |
Return Truncated Julian Days of Orbit Aspect Record.
Returns the Truncated Julian Days of the Orbit Aspect Record.
Definition at line 193 of file GCOMOad.hpp.
References m_tjd.
Referenced by GCOMDri::compute_drg(), GCOMBvcs::find(), GCOMOads::read(), and tjd().
|
inline |
Set Truncated Julian Days of Orbit Aspect Record.
[in] | tjd | Truncated Julian Days of Orbit Aspect Record. |
Set the Truncated Julian Days of the Orbit Aspect Record.
Definition at line 207 of file GCOMOad.hpp.
|
inline |
Return start time of superpacket.
Returns the start time of the superpacket.
Definition at line 133 of file GCOMOad.hpp.
References m_tstart.
Referenced by GCOMDri::compute_dre(), GCOMOads::read(), tstart(), and GCOMDri::use_superpacket().
|
inline |
Set start time of superpacket.
[in] | tstart | Start time of superpacket. |
Set the start time of the superpacket.
Definition at line 147 of file GCOMOad.hpp.
|
inline |
Return stop time of superpacket.
Returns the stop time of the superpacket. The stop time is defined as the start time plus 131071 tics, since the length of one superpacket is 16.384 secs, i.e. 16.384 * 8000 = 131072 ticks.
Definition at line 164 of file GCOMOad.hpp.
References m_tstop.
Referenced by GCOMDri::compute_dre(), GCOMOads::read(), tstop(), and GCOMDri::use_superpacket().
|
inline |
Set stop time of superpacket.
[in] | tstop | Stop time of superpacket. |
Set the stop time of the superpacket.
Definition at line 178 of file GCOMOad.hpp.
|
inline |
Return telescope X-axis.
Returns the telescope X-axis.
Definition at line 368 of file GCOMOad.hpp.
References m_xaxis.
Referenced by GCOMOads::read(), and xaxis().
|
inline |
Set telescope X-axis.
[in] | xaxis | Telescope X-axis. |
Set the telescope X-axis.
Definition at line 382 of file GCOMOad.hpp.
|
inline |
Return telescope Z-axis.
Returns the telescope Z-axis.
Definition at line 338 of file GCOMOad.hpp.
References m_zaxis.
Referenced by GCOMOads::read(), and zaxis().
|
inline |
Set telescope Z-axis.
[in] | zaxis | Telescope Z-axis. |
Set the telescope Z-axis.
Definition at line 352 of file GCOMOad.hpp.
|
protected |
Geocentre azimuth angle (deg)
Definition at line 103 of file GCOMOad.hpp.
Referenced by copy_members(), gcaz(), and init_members().
|
protected |
Geocentre zenith angle (deg)
Definition at line 104 of file GCOMOad.hpp.
Referenced by copy_members(), gcel(), and init_members().
|
protected |
Apparent radius of Earth (deg)
Definition at line 105 of file GCOMOad.hpp.
Referenced by copy_members(), georad(), and init_members().
|
protected |
Position vector (km)
Definition at line 106 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), and pos().
|
mutableprotected |
X-axis position angle in COMPTEL system.
Definition at line 109 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), phi(), xaxis(), and zaxis().
|
protected |
Tics of OAD record.
Definition at line 102 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), print(), and tics().
|
protected |
TJD of OAD record.
Definition at line 101 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), print(), and tjd().
|
protected |
Start time of superpacket.
Definition at line 97 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), print(), and tstart().
|
protected |
Stop time of superpacket.
Definition at line 98 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), print(), and tstop().
|
protected |
Telescope x-axis.
Definition at line 100 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), phi(), and xaxis().
|
protected |
Telescope z-axis.
Definition at line 99 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), phi(), theta(), and zaxis().