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 ===");
COMPTEL instrument direction class definition.
Interface for the COMPTEL instrument direction class.
const GSkyDir & dir(void) const
Return event scatter direction.
virtual ~GCOMInstDir(void)
Destructor.
GSkyDir m_dir
Observed scatter direction of event.
const double & phibar(void) const
Return event Compton scatter angle.
void copy_members(const GCOMInstDir &dir)
Copy class members.
virtual u_int64_t hash(void) const
Return instrument direction hash value.
virtual void clear(void)
Clear instance.
virtual GCOMInstDir * clone(void) const
Clone instance.
GCOMInstDir & operator=(const GCOMInstDir &dir)
Assignment operator.
double m_phibar
Observed scatter angle of event.
void free_members(void)
Delete class members.
void init_members(void)
Initialise class members.
GCOMInstDir(void)
Void constructor.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print instrument direction information.
Abstract instrument direction base class.
virtual GInstDir & operator=(const GInstDir &dir)
Assignment operator.
void init_members(void)
Initialise class members.
void free_members(void)
Delete class members.
const double & dec(void) const
Return Declination in radians.
void clear(void)
Clear sky direction.
std::string print(const GChatter &chatter=NORMAL) const
Print sky direction information.
const double & ra(void) const
Return Right Ascension in radians.
std::string parformat(const std::string &s, const int &indent=0)
Convert string in parameter format.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.