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");
const double & ontime(void) const
Return ontime of event bin.
const int & index(void) const
Return bin index.
Energy value class definition.
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.
Abstract event bin base class definition.
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.
virtual const GTime & time(void) const
Return time of event bin.
void free_members(void)
Delete class members.
virtual void clear(void)
Clear instance.
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.
virtual std::string classname(void) const
Return class name.
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.
COMPTEL event bin container class.
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.
double * m_counts
Pointer to number of counts.
GCOMEventBin(void)
Void constructor.
COMPTEL instrument direction class definition.
virtual double size(void) const
Return size of event bin.
Time class interface definition.
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.