27#ifndef GCTAEVENTBIN_HPP
28#define GCTAEVENTBIN_HPP
67 virtual void clear(
void);
69 virtual std::string
classname(
void)
const;
70 virtual double size(
void)
const;
74 virtual double counts(
void)
const;
75 virtual double error(
void)
const;
80 const int&
ipix(
void)
const;
81 const int&
ieng(
void)
const;
86 const double&
ontime(
void)
const;
87 const double&
weight(
void)
const;
127 return (
"GCTAEventBin");
CTA instrument direction class interface definition.
Energy value class definition.
Abstract event bin base class definition.
Time class interface definition.
GCTAEventBin class interface definition.
int m_ieng
Index of energy layer.
double * m_weight
Pointer to weight of bin.
double * m_solidangle
Pointer to solid angle of pixel (sr)
virtual std::string print(const GChatter &chatter=NORMAL) const
Print event information.
virtual double counts(void) const
Return number of counts in event bin.
virtual GCTAEventBin * clone(void) const
Clone event bin.
virtual double size(void) const
Return size of event bin.
const int & ipix(void) const
Return the spatial pixel index.
const int & ieng(void) const
Return the energy layer index.
GEnergy * m_energy
Pointer to bin energy.
double * m_counts
Pointer to number of counts.
const double & weight(void) const
Return weight of event bin.
const GEnergy & ewidth(void) const
Return energy width of event bin.
virtual GCTAEventBin & operator=(const GCTAEventBin &bin)
Assignment operator.
GEnergy * m_ewidth
Pointer to energy width of bin.
void copy_members(const GCTAEventBin &bin)
Copy class members.
GEnergy emax(void) const
Return maximum energy of event bin.
virtual ~GCTAEventBin(void)
Destructor.
GTime * m_time
Pointer to bin time.
virtual const GTime & time(void) const
Return time of event bin.
GCTAEventBin(void)
Void constructor.
virtual const GCTAInstDir & dir(void) const
Return instrument direction of event bin.
void free_members(void)
Delete class members.
virtual std::string classname(void) const
Return class name.
virtual double error(void) const
Return error in number of counts.
const double & ontime(void) const
Return ontime of event bin.
virtual const GEnergy & energy(void) const
Return energy of event bin.
int m_ipix
Index in spatial map.
void init_members(void)
Initialise class members.
GCTAInstDir * m_dir
Pointer to bin direction.
double * m_ontime
Pointer to ontime of bin (seconds)
const double & solidangle(void) const
Return solid angle of event bin.
virtual void clear(void)
Clear eventbin.
GEnergy emin(void) const
Return minimum energy of event bin.
bool m_alloc
Signals proper memory allocation.
CTA event bin container class.
CTA instrument direction class.
Class that handles energies in a unit independent way.
Abstract interface for the event bin class.