diff --git a/src/ctselect/ctselect.cpp b/src/ctselect/ctselect.cpp index 238155e..48a2181 100644 --- a/src/ctselect/ctselect.cpp +++ b/src/ctselect/ctselect.cpp @@ -543,12 +543,10 @@ void ctselect::select_events(GCTAObservation* obs, const std::string& filename) // Make time selection if (select_time) { - // Extract effective time interval in CTA reference time. We need - // this reference for filtering. - // Needs to be gti.reference() so it uses the original fits file's - // time reference. - double tmin = gti.tstart().convert( gti.reference() ) ; - double tmax = gti.tstop( ).convert( gti.reference() ) ; + // Extract effective time interval in the reference time of the + // event list. We get this reference time from gti.reference(). + double tmin = gti.tstart().convert(gti.reference()); + double tmax = gti.tstop().convert(gti.reference()); // Format time with sufficient accuracy and add to selection string sprintf(cmin, "%.8f", tmin);