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