From b21067b487918767cecf020f235a8bcf30ccf29f Mon Sep 17 00:00:00 2001 From: Nathan Kelley-Hoskins Date: Wed, 8 Oct 2014 14:34:40 +0200 Subject: [PATCH] first attempt at different conversion --- src/ctselect/ctselect.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ctselect/ctselect.cpp b/src/ctselect/ctselect.cpp index 53675ed..6881c78 100644 --- a/src/ctselect/ctselect.cpp +++ b/src/ctselect/ctselect.cpp @@ -59,7 +59,6 @@ ctselect::ctselect(void) : GApplication(CTSELECT_NAME, CTSELECT_VERSION) // Write header into logger log_header(); - printf( "ctselect::ctselect() BLAHBLAHBLAH\n" ) ; // Return return; @@ -546,8 +545,10 @@ 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().convert(m_cta_ref); + //double tmax = gti.tstop().convert(m_cta_ref); + double tmin = gti.tstart().convert(gti.reference()).secs() ; + double tmax = gti.tstop( ).convert(gti.reference()).secs() ; // Format time with sufficient accuracy and add to selection string sprintf(cmin, "%.8f", tmin); -- libgit2 0.21.4