From a1e9021552dbd83cfe6a19bfab0d157f7cb9b031 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 12 Mar 2015 21:11:25 +0100 Subject: [PATCH] Dump accumulated livetime --- src/ctbkgcube/ctbkgcube.cpp | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/src/ctbkgcube/ctbkgcube.cpp b/src/ctbkgcube/ctbkgcube.cpp index 56d8647..da6a057 100644 --- a/src/ctbkgcube/ctbkgcube.cpp +++ b/src/ctbkgcube/ctbkgcube.cpp @@ -341,6 +341,12 @@ void ctbkgcube::run(void) } // endfor: looped over observations + // Log results + if (logTerse()) { + log << gammalib::parformat("Accumulated livetime"); + log << m_livetime << " sec" << std::endl; + } + // Re-normalize cube to get units of counts/MeV/s/sr if (m_livetime > 0.0) { -- libgit2 0.21.4