210 const double radius = 0.49254909e-5;
217 double travt =
m_ssb * n * 1.0e-6;
221 double relat = -2.0 * radius *
std::log(1.0 + (travt/r));
247 result.append(
"=== GCOMBvc ===");
256 result.append(
" days");
virtual ~GCOMBvc(void)
Destructor.
double norm(const GVector &vector)
Computes vector norm.
GTime m_time
Time for Solar System Barycentre Data.
void init_members(void)
Initialise class members.
Sky direction class interface definition.
COMPTEL Solar System Barycentre Data class.
void clear(void)
Clear time.
void copy_members(const GCOMBvc &bvc)
Copy class members.
COMPTEL Solar System Barycentre Data class definition.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print COMPTEL Solar System Barycentre Data.
void clear(void)
Clear vector.
double m_tdelta
Time difference TDB-UTC (sec)
int m_tjd
TJD of Solar System Barycentre Data.
virtual void clear(void)
Clear COMPTEL Solar System Barycentre Data.
GCOMBvc(void)
Void constructor.
void celvector(const GVector &vector)
Set sky direction from 3D vector in celestial coordinates.
GVector log(const GVector &vector)
Computes natural logarithm of vector elements.
virtual GCOMBvc * clone(void) const
Clone COMPTEL Solar System Barycentre Data.
GVector m_ssb
Solar System Barycentre vector in celestial system (micro seconds)
double mjd(void) const
Return time in Modified Julian Days (TT)
std::string parformat(const std::string &s, const int &indent=0)
Convert string in parameter format.
const double & tdelta(void) const
Return TDB-UTC time difference.
int m_tics
Tics of Solar System Barycentre Data.
std::string utc(const int &precision=0) const
Return time as string in UTC time system.
void free_members(void)
Delete class members.
GCOMBvc & operator=(const GCOMBvc &bvc)
Assignment operator.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.