From a8dbfe3590ec41d4b7608cca477092428c31f3df Mon Sep 17 00:00:00 2001 From: Nathan Kelley-Hoskins Date: Wed, 8 Oct 2014 18:11:49 +0200 Subject: [PATCH] back to normal buggy fits time conversion --- src/ctselect/ctselect.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ctselect/ctselect.cpp b/src/ctselect/ctselect.cpp index 65b9e9c..f462b35 100644 --- a/src/ctselect/ctselect.cpp +++ b/src/ctselect/ctselect.cpp @@ -545,10 +545,8 @@ void ctselect::select_events(GCTAObservation* obs, const std::string& filename) // Extract effective time interval in CTA reference time. We need // 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() ; //.secs() ; + double tmin = gti.tstart().convert(m_cta_ref); + double tmax = gti.tstop().convert(m_cta_ref); // Format time with sufficient accuracy and add to selection string sprintf(cmin, "%.8f", tmin); -- libgit2 0.21.4