Commit d3c08c716db3c6f97d4afaff50013dea04b1df3f

Authored by Josh Cardenzana
Committed by Jürgen Knödlseder
1 parent 448a10b0

Move cube and GTI initialization to after read_ahead (#2713)

Showing 1 changed file with 4 additions and 0 deletions
src/ctfindvar/ctfindvar.cpp
@@ -714,6 +714,10 @@ void ctfindvar::get_parameters(void) @@ -714,6 +714,10 @@ void ctfindvar::get_parameters(void)
714 (*this)["histtype"].string(); 714 (*this)["histtype"].string();
715 } 715 }
716 716
  717 + // Create GTIs and counts cube
  718 + init_gtis();
  719 + init_cube();
  720 +
717 // Get the energy limits 721 // Get the energy limits
718 m_emin = GEnergy((*this)["emin"].real(), "TeV"); 722 m_emin = GEnergy((*this)["emin"].real(), "TeV");
719 m_emax = GEnergy((*this)["emax"].real(), "TeV"); 723 m_emax = GEnergy((*this)["emax"].real(), "TeV");