From 1a69cac1a46deb5fbe830798c6f53b0d04e19d04 Mon Sep 17 00:00:00 2001 From: Nathan Kelley-Hoskins Date: Wed, 8 Oct 2014 19:03:53 +0200 Subject: [PATCH] convert using gti's time reference --- src/ctselect/ctselect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ctselect/ctselect.cpp b/src/ctselect/ctselect.cpp index a07b08b..a789648 100644 --- a/src/ctselect/ctselect.cpp +++ b/src/ctselect/ctselect.cpp @@ -547,8 +547,8 @@ void ctselect::select_events(GCTAObservation* obs, const std::string& filename) // this reference for filtering. //double tmin = gti.tstart().convert(m_cta_ref); //double tmax = gti.tstop().convert(m_cta_ref); - double tmin = gti.tstart().secs() ; - double tmax = gti.tstop( ).secs() ; + double tmin = gti.tstart().convert( obs->events()->gti()->tstart()->reference() ) ; + double tmax = gti.tstop( ).convert( obs->events()->gti()->tstart()->reference() ) ; // Format time with sufficient accuracy and add to selection string sprintf(cmin, "%.8f", tmin); -- libgit2 0.21.4