Commit f0517f5c0fbdc776df0a9c72f1eb97c6bf123cc3

Authored by L. Tibaldo
1 parent 3d73c003

changed model gamma and background to use ero binning

inst/cta/src/GCTAOnOffObservation.cpp
... ... @@ -1753,7 +1753,7 @@ GPha GCTAOnOffObservation::model_gamma(const GModels& models) const
1753 1753 GVector dummy_grad(npars);
1754 1754  
1755 1755 // Initialise output Pha
1756   - GEbounds ereco = m_arf.ebounds();
  1756 + GEbounds ereco = m_on_spec.ebounds();
1757 1757 GPha gammas = GPha(ereco);
1758 1758  
1759 1759 // Loop over all energy bins
... ... @@ -1788,7 +1788,7 @@ GPha GCTAOnOffObservation::model_background(const GModels& models) const
1788 1788 GVector dummy_grad(npars);
1789 1789  
1790 1790 // Initialise output Pha
1791   - GEbounds ereco = m_arf.ebounds();
  1791 + GEbounds ereco = m_on_spec.ebounds();
1792 1792 GPha bgds = GPha(ereco);
1793 1793  
1794 1794 // Extract statistic for this observation
... ...