Commit 5873fc2f8f029e30db5dca7eb07298a8cd66834d

Authored by Michael Mayer
Committed by Jürgen Knödlseder
1 parent e36f3da2

Store filename in load functions

inst/cta/src/GCTAAeff2D.cpp
... ... @@ -342,6 +342,9 @@ void GCTAAeff2D::load(const std::string& filename)
342 342 // Close FITS file
343 343 file.close();
344 344  
  345 + // Store filename
  346 + m_filename = filename;
  347 +
345 348 // Return
346 349 return;
347 350 }
... ...
inst/cta/src/GCTAAeffArf.cpp
... ... @@ -267,6 +267,9 @@ void GCTAAeffArf::load(const std::string& filename)
267 267 // Close FITS file
268 268 file.close();
269 269  
  270 + // Store filename
  271 + m_filename = filename;
  272 +
270 273 // Return
271 274 return;
272 275 }
... ...
inst/cta/src/GCTABackground3D.cpp
... ... @@ -408,6 +408,9 @@ void GCTABackground3D::load(const std::string& filename)
408 408 // Close FITS file
409 409 file.close();
410 410  
  411 + // Store filename
  412 + m_filename = filename;
  413 +
411 414 // Return
412 415 return;
413 416 }
... ...
inst/cta/src/GCTAEdisp2D.cpp
... ... @@ -259,6 +259,9 @@ void GCTAEdisp2D::load(const std::string& filename)
259 259 // Close FITS file
260 260 file.close();
261 261  
  262 + // Store filename
  263 + m_filename = filename;
  264 +
262 265 // Return
263 266 return;
264 267 }
... ...
inst/cta/src/GCTAPsf2D.cpp
... ... @@ -383,6 +383,9 @@ void GCTAPsf2D::load(const std::string& filename)
383 383 // Close FITS file
384 384 file.close();
385 385  
  386 + // Store filename
  387 + m_filename = filename;
  388 +
386 389 // Return
387 390 return;
388 391 }
... ...
inst/cta/src/GCTAPsfKing.cpp
... ... @@ -375,6 +375,9 @@ void GCTAPsfKing::load(const std::string& filename)
375 375 // Close FITS file
376 376 file.close();
377 377  
  378 + // Store filename
  379 + m_filename = filename;
  380 +
378 381 // Return
379 382 return;
380 383 }
... ...
inst/cta/src/GCTAPsfVector.cpp
... ... @@ -276,6 +276,9 @@ void GCTAPsfVector::load(const std::string& filename)
276 276 // Close FITS file
277 277 file.close();
278 278  
  279 + // Store filename
  280 + m_filename = filename;
  281 +
279 282 // Return
280 283 return;
281 284 }
... ...