27 #ifndef GSPIEVENTBIN_HPP
28 #define GSPIEVENTBIN_HPP
77 virtual void clear(
void);
79 virtual std::string
classname(
void)
const;
80 virtual double size(
void)
const;
84 virtual double counts(
void)
const;
85 virtual double error(
void)
const;
91 const double&
ontime(
void)
const;
93 const int&
index(
void)
const;
94 const int&
ipt(
void)
const;
95 const int&
idir(
void)
const;
96 const int&
iebin(
void)
const;
130 return (
"GSPIEventBin");
GEnergy * m_energy
Pointer to energy of bin.
GSPIInstDir * m_dir
Pointer to direction of bin.
virtual double counts(void) const
Return number of counts.
virtual ~GSPIEventBin(void)
Destructor.
virtual const GEnergy & energy(void) const
Return energy.
double * m_livetime
Pointer to livetime of bin.
const int & idir(void) const
Return event bin direction index.
const double & livetime(void) const
Return livetime of event bin.
Abstract interface for the event bin class.
virtual double error(void) const
Return error in number of counts.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print event information.
Abstract event bin base class definition.
int m_idir
Direction index.
virtual void clear(void)
Clear INTEGRAL/SPI event bin.
const int & index(void) const
Return event bin index.
virtual const GSPIInstDir & dir(void) const
Return instrument direction.
int m_index
Dataspace index.
virtual GSPIEventBin & operator=(const GSPIEventBin &bin)
Assignment operator.
virtual const GTime & time(void) const
Return time.
INTEGRAL/SPI instrument direction class.
virtual double size(void) const
Return size of event bin.
INTEGRAL/SPI event bin container class.
bool m_alloc
Signals proper memory allocation.
void free_members(void)
Delete class members.
double * m_ontime
Pointer to ontime of bin.
void init_members(void)
Initialise class members.
virtual GSPIEventBin * clone(void) const
Clone event bin.
const int & ipt(void) const
Return event bin pointing index.
double * m_size
Pointer to size of bin.
const int & iebin(void) const
Return event bin energy index.
double * m_models
Pointer to models of bin.
GTime * m_time
Pointer to time of bin.
double * m_counts
Pointer to number of counts.
int m_iebin
Energy bin index.
INTEGRAL/SPI event bin class.
virtual std::string classname(void) const
Return class name.
void copy_members(const GSPIEventBin &bin)
Copy class members.
const double & model(const int &index) const
Return model value.
const double & ontime(void) const
Return ontime of event bin.
INTEGRAL/SPI instrument direction class definition.
GSPIEventBin(void)
Void constructor.
int m_num_models
Number of models in bin.
Class that handles energies in a unit independent way.