From bf3c48ec766b748b5395f0337bdfc1b628c42d62 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Mon, 30 Mar 2015 11:11:57 +0200 Subject: [PATCH] Correctly use incube parameter (see #1371) --- src/ctbkgcube/ctbkgcube.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ctbkgcube/ctbkgcube.cpp b/src/ctbkgcube/ctbkgcube.cpp index acdbb86..731910f 100644 --- a/src/ctbkgcube/ctbkgcube.cpp +++ b/src/ctbkgcube/ctbkgcube.cpp @@ -471,8 +471,11 @@ void ctbkgcube::get_parameters(void) // ... otherwise setup the background cube from the counts map else { + // Load event cube from filename + GCTAEventCube cube(incube); + // Define background cube from file - m_background = GCTACubeBackground(incube); + m_background = GCTACubeBackground(cube); } // endelse: cube was loaded from file -- libgit2 0.21.4