Commit f0b7e1de1cea1883880c03ba01b9796f8aa4f9b5
1 parent
a8dbfe35
convert straight to .secs()
Showing
1 changed file
with
4 additions
and
2 deletions
src/ctselect/ctselect.cpp
| ... | ... | @@ -545,8 +545,10 @@ void ctselect::select_events(GCTAObservation* obs, const std::string& filename) |
| 545 | 545 | |
| 546 | 546 | // Extract effective time interval in CTA reference time. We need |
| 547 | 547 | // this reference for filtering. |
| 548 | - double tmin = gti.tstart().convert(m_cta_ref); | |
| 549 | - double tmax = gti.tstop().convert(m_cta_ref); | |
| 548 | + //double tmin = gti.tstart().convert(m_cta_ref); | |
| 549 | + //double tmax = gti.tstop().convert(m_cta_ref); | |
| 550 | + double tmin = gti.tstart().secs() ; | |
| 551 | + double tmax = gti.tstop( ).secs() ; | |
| 550 | 552 | |
| 551 | 553 | // Format time with sufficient accuracy and add to selection string |
| 552 | 554 | sprintf(cmin, "%.8f", tmin); | ... | ... |