38 #define G_DIR "GLATEventBin::dir()"
39 #define G_ENERGY "GLATEventBin::energy()"
40 #define G_TIME "GLATEventBin::time()"
41 #define G_COUNTS_GET "GLATEventBin::counts()"
42 #define G_COUNTS_SET "GLATEventBin::counts(double&)"
43 #define G_SOLIDANGLE "GLATEventBin::solidangle()"
44 #define G_EWIDTH "GLATEventBin::ewidth()"
45 #define G_ONTIME "GLATEventBin::ontime()"
213 std::string msg =
"Invalid instrument direction pointer encountered. "
214 "Please set up the event bin correctly.";
237 std::string msg =
"Invalid energy pointer encountered. Please set up "
238 "the event bin correctly.";
261 std::string msg =
"Invalid time pointer encountered. Please set up "
262 "the event bin correctly.";
285 std::string msg =
"Invalid counts pointer encountered. Please set up "
286 "the event bin correctly.";
309 std::string msg =
"Invalid counts pointer encountered. Please set up "
310 "the event bin correctly.";
359 std::string msg =
"Invalid solid angle pointer encountered. Please "
360 "set up the event bin correctly.";
383 std::string msg =
"Invalid energy width pointer encountered. Please "
384 "set up the event bin correctly.";
407 std::string msg =
"Invalid ontime pointer encountered. Please set up "
408 "the event bin correctly.";
int m_index
Actual skymap index.
Fermi/LAT instrument direction class.
Abstract interface for the event bin class.
double MeV(void) const
Return energy in MeV.
GLATInstDir * m_dir
Pointer to bin direction.
GEnergy * m_ewidth
Pointer to energy width of bin.
virtual double error(void) const
Return error in number of counts.
GEnergy * m_energy
Pointer to bin energy.
virtual GLATEventBin * clone(void) const
Clone event bin.
int m_ipix
Actual spatial index.
const double & solidangle(void) const
Return solid angle of event bin.
Fermi/LAT event bin class.
int m_ieng
Actual energy index.
GVector sqrt(const GVector &vector)
Computes square root of vector elements.
void free_members(void)
Delete class members.
virtual const GEnergy & energy(void) const
Return energy of event bin.
Fermi/LAT event bin class interface definition.
virtual ~GLATEventBin(void)
Destructor.
double * m_solidangle
Pointer to solid angle of pixel (sr)
virtual double size(void) const
Return size of event bin.
const GEnergy & ewidth(void) const
Return energy width of event bin.
virtual const GTime & time(void) const
Return time of event bin.
virtual GLATEventBin & operator=(const GLATEventBin &bin)
Assignment operator.
GLATEventBin(void)
Void constructor.
void init_members(void)
Initialise class members.
void init_members(void)
Initialise class members.
virtual const GLATInstDir & dir(void) const
Return instrument direction of event bin.
const double & ontime(void) const
Return ontime of event bin.
void free_members(void)
Delete class members.
virtual void clear(void)
Clear event bin.
double * m_ontime
Pointer to ontime of bin (seconds)
double * m_counts
Pointer to number of counts.
void copy_members(const GLATEventBin &bin)
Copy class members.
virtual double counts(void) const
Return number of counts in event bin.
void free_members(void)
Delete class members.
Exception handler interface definition.
virtual GEventBin & operator=(const GEventBin &bin)
Assignment operator.
GLATEventCube * m_cube
Event cube back pointer.
GTime * m_time
Pointer to bin time.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print event information.
void init_members(void)
Initialise class members.
Class that handles energies in a unit independent way.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.