Commit f0517f5c0fbdc776df0a9c72f1eb97c6bf123cc3
1 parent
3d73c003
changed model gamma and background to use ero binning
Showing
1 changed file
with
2 additions
and
2 deletions
inst/cta/src/GCTAOnOffObservation.cpp
| @@ -1753,7 +1753,7 @@ GPha GCTAOnOffObservation::model_gamma(const GModels& models) const | @@ -1753,7 +1753,7 @@ GPha GCTAOnOffObservation::model_gamma(const GModels& models) const | ||
| 1753 | GVector dummy_grad(npars); | 1753 | GVector dummy_grad(npars); |
| 1754 | 1754 | ||
| 1755 | // Initialise output Pha | 1755 | // Initialise output Pha |
| 1756 | - GEbounds ereco = m_arf.ebounds(); | 1756 | + GEbounds ereco = m_on_spec.ebounds(); |
| 1757 | GPha gammas = GPha(ereco); | 1757 | GPha gammas = GPha(ereco); |
| 1758 | 1758 | ||
| 1759 | // Loop over all energy bins | 1759 | // Loop over all energy bins |
| @@ -1788,7 +1788,7 @@ GPha GCTAOnOffObservation::model_background(const GModels& models) const | @@ -1788,7 +1788,7 @@ GPha GCTAOnOffObservation::model_background(const GModels& models) const | ||
| 1788 | GVector dummy_grad(npars); | 1788 | GVector dummy_grad(npars); |
| 1789 | 1789 | ||
| 1790 | // Initialise output Pha | 1790 | // Initialise output Pha |
| 1791 | - GEbounds ereco = m_arf.ebounds(); | 1791 | + GEbounds ereco = m_on_spec.ebounds(); |
| 1792 | GPha bgds = GPha(ereco); | 1792 | GPha bgds = GPha(ereco); |
| 1793 | 1793 | ||
| 1794 | // Extract statistic for this observation | 1794 | // Extract statistic for this observation |