Commit 69001f776488de9e344eb46a0a841e09ebf6d7c7

Authored by Jürgen Knödlseder
1 parent 9f8a8ffe

Adapt to new GTime interface.

src/ctmodel/ctmodel.cpp
@@ -492,10 +492,8 @@ void ctmodel::setup_obs(void) @@ -492,10 +492,8 @@ void ctmodel::setup_obs(void)
492 492
493 // Setup time interval covered by model 493 // Setup time interval covered by model
494 GGti gti; 494 GGti gti;
495 - GTime tmin;  
496 - GTime tmax;  
497 - tmin.met(m_tmin);  
498 - tmax.met(m_tmax); 495 + GTime tmin(m_tmin);
  496 + GTime tmax(m_tmax);
499 gti.append(tmin, tmax); 497 gti.append(tmin, tmax);
500 498
501 // Setup skymap 499 // Setup skymap
src/ctobssim/ctobssim.cpp
@@ -537,10 +537,8 @@ void ctobssim::set_list(GCTAObservation* obs) @@ -537,10 +537,8 @@ void ctobssim::set_list(GCTAObservation* obs)
537 537
538 // Set GTI 538 // Set GTI
539 GGti gti; 539 GGti gti;
540 - GTime tstart;  
541 - GTime tstop;  
542 - tstart.met(m_tmin);  
543 - tstop.met(m_tmax); 540 + GTime tstart(m_tmin);
  541 + GTime tstop(m_tmax);
544 gti.append(tstart, tstop); 542 gti.append(tstart, tstop);
545 543
546 // Set energy boundaries 544 // Set energy boundaries
@@ -927,7 +925,7 @@ void ctobssim::init_members(void) @@ -927,7 +925,7 @@ void ctobssim::init_members(void)
927 925
928 // Set fixed parameters 926 // Set fixed parameters
929 m_area = 19634954.0 * 1.0e4; //!< pi*(2500^2) m^2 927 m_area = 19634954.0 * 1.0e4; //!< pi*(2500^2) m^2
930 - m_time_max.met(1800.0); //!< Maximum length of time slice (s) 928 + m_time_max.secs(1800.0); //!< Maximum length of time slice (s)
931 929
932 // Set logger properties 930 // Set logger properties
933 log.date(true); 931 log.date(true);