Commit b21067b487918767cecf020f235a8bcf30ccf29f

Authored by Nathan Kelley-Hoskins
1 parent 747ef26f

first attempt at different conversion

Showing 1 changed file with 4 additions and 3 deletions
src/ctselect/ctselect.cpp
@@ -59,7 +59,6 @@ ctselect::ctselect(void) : GApplication(CTSELECT_NAME, CTSELECT_VERSION) @@ -59,7 +59,6 @@ ctselect::ctselect(void) : GApplication(CTSELECT_NAME, CTSELECT_VERSION)
59 59
60 // Write header into logger 60 // Write header into logger
61 log_header(); 61 log_header();
62 - printf( "ctselect::ctselect() BLAHBLAHBLAH\n" ) ;  
63 62
64 // Return 63 // Return
65 return; 64 return;
@@ -546,8 +545,10 @@ void ctselect::select_events(GCTAObservation* obs, const std::string& filename) @@ -546,8 +545,10 @@ void ctselect::select_events(GCTAObservation* obs, const std::string& filename)
546 545
547 // Extract effective time interval in CTA reference time. We need 546 // Extract effective time interval in CTA reference time. We need
548 // this reference for filtering. 547 // this reference for filtering.
549 - double tmin = gti.tstart().convert(m_cta_ref);  
550 - 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().convert(gti.reference()).secs() ;
  551 + double tmax = gti.tstop( ).convert(gti.reference()).secs() ;
551 552
552 // Format time with sufficient accuracy and add to selection string 553 // Format time with sufficient accuracy and add to selection string
553 sprintf(cmin, "%.8f", tmin); 554 sprintf(cmin, "%.8f", tmin);