27#ifndef GCOSEVENTBIN_HPP
28#define GCOSEVENTBIN_HPP
76 virtual void clear(
void);
78 virtual std::string
classname(
void)
const;
79 virtual double size(
void)
const;
83 virtual double counts(
void)
const;
84 virtual double error(
void)
const;
89 const int&
index(
void)
const;
90 double chi(
void)
const;
91 double psi(
void)
const;
92 const double&
phi(
void)
const;
96 const double&
ontime(
void)
const;
99 void dir(
const double&
chi,
const double&
psi,
const double&
phi);
135 return (
"GCOSEventBin");
COSI instrument direction class definition.
Energy value class definition.
Abstract event bin base class definition.
Time class interface definition.
virtual std::string classname(void) const
Return class name.
double chi(void) const
Return Galactic longitude of event bin scatter direction Chi.
double * m_ontime
Pointer to ontime of bin (seconds)
double * m_phiwidth
Pointer to Phi width.
const double & phi(void) const
Return event bin scatter angle Phi.
virtual double counts(void) const
Return number of counts in event bin.
virtual double error(void) const
Return error in number of counts.
virtual void clear(void)
Clear COSI event bin.
double psi(void) const
Return Galactic longitude of event bin scatter direction Psi.
virtual const GTime & time(void) const
Return time of event bin.
virtual GCOSEventBin * clone(void) const
Clone event bin.
GEnergy * m_energy
Pointer to bin energy.
void init_members(void)
Initialise class members.
const GEnergy & ewidth(void) const
Return energy width of event bin.
virtual ~GCOSEventBin(void)
Destructor.
virtual GCOSEventBin & operator=(const GCOSEventBin &bin)
Assignment operator.
bool m_alloc
Signals proper memory allocation.
GTime * m_time
Pointer to bin time.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print event information.
const double & ontime(void) const
Return ontime of event bin.
virtual const GCOSInstDir & dir(void) const
Return instrument direction of event bin.
const double & phiwidth(void) const
Return Phi width of event bin.
GEnergy * m_ewidth
Pointer to energy width of bin.
int m_index
Dataspace index.
GCOSInstDir * m_dir
Pointer to bin direction.
void copy_members(const GCOSEventBin &bin)
Copy class members.
double * m_solidangle
Pointer to solid angle of pixel (sr)
virtual double size(void) const
Return size of event bin.
const double & solidangle(void) const
Return solid angle of event bin.
double * m_counts
Pointer to number of counts.
GCOSEventBin(void)
Void constructor.
virtual const GEnergy & energy(void) const
Return energy of event bin.
void free_members(void)
Delete class members.
const int & index(void) const
Return bin index.
COSI event bin container class.
COSI instrument direction class.
Class that handles energies in a unit independent way.
Abstract interface for the event bin class.