247 static float buffer[2];
254 u_int64_t
hash; std::memcpy(&hash, &buffer,
sizeof hash);
bool m_has_detx
Has valid instrument coordinate X.
virtual ~GCTAInstDir(void)
Destructor.
const double & dety(void) const
Return reference to DETY coordinate (in radians)
double dec_deg(void) const
Returns Declination in degrees.
bool m_has_dir
Has valid incident direction.
const double & detx(void) const
Return reference to DETX coordinate (in radians)
virtual GInstDir & operator=(const GInstDir &dir)
Assignment operator.
void free_members(void)
Delete class members.
GCTAInstDir & operator=(const GCTAInstDir &dir)
Assignment operator.
const double & ra(void) const
Return Right Ascension in radians.
const GSkyDir & dir(void) const
Return reference to sky direction (const version)
Abstract instrument direction base class.
double m_dety
Instrument coordinate Y (radians)
void init_members(void)
Initialise class members.
double m_detx
Instrument coordinate X (radians)
bool m_has_dety
Has valid instrument coordinate Y.
CTA instrument direction class interface definition.
double ra_deg(void) const
Returns Right Ascension in degrees.
const double & dec(void) const
Return Declination in radians.
GCTAInstDir(void)
Void constructor.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print instrument direction information.
virtual GCTAInstDir * clone(void) const
CTA instrument direction.
virtual void clear(void)
Clear CTA instrument direction.
void clear(void)
Clear sky direction.
GSkyDir m_dir
Observed incident direction of event.
void init_members(void)
Initialise class members.
void copy_members(const GCTAInstDir &dir)
Copy class members.
CTA instrument direction class.
void free_members(void)
Delete class members.
virtual u_int64_t hash(void) const
Return instrument direction hash value.
Mathematical function definitions.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.