GammaLib
2.1.0.dev
|
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 float & | ehora (void) const |
Return Earth Horizon Angle of telescope pointing axis. More... | |
void | ehora (const float &ehora) |
Set Earth Horizon Angle of telescope pointing axis. 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... | |
float | m_ehora |
Earth Horizon Angle of telescope pointing (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 122 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 |
|
inline |
Return Earth Horizon Angle of telescope pointing axis.
Returns the Earth Horizon Angle of telescope pointing axis in degrees.
Definition at line 341 of file GCOMOad.hpp.
References m_ehora.
Referenced by ehora(), and GCOMOads::read().
|
inline |
Set Earth Horizon Angle of telescope pointing axis.
[in] | ehora | Earth Horizon Angle of telescope pointing axis (deg). |
Set the Earth Horizon Angle of telescope pointing axis.
Definition at line 355 of file GCOMOad.hpp.
|
protected |
Delete class members.
Definition at line 258 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 254 of file GCOMOad.hpp.
References m_gcaz.
Referenced by GCOMDri::compute_dre(), GCOMDri::compute_drg(), GCOMDris::compute_drws_energy(), GCOMDris::compute_drws_phibar(), gcaz(), GCOMOads::read(), GCOMDris::vetorate_generate(), and GCOMDris::vetorate_setup().
|
inline |
Set Geocentre azimuth angle.
[in] | gcaz | Geocentre azimuth angle (deg). |
Set the Geocentre azimuth angle.
Definition at line 268 of file GCOMOad.hpp.
|
inline |
Return Geocentre zenith angle.
Returns the Geocentre zenith angle in degrees.
Definition at line 283 of file GCOMOad.hpp.
References m_gcel.
Referenced by GCOMDri::compute_dre(), GCOMDri::compute_drg(), GCOMDris::compute_drws_energy(), GCOMDris::compute_drws_phibar(), gcel(), GCOMOads::read(), GCOMDris::vetorate_generate(), and GCOMDris::vetorate_setup().
|
inline |
Set Geocentre zenith angle.
[in] | gcel | Geocentre zenith angle (deg). |
Set the Geocentre zenith angle.
Definition at line 297 of file GCOMOad.hpp.
|
inline |
Return apparent radius of Earth.
Returns the apparent radius of Earth in degrees.
Definition at line 312 of file GCOMOad.hpp.
References m_georad.
Referenced by GCOMDri::compute_dre(), GCOMDri::compute_drg(), GCOMDris::compute_drws_energy(), GCOMDris::compute_drws_phibar(), georad(), GCOMOads::read(), GCOMDris::vetorate_generate(), and GCOMDris::vetorate_setup().
|
inline |
Set apparent radius of Earth.
[in] | georad | Apparent radius of Earth (deg). |
Set the apparent radius of Earth.
Definition at line 326 of file GCOMOad.hpp.
|
protected |
Initialise class members.
Definition at line 208 of file GCOMOad.cpp.
References GSkyDir::clear(), GTime::clear(), m_ehora, 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 475 of file GCOMOad.hpp.
References m_posang, m_xaxis, m_zaxis, and GSkyDir::posang_deg().
Referenced by GCOMDri::compute_drg(), GCOMDris::compute_drws_energy(), GCOMDris::compute_drws_phibar(), GCOMDris::vetorate_generate(), and GCOMDris::vetorate_setup().
|
inline |
Return telescope position vector (km)
Returns the telescope position vector (km).
Definition at line 430 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 444 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 460 of file GCOMOad.hpp.
References GSkyDir::dist_deg(), and m_zaxis.
Referenced by GCOMDri::compute_drg(), GCOMDris::compute_drws_energy(), GCOMDris::compute_drws_phibar(), GCOMDri::compute_drx(), GCOMDris::vetorate_generate(), and GCOMDris::vetorate_setup().
|
inline |
Return tics of Orbit Aspect Record.
Returns the tics of the Orbit Aspect Record.
Definition at line 225 of file GCOMOad.hpp.
References m_tics.
Referenced by GCOMBvcs::find(), GCOMOads::read(), tics(), and GCOMDris::vetorate_finish().
|
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 239 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 196 of file GCOMOad.hpp.
References m_tjd.
Referenced by GCOMDri::compute_drg(), GCOMDris::compute_drws_energy(), GCOMDris::compute_drws_phibar(), GCOMBvcs::find(), GCOMOads::read(), tjd(), GCOMDris::vetorate_finish(), GCOMDris::vetorate_generate(), and GCOMDris::vetorate_setup().
|
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 210 of file GCOMOad.hpp.
|
inline |
Return start time of superpacket.
Returns the start time of the superpacket.
Definition at line 136 of file GCOMOad.hpp.
References m_tstart.
Referenced by GCOMDri::compute_dre(), GCOMDris::compute_drws_energy(), GCOMDris::compute_drws_phibar(), GCOMOads::read(), tstart(), GCOMDri::use_superpacket(), and GCOMDris::vetorate_setup().
|
inline |
Set start time of superpacket.
[in] | tstart | Start time of superpacket. |
Set the start time of the superpacket.
Definition at line 150 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 167 of file GCOMOad.hpp.
References m_tstop.
Referenced by GCOMDri::compute_dre(), GCOMDris::compute_drws_energy(), GCOMDris::compute_drws_phibar(), GCOMOads::read(), tstop(), GCOMDri::use_superpacket(), and GCOMDris::vetorate_setup().
|
inline |
Set stop time of superpacket.
[in] | tstop | Stop time of superpacket. |
Set the stop time of the superpacket.
Definition at line 181 of file GCOMOad.hpp.
|
inline |
Return telescope X-axis.
Returns the telescope X-axis.
Definition at line 400 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 414 of file GCOMOad.hpp.
|
inline |
Return telescope Z-axis.
Returns the telescope Z-axis.
Definition at line 370 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 384 of file GCOMOad.hpp.
|
protected |
Earth Horizon Angle of telescope pointing (deg)
Definition at line 108 of file GCOMOad.hpp.
Referenced by copy_members(), ehora(), and init_members().
|
protected |
Geocentre azimuth angle (deg)
Definition at line 105 of file GCOMOad.hpp.
Referenced by copy_members(), gcaz(), and init_members().
|
protected |
Geocentre zenith angle (deg)
Definition at line 106 of file GCOMOad.hpp.
Referenced by copy_members(), gcel(), and init_members().
|
protected |
Apparent radius of Earth (deg)
Definition at line 107 of file GCOMOad.hpp.
Referenced by copy_members(), georad(), and init_members().
|
protected |
Position vector (km)
Definition at line 109 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), and pos().
|
mutableprotected |
X-axis position angle in COMPTEL system.
Definition at line 112 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), phi(), xaxis(), and zaxis().
|
protected |
Tics of OAD record.
Definition at line 104 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), print(), and tics().
|
protected |
TJD of OAD record.
Definition at line 103 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), print(), and tjd().
|
protected |
Start time of superpacket.
Definition at line 99 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), print(), and tstart().
|
protected |
Stop time of superpacket.
Definition at line 100 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), print(), and tstop().
|
protected |
Telescope x-axis.
Definition at line 102 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), phi(), and xaxis().
|
protected |
Telescope z-axis.
Definition at line 101 of file GCOMOad.hpp.
Referenced by copy_members(), init_members(), phi(), theta(), and zaxis().