Commit e07448611808198286dd9c7610742b7387d38bf1
1 parent
1d30baa7
Set ctbin reference time to CTA reference time (#1922)
Showing
3 changed files
with
9 additions
and
3 deletions
ChangeLog
NEWS
| 1 | 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 | 6 | Introduction |
| ... | ... | @@ -94,6 +94,8 @@ The save() method led to a segmentation violation in case it was applied on an |
| 94 | 94 | empty ctbin instance, and specifically in case that the instance contains an |
| 95 | 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 | 100 | ctlike - Maximum likelihood fitting |
| 99 | 101 | ----------------------------------- | ... | ... |
src/ctbin/ctbin.cpp
| 1 | 1 | /*************************************************************************** |
| 2 | 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 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -361,6 +361,9 @@ void ctbin::init_members(void) |
| 361 | 361 | m_ontime = 0.0; |
| 362 | 362 | m_livetime = 0.0; |
| 363 | 363 | |
| 364 | + // Set CTA reference time | |
| 365 | + m_gti.reference(m_cta_ref); | |
| 366 | + | |
| 364 | 367 | // Return |
| 365 | 368 | return; |
| 366 | 369 | } | ... | ... |