From 69001f776488de9e344eb46a0a841e09ebf6d7c7 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Mon, 17 Dec 2012 23:52:24 +0100 Subject: [PATCH] Adapt to new GTime interface. --- src/ctmodel/ctmodel.cpp | 6 ++---- src/ctobssim/ctobssim.cpp | 8 +++----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/ctmodel/ctmodel.cpp b/src/ctmodel/ctmodel.cpp index 7fca3d6..ba2e0fc 100644 --- a/src/ctmodel/ctmodel.cpp +++ b/src/ctmodel/ctmodel.cpp @@ -492,10 +492,8 @@ void ctmodel::setup_obs(void) // Setup time interval covered by model GGti gti; - GTime tmin; - GTime tmax; - tmin.met(m_tmin); - tmax.met(m_tmax); + GTime tmin(m_tmin); + GTime tmax(m_tmax); gti.append(tmin, tmax); // Setup skymap diff --git a/src/ctobssim/ctobssim.cpp b/src/ctobssim/ctobssim.cpp index d77379f..5d66ff1 100644 --- a/src/ctobssim/ctobssim.cpp +++ b/src/ctobssim/ctobssim.cpp @@ -537,10 +537,8 @@ void ctobssim::set_list(GCTAObservation* obs) // Set GTI GGti gti; - GTime tstart; - GTime tstop; - tstart.met(m_tmin); - tstop.met(m_tmax); + GTime tstart(m_tmin); + GTime tstop(m_tmax); gti.append(tstart, tstop); // Set energy boundaries @@ -927,7 +925,7 @@ void ctobssim::init_members(void) // Set fixed parameters m_area = 19634954.0 * 1.0e4; //!< pi*(2500^2) m^2 - m_time_max.met(1800.0); //!< Maximum length of time slice (s) + m_time_max.secs(1800.0); //!< Maximum length of time slice (s) // Set logger properties log.date(true); -- libgit2 0.21.4