From e07448611808198286dd9c7610742b7387d38bf1 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Fri, 3 Feb 2017 14:01:45 +0100 Subject: [PATCH] Set ctbin reference time to CTA reference time (#1922) --- ChangeLog | 3 ++- NEWS | 4 +++- src/ctbin/ctbin.cpp | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index fd1b10b..a00cabb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,9 @@ -2016-12-12 +2017-01-03 * Version 1.2.0 released ======================== + Set ctbin reference time to CTA reference time (#1922) Change ds9file parameter to outds9file Add cssrcdetect script (#1617) Add background subtraction to ctskymap tool (#1882) diff --git a/NEWS b/NEWS index 3dc8aec..496e468 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,6 @@ New Features and Important Changes in ctools 1.2.0 -26 January 2017 +3 February 2017 Introduction @@ -94,6 +94,8 @@ The save() method led to a segmentation violation in case it was applied on an empty ctbin instance, and specifically in case that the instance contains an empty observation container. This bug has been fixed (#1835). +The reference time is now set to the CTA reference type (#1922). + ctlike - Maximum likelihood fitting ----------------------------------- diff --git a/src/ctbin/ctbin.cpp b/src/ctbin/ctbin.cpp index d2a75e7..56a8975 100644 --- a/src/ctbin/ctbin.cpp +++ b/src/ctbin/ctbin.cpp @@ -1,7 +1,7 @@ /*************************************************************************** * ctbin - Event binning tool * * ----------------------------------------------------------------------- * - * copyright (C) 2010-2016 by Juergen Knoedlseder * + * copyright (C) 2010-2017 by Juergen Knoedlseder * * ----------------------------------------------------------------------- * * * * This program is free software: you can redistribute it and/or modify * @@ -361,6 +361,9 @@ void ctbin::init_members(void) m_ontime = 0.0; m_livetime = 0.0; + // Set CTA reference time + m_gti.reference(m_cta_ref); + // Return return; } -- libgit2 0.21.4