Commit be807ea6765d0f454f84680c973626cd28a7a31b

Authored by Nathan Kelley-Hoskins
1 parent 6f6a4e9b

alternate time reference format

Showing 1 changed file with 3 additions and 2 deletions
src/ctselect/ctselect.cpp
... ... @@ -547,8 +547,9 @@ 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().convert( obs->events()->gti().tstart().reference() ) ;
551   - double tmax = gti.tstop( ).convert( obs->events()->gti().tstart().reference() ) ;
  550 + GTimeReference ref = gti.tstart().reference() ;
  551 + double tmin = gti.tstart().convert( ref ) ;
  552 + double tmax = gti.tstop( ).convert( ref ) ;
552 553  
553 554 // Format time with sufficient accuracy and add to selection string
554 555 sprintf(cmin, "%.8f", tmin);
... ...