Commit 1a69cac1a46deb5fbe830798c6f53b0d04e19d04

Authored by Nathan Kelley-Hoskins
1 parent f0b7e1de

convert using gti's time reference

Showing 1 changed file with 2 additions and 2 deletions
src/ctselect/ctselect.cpp
... ... @@ -547,8 +547,8 @@ void ctselect::select_events(GCTAObservation* obs, const std::string& filename)
547 547 // this reference for filtering.
548 548 //double tmin = gti.tstart().convert(m_cta_ref);
549 549 //double tmax = gti.tstop().convert(m_cta_ref);
550   - double tmin = gti.tstart().secs() ;
551   - double tmax = gti.tstop( ).secs() ;
  550 + double tmin = gti.tstart().convert( obs->events()->gti()->tstart()->reference() ) ;
  551 + double tmax = gti.tstop( ).convert( obs->events()->gti()->tstart()->reference() ) ;
552 552  
553 553 // Format time with sufficient accuracy and add to selection string
554 554 sprintf(cmin, "%.8f", tmin);
... ...