Commit 7ca1a3a692aaed9518f875a6c12c9b201135bf6c
1 parent
20377616
reformatted the working code
Showing
1 changed file
with
2 additions
and
3 deletions
src/ctselect/ctselect.cpp
| ... | ... | @@ -547,9 +547,8 @@ void ctselect::select_events(GCTAObservation* obs, const std::string& filename) |
| 547 | 547 | // this reference for filtering. |
| 548 | 548 | // Needs to be gti.reference() so it uses the fits file's time |
| 549 | 549 | // reference. |
| 550 | - GTimeReference ref = gti.reference() ; | |
| 551 | - double tmin = gti.tstart().convert( ref ) ; | |
| 552 | - double tmax = gti.tstop( ).convert( ref ) ; | |
| 550 | + double tmin = gti.tstart().convert( gti.reference() ) ; | |
| 551 | + double tmax = gti.tstop( ).convert( gti.reference() ) ; | |
| 553 | 552 | |
| 554 | 553 | // Format time with sufficient accuracy and add to selection string |
| 555 | 554 | sprintf(cmin, "%.8f", tmin); | ... | ... |