From 5e271e1d2859c72ea07360300b22ecab94fc81b7 Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Mon, 7 Feb 2011 16:22:25 +0000 Subject: [PATCH] use new GCTAEventsCube constructor that requires also energy boundaries and GTIs --- src/ctbin/ctbin.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ctbin/ctbin.cpp b/src/ctbin/ctbin.cpp index 53f26ab..eb2d561 100644 --- a/src/ctbin/ctbin.cpp +++ b/src/ctbin/ctbin.cpp @@ -271,6 +271,16 @@ void ctbin::run(void) } // endfor: looped over observations + // Write observation(s) into logger + if (logTerse()) { + log << std::endl; + if (m_obs.size() > 1) + log.header1("Binned observations"); + else + log.header1("Binned observation"); + log << m_obs << std::endl; + } + // Return return; } @@ -460,7 +470,7 @@ void ctbin::bin_events(GCTAObservation* obs) } // Create events cube from sky map - GCTAEventCube cube(map); + GCTAEventCube cube(map, obs->ebounds(), obs->gti()); // Replace event list by event cube in observation obs->events(&cube); -- libgit2 0.21.4