27#ifndef GCOMEVENTBIN_HPP
28#define GCOMEVENTBIN_HPP
64 virtual void clear(
void);
66 virtual std::string
classname(
void)
const;
67 virtual double size(
void)
const;
71 virtual double counts(
void)
const;
72 virtual double error(
void)
const;
77 const int&
index(
void)
const;
80 const double&
ontime(
void)
const;
116 return (
"GCOMEventBin");
COMPTEL instrument direction class definition.
Energy value class definition.
Abstract event bin base class definition.
Time class interface definition.
GEnergy * m_ewidth
Pointer to energy width of bin.
double * m_counts
Pointer to number of counts.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print event information.
virtual const GTime & time(void) const
Return time of event bin.
void init_members(void)
Initialise class members.
GTime * m_time
Pointer to bin time.
GCOMInstDir * m_dir
Pointer to bin direction.
GCOMEventBin(void)
Void constructor.
double * m_ontime
Pointer to ontime of bin (seconds)
const double & ontime(void) const
Return ontime of event bin.
virtual const GCOMInstDir & dir(void) const
Return instrument direction of event bin.
virtual GCOMEventBin & operator=(const GCOMEventBin &bin)
Assignment operator.
virtual std::string classname(void) const
Return class name.
double * m_solidangle
Pointer to solid angle of pixel (sr)
const int & index(void) const
Return bin index.
virtual double error(void) const
Return error in number of counts.
const GEnergy & ewidth(void) const
Return energy width of event bin.
virtual double size(void) const
Return size of event bin.
int m_index
Dataspace index.
virtual const GEnergy & energy(void) const
Return energy of event bin.
void copy_members(const GCOMEventBin &bin)
Copy class members.
virtual GCOMEventBin * clone(void) const
Clone instance.
virtual void clear(void)
Clear instance.
virtual double counts(void) const
Return number of counts in event bin.
bool m_alloc
Signals proper memory allocation.
virtual ~GCOMEventBin(void)
Destructor.
GEnergy * m_energy
Pointer to bin energy.
const double & solidangle(void) const
Return solid angle of event bin.
void free_members(void)
Delete class members.
COMPTEL event bin container class.
Interface for the COMPTEL instrument direction class.
Class that handles energies in a unit independent way.
Abstract interface for the event bin class.