Commit c0222b87932e8c9fcf30479d122fd8a033e65c1e

Authored by Jürgen Knödlseder
1 parent 42f7b035

Precompute delta cache after constructing objects.

Showing 1 changed file with 6 additions and 0 deletions
inst/cta/src/GCTACubePsf.cpp
... ... @@ -142,6 +142,9 @@ GCTACubePsf::GCTACubePsf(const GCTAEventCube& cube, const double& dmax,
142 142 m_deltas.append(delta);
143 143 }
144 144  
  145 + // Set delta node array for computation
  146 + set_delta_axis();
  147 +
145 148 // Compute number of sky maps
146 149 int nmaps = m_ebounds.size() * m_deltas.size();
147 150  
... ... @@ -214,6 +217,9 @@ GCTACubePsf::GCTACubePsf(const std::string& wcs,
214 217 m_deltas.append(delta);
215 218 }
216 219  
  220 + // Set delta node array for computation
  221 + set_delta_axis();
  222 +
217 223 // Compute number of sky maps
218 224 int nmaps = m_ebounds.size() * m_deltas.size();
219 225  
... ...