diff --git a/src/ctbin/ctbin.cpp b/src/ctbin/ctbin.cpp index dfb5c3a..348b567 100755 --- a/src/ctbin/ctbin.cpp +++ b/src/ctbin/ctbin.cpp @@ -404,6 +404,7 @@ void ctbin::init_members(void) // Initialise members m_outcube.clear(); m_usepnt = false; + m_stack = true; m_publish = false; m_chatter = static_cast(2); @@ -434,6 +435,7 @@ void ctbin::copy_members(const ctbin& app) // Copy attributes m_outcube = app.m_outcube; m_usepnt = app.m_usepnt; + m_stack = app.m_stack; m_publish = app.m_publish; m_chatter = app.m_chatter; @@ -491,6 +493,9 @@ void ctbin::get_parameters(void) // Get energy boundaries m_ebounds = cube.ebounds(); + // Get stack parameter + m_stack = (*this)["stack"].boolean(); + // Get remaining parameters m_publish = (*this)["publish"].boolean(); m_chatter = static_cast((*this)["chatter"].integer()); diff --git a/src/ctbin/ctbin.hpp b/src/ctbin/ctbin.hpp index 21cd9ab..7935172 100755 --- a/src/ctbin/ctbin.hpp +++ b/src/ctbin/ctbin.hpp @@ -91,6 +91,7 @@ protected: // User parameters GFilename m_outcube; //!< Output counts map file name bool m_usepnt; //!< Use pointing instead of xref/yref parameters + bool m_stack; //!< Output one stacked cube or multiple cubes bool m_publish; //!< Publish counts cube? GChatter m_chatter; //!< Chattiness diff --git a/src/ctbin/ctbin.par b/src/ctbin/ctbin.par index 2a6c521..e801c94 100755 --- a/src/ctbin/ctbin.par +++ b/src/ctbin/ctbin.par @@ -18,6 +18,7 @@ #=================== inobs, f, a, events.fits,,, "Input event list or observation definition XML file" outcube, f, a, cntcube.fits,,, "Output counts cube file" +stack, b, h, yes,,, "Stack events to one cube?" # # Energy binning parameters