37 #define G_DIR_GET "GCOMEventBin::dir()"
38 #define G_ENERGY_GET "GCOMEventBin::energy()"
39 #define G_TIME_GET "GCOMEventBin::time()"
40 #define G_COUNTS_GET "GCOMEventBin::counts()"
41 #define G_SOLIDANGLE_GET "GCOMEventBin::solidangle()"
42 #define G_EWIDTH_GET "GCOMEventBin::ewidth()"
43 #define G_ONTIME_GET "GCOMEventBin::ontime()"
44 #define G_DIR_SET "GCOMEventBin::dir(GCOMInstDir&)"
45 #define G_ENERGY_SET "GCOMEventBin::energy(GEnergy&)"
46 #define G_TIME_SET "GCOMEventBin::time(GTime&)"
47 #define G_COUNTS_SET "GCOMEventBin::counts(double&)"
48 #define G_SOLIDANGLE_SET "GCOMEventBin::solidangle(double&)"
49 #define G_EWIDTH_SET "GCOMEventBin::ewidth(GEnergy&)"
50 #define G_ONTIME_SET "GCOMEventBin::ontime(double&)"
220 std::string msg =
"No valid instrument direction found in event bin";
243 std::string msg =
"No valid energy found in event bin";
266 std::string msg =
"No valid time found in event bin";
289 std::string msg =
"No valid counts found in event bin";
335 std::string msg =
"No valid solid angle found in event bin";
358 std::string msg =
"No valid energy width found in event bin";
381 std::string msg =
"No valid ontime found in event bin";
404 std::string msg =
"No memory available to hold instrument direction.";
430 std::string msg =
"No memory available to hold energy.";
456 std::string msg =
"No memory available to hold time.";
482 std::string msg =
"No memory available to hold counts.";
508 std::string msg =
"No memory available to hold solid angle.";
534 std::string msg =
"No memory available to hold energy width.";
560 std::string msg =
"No memory available to hold ontime.";
const double & ontime(void) const
Return ontime of event bin.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print event information.
int m_index
Dataspace index.
GCOMInstDir * m_dir
Pointer to bin direction.
Abstract interface for the event bin class.
virtual double error(void) const
Return error in number of counts.
GTime * m_time
Pointer to bin time.
void copy_members(const GCOMEventBin &bin)
Copy class members.
void clear(void)
Clear time.
double MeV(void) const
Return energy in MeV.
virtual const GTime & time(void) const
Return time of event bin.
void free_members(void)
Delete class members.
virtual void clear(void)
Clear instance.
COMPTEL event bin class interface definition.
virtual GCOMEventBin * clone(void) const
Clone instance.
double * m_ontime
Pointer to ontime of bin (seconds)
virtual ~GCOMEventBin(void)
Destructor.
const GEnergy & ewidth(void) const
Return energy width of event bin.
bool m_alloc
Signals proper memory allocation.
GVector sqrt(const GVector &vector)
Computes square root of vector elements.
GEnergy * m_ewidth
Pointer to energy width of bin.
const double & solidangle(void) const
Return solid angle of event bin.
virtual GCOMEventBin & operator=(const GCOMEventBin &bin)
Assignment operator.
void init_members(void)
Initialise class members.
void free_members(void)
Delete class members.
virtual void clear(void)
Clear instance.
virtual double counts(void) const
Return number of counts in event bin.
void init_members(void)
Initialise class members.
virtual const GCOMInstDir & dir(void) const
Return instrument direction of event bin.
GEnergy * m_energy
Pointer to bin energy.
void free_members(void)
Delete class members.
double * m_counts
Pointer to number of counts.
GCOMEventBin(void)
Void constructor.
virtual GEventBin & operator=(const GEventBin &bin)
Assignment operator.
virtual double size(void) const
Return size of event bin.
void init_members(void)
Initialise class members.
void clear(void)
Clear instance.
Interface for the COMPTEL instrument direction class.
Class that handles energies in a unit independent way.
double * m_solidangle
Pointer to solid angle of pixel (sr)
virtual const GEnergy & energy(void) const
Return energy of event bin.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.