Commit 8504dd70433e11da916c22a92eef0a2029e12b27

Authored by Jürgen Knödlseder
2 parents 1f796dc1 de1feffa

Merge branch '1329-ctselect-fits-time-conversion' into integration

Showing 1 changed file with 4 additions and 4 deletions
src/ctselect/ctselect.cpp
... ... @@ -543,10 +543,10 @@ void ctselect::select_events(GCTAObservation* obs, const std::string& filename)
543 543 // Make time selection
544 544 if (select_time) {
545 545  
546   - // Extract effective time interval in CTA reference time. We need
547   - // this reference for filtering.
548   - double tmin = gti.tstart().convert(m_cta_ref);
549   - double tmax = gti.tstop().convert(m_cta_ref);
  546 + // Extract effective time interval in the reference time of the
  547 + // event list. We get this reference time from gti.reference().
  548 + double tmin = gti.tstart().convert(gti.reference());
  549 + double tmax = gti.tstop().convert(gti.reference());
550 550  
551 551 // Format time with sufficient accuracy and add to selection string
552 552 sprintf(cmin, "%.8f", tmin);
... ...