37#define G_DIR_GET "GCOSEventBin::dir()"
38#define G_CHI_GET "GCOSEventBin::chi()"
39#define G_PSI_GET "GCOSEventBin::psi()"
40#define G_PHI_GET "GCOSEventBin::phi()"
41#define G_ENERGY_GET "GCOSEventBin::energy()"
42#define G_TIME_GET "GCOSEventBin::time()"
43#define G_COUNTS_GET "GCOSEventBin::counts()"
44#define G_SOLIDANGLE_GET "GCOSEventBin::solidangle()"
45#define G_PHIWIDTH_GET "GCOSEventBin::phiwidth()"
46#define G_EWIDTH_GET "GCOSEventBin::ewidth()"
47#define G_ONTIME_GET "GCOSEventBin::ontime()"
48#define G_DIR_SET1 "GCOSEventBin::dir(GCOSInstDir&)"
49#define G_DIR_SET2 "GCOSEventBin::dir(double&, double&, double&)"
50#define G_ENERGY_SET "GCOSEventBin::energy(GEnergy&)"
51#define G_TIME_SET "GCOSEventBin::time(GTime&)"
52#define G_COUNTS_SET "GCOSEventBin::counts(double&)"
53#define G_SOLIDANGLE_SET "GCOSEventBin::solidangle(double&)"
54#define G_PHIWIDTH_SET "GCOSEventBin::phiwidth(double&)"
55#define G_EWIDTH_SET "GCOSEventBin::ewidth(GEnergy&)"
56#define G_ONTIME_SET "GCOSEventBin::ontime(double&)"
229 std::string msg =
"No memory has been allocated from which the "
230 "instrument direction could be retrieved.";
253 std::string msg =
"No memory has been allocated from which the "
254 "scatter direction Chi could be retrieved.";
277 std::string msg =
"No memory has been allocated from which the "
278 "scatter direction Psi could be retrieved.";
301 std::string msg =
"No memory has been allocated from which the "
302 "scatter angle Phi could be retrieved.";
325 std::string msg =
"No memory has been allocated from which the energy "
326 "could be retrieved.";
349 std::string msg =
"No memory has been allocated from which the time "
350 "could be retrieved.";
373 std::string msg =
"No memory has been allocated from which the counts "
374 "could be retrieved.";
420 std::string msg =
"No memory has been allocated from which the solid "
421 "angle could be retrieved.";
444 std::string msg =
"No memory has been allocated from which the Phi "
445 "width could be retrieved.";
468 std::string msg =
"No memory has been allocated from which the energy "
469 "width could be retrieved.";
492 std::string msg =
"No memory has been allocated from which the "
493 "ontime could be retrieved.";
516 std::string msg =
"No memory has been allocated to store the "
517 "instrument direction.";
549 std::string msg =
"No memory has been allocated to store the "
550 "Chi, Psi and Phi values.";
581 std::string msg =
"No memory has been allocated to store the energy.";
607 std::string msg =
"No memory has been allocated to store the time.";
633 std::string msg =
"No memory has been allocated to store the counts.";
659 std::string msg =
"No memory has been allocated to store the solid "
686 std::string msg =
"No memory has been allocated to store the Phi "
712 std::string msg =
"No memory has been allocated to store the energy "
739 std::string msg =
"No memory has been allocated to store the ontime.";
COSI event bin class definition.
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.
COSI instrument direction class.
void phi(const double &phi)
Set event Compton scatter angle.
virtual void clear(void)
Clear COSI instrument direction.
void dir(const GSkyDir &dir)
Set event scatter direction in celestial coordinates.
Class that handles energies in a unit independent way.
double MeV(void) const
Return energy in MeV.
void clear(void)
Clear instance.
Abstract interface for the event bin class.
void free_members(void)
Delete class members.
virtual GEventBin & operator=(const GEventBin &bin)
Assignment operator.
void init_members(void)
Initialise class members.
void free_members(void)
Delete class members.
void init_members(void)
Initialise class members.
void clear(void)
Clear time.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.