/***********************************************************************//** * @brief Constructor * * @param[in] map Sky map. * @param[in] weights Event cube weights. * @param[in] ebds Energy boundaries. * @param[in] gti Good Time intervals. * * Constructs instance of events cube from a sky map, a map of weights, * energy boundaries and Good Time Intervals. ***************************************************************************/ GCTAEventCube::GCTAEventCube(const GSkyMap& map, const GSkyMap& weights, const GEbounds& ebds, const GGti& gti) : GEventCube() { // Initialise members init_members(); // Set sky map, energy boundaries and GTI m_map = map; this->ebounds(ebds); this->gti(gti); // Set weight map m_weights = weights; // Set sky directions set_directions(); // Set energies set_energies(); // Set times set_times(); // Return return; }
/***********************************************************************//** * @brief Read energy boundaries from HDU. * * @param[in] hdu Energy boundaries table. * * Read the energy boundaries from the HDU. * * @todo Energy bounds read method should take const GFitsTable* as argument ***************************************************************************/ void GLATEventCube::read_ebds(const GFitsTable& hdu) { // Read energy boundaries m_ebounds.read(hdu); // Set log mean energies and energy widths set_energies(); // Return return; }
/***********************************************************************//** * @brief Read energy boundaries from HDU. * * @param[in] hdu Pointer to energy boundaries table. * * Read the energy boundaries from the HDU. * * @todo Energy bounds read method should take const GFitsTable* as argument ***************************************************************************/ void GCTAEventCube::read_ebds(const GFitsTable* hdu) { // Continue only if HDU is valid if (hdu != NULL) { // Read energy boundaries m_ebounds.read(const_cast<GFitsTable*>(hdu)); // Set log mean energies and energy widths set_energies(); } // endif: HDU was valid // Return return; }