diff --git a/src/ctfindvar/ctfindvar.cpp b/src/ctfindvar/ctfindvar.cpp index f40e652..0b7ede1 100644 --- a/src/ctfindvar/ctfindvar.cpp +++ b/src/ctfindvar/ctfindvar.cpp @@ -510,7 +510,7 @@ void ctfindvar::fill_alpha_vector(const int& pix_number, GCTAInstDir instdir = obs->pointing().instdir(pix_dir); // Extract the good time intervals of the observation - GGti obs_gti = obs->gti(); + const GGti& obs_gti(obs->gti()); // Loop over all time bins for (int j=0; j time) { map_index = i; break; }