Commit 203776160421426a3e4bbae36f0aeef46082a59b
1 parent
aa88abe0
found the right reference to use
Showing
1 changed file
with
2 additions
and
4 deletions
src/ctselect/ctselect.cpp
| ... | ... | @@ -545,11 +545,9 @@ 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); | |
| 550 | - //GTimeReference ref = gti.tstart().reference() ; | |
| 548 | + // Needs to be gti.reference() so it uses the fits file's time | |
| 549 | + // reference. | |
| 551 | 550 | GTimeReference ref = gti.reference() ; |
| 552 | - printf("ctselect::select_events() NKH convert timref %f\n", ref.mjdref() ) ; | |
| 553 | 551 | double tmin = gti.tstart().convert( ref ) ; |
| 554 | 552 | double tmax = gti.tstop( ).convert( ref ) ; |
| 555 | 553 | ... | ... |