199 static float buffer[2];
203 float scaled_phibar = 10.0 * float(
m_phibar);
206 buffer[0] = float(
m_dir.
ra() + scaled_phibar);
207 buffer[1] = float(
m_dir.
dec() + scaled_phibar);
210 u_int64_t
hash; std::memcpy(&hash, &buffer,
sizeof hash);
232 result.append(
"=== GCOMInstDir ===");
void init_members(void)
Initialise class members.
virtual GInstDir & operator=(const GInstDir &dir)
Assignment operator.
void free_members(void)
Delete class members.
std::string print(const GChatter &chatter=NORMAL) const
Print sky direction information.
const double & ra(void) const
Return Right Ascension in radians.
Abstract instrument direction base class.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print instrument direction information.
const double & dec(void) const
Return Declination in radians.
virtual GCOMInstDir * clone(void) const
Clone instance.
const double & phibar(void) const
Return event Compton scatter angle.
const GSkyDir & dir(void) const
Return event scatter direction.
void clear(void)
Clear sky direction.
virtual void clear(void)
Clear instance.
virtual u_int64_t hash(void) const
Return instrument direction hash value.
GSkyDir m_dir
Observed scatter direction of event.
virtual ~GCOMInstDir(void)
Destructor.
double m_phibar
Observed scatter angle of event.
void init_members(void)
Initialise class members.
void copy_members(const GCOMInstDir &dir)
Copy class members.
GCOMInstDir & operator=(const GCOMInstDir &dir)
Assignment operator.
COMPTEL instrument direction class definition.
std::string parformat(const std::string &s, const int &indent=0)
Convert string in parameter format.
GCOMInstDir(void)
Void constructor.
void free_members(void)
Delete class members.
Interface for the COMPTEL instrument direction class.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.