201 static float buffer[2];
205 float shifted_detid = float(
m_detid+10);
208 buffer[0] = float(
m_dir.
ra() + shifted_detid);
209 buffer[1] = float(
m_dir.
dec() + shifted_detid);
212 u_int64_t
hash; std::memcpy(&hash, &buffer,
sizeof hash);
const int & detid(void) const
Return detector identifier.
double dec_deg(void) const
Returns Declination in degrees.
virtual void clear(void)
Clear INTEGRAL/SPI instrument direction.
virtual GInstDir & operator=(const GInstDir &dir)
Assignment operator.
void free_members(void)
Delete class members.
const GSkyDir & dir(void) const
Return pointing direction.
const double & ra(void) const
Return Right Ascension in radians.
INTEGRAL/SPI instrument direction class.
Abstract instrument direction base class.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print INTEGRAL/SPI instrument direction information.
void free_members(void)
Delete class members.
void copy_members(const GSPIInstDir &dir)
Copy class members.
double ra_deg(void) const
Returns Right Ascension in degrees.
const double & dec(void) const
Return Declination in radians.
virtual GSPIInstDir * clone(void) const
Clone INTEGRAL/SPI instrument direction.
GSPIInstDir & operator=(const GSPIInstDir &dir)
Assignment operator.
virtual ~GSPIInstDir(void)
Destructor.
void clear(void)
Clear sky direction.
void init_members(void)
Initialise class members.
void init_members(void)
Initialise class members.
GSPIInstDir(void)
Void constructor.
INTEGRAL/SPI instrument direction class definition.
virtual u_int64_t hash(void) const
Return instrument direction hash value.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.