Commit e07448611808198286dd9c7610742b7387d38bf1

Authored by Jürgen Knödlseder
1 parent 1d30baa7

Set ctbin reference time to CTA reference time (#1922)

ChangeLog
1 -2016-12-12 1 +2017-01-03
2 2
3 * Version 1.2.0 released 3 * Version 1.2.0 released
4 ======================== 4 ========================
5 5
  6 + Set ctbin reference time to CTA reference time (#1922)
6 Change ds9file parameter to outds9file 7 Change ds9file parameter to outds9file
7 Add cssrcdetect script (#1617) 8 Add cssrcdetect script (#1617)
8 Add background subtraction to ctskymap tool (#1882) 9 Add background subtraction to ctskymap tool (#1882)
1 New Features and Important Changes in ctools 1.2.0 1 New Features and Important Changes in ctools 1.2.0
2 2
3 -26 January 2017 3 +3 February 2017
4 4
5 5
6 Introduction 6 Introduction
@@ -94,6 +94,8 @@ The save() method led to a segmentation violation in case it was applied on an @@ -94,6 +94,8 @@ The save() method led to a segmentation violation in case it was applied on an
94 empty ctbin instance, and specifically in case that the instance contains an 94 empty ctbin instance, and specifically in case that the instance contains an
95 empty observation container. This bug has been fixed (#1835). 95 empty observation container. This bug has been fixed (#1835).
96 96
  97 +The reference time is now set to the CTA reference type (#1922).
  98 +
97 99
98 ctlike - Maximum likelihood fitting 100 ctlike - Maximum likelihood fitting
99 ----------------------------------- 101 -----------------------------------
src/ctbin/ctbin.cpp
1 /*************************************************************************** 1 /***************************************************************************
2 * ctbin - Event binning tool * 2 * ctbin - Event binning tool *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2016 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2017 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -361,6 +361,9 @@ void ctbin::init_members(void) @@ -361,6 +361,9 @@ void ctbin::init_members(void)
361 m_ontime = 0.0; 361 m_ontime = 0.0;
362 m_livetime = 0.0; 362 m_livetime = 0.0;
363 363
  364 + // Set CTA reference time
  365 + m_gti.reference(m_cta_ref);
  366 +
364 // Return 367 // Return
365 return; 368 return;
366 } 369 }