Commit bf3c48ec766b748b5395f0337bdfc1b628c42d62

Authored by Jürgen Knödlseder
1 parent d43f11d9

Correctly use incube parameter (see #1371)

Showing 1 changed file with 4 additions and 1 deletions
src/ctbkgcube/ctbkgcube.cpp
@@ -471,8 +471,11 @@ void ctbkgcube::get_parameters(void) @@ -471,8 +471,11 @@ void ctbkgcube::get_parameters(void)
471 // ... otherwise setup the background cube from the counts map 471 // ... otherwise setup the background cube from the counts map
472 else { 472 else {
473 473
  474 + // Load event cube from filename
  475 + GCTAEventCube cube(incube);
  476 +
474 // Define background cube from file 477 // Define background cube from file
475 - m_background = GCTACubeBackground(incube); 478 + m_background = GCTACubeBackground(cube);
476 479
477 } // endelse: cube was loaded from file 480 } // endelse: cube was loaded from file
478 481