Commit c94ef3cb4a6697a4de771a98d84d75841318abbd
1 parent
85a64c38
Correctly compute energy boundaries in GCTAAeff2D class (#2674)
Showing
1 changed file
with
4 additions
and
4 deletions
inst/cta/src/GCTAAeff2D.cpp
| ... | ... | @@ -731,10 +731,10 @@ void GCTAAeff2D::set_boundaries(void) |
| 731 | 731 | int ntheta = m_aeff.axis_bins(m_inx_theta); |
| 732 | 732 | |
| 733 | 733 | // Get energy boundaries |
| 734 | - GEnergy emin(m_aeff.axis_lo(m_inx_aeff, 0), | |
| 735 | - m_aeff.axis_lo_unit(m_inx_aeff)); | |
| 736 | - GEnergy emax(m_aeff.axis_hi(m_inx_aeff, neng-1), | |
| 737 | - m_aeff.axis_hi_unit(m_inx_aeff)); | |
| 734 | + GEnergy emin(m_aeff.axis_lo(m_inx_energy, 0), | |
| 735 | + m_aeff.axis_lo_unit(m_inx_energy)); | |
| 736 | + GEnergy emax(m_aeff.axis_hi(m_inx_energy, neng-1), | |
| 737 | + m_aeff.axis_hi_unit(m_inx_energy)); | |
| 738 | 738 | |
| 739 | 739 | // Set energy boundaries |
| 740 | 740 | m_ebounds.append(emin, emax); | ... | ... |