Commit 8e969282f6b803f8b86313e338d11a6d75acf542

Authored by Jürgen Knödlseder
1 parent d934627a

Update after changes to GCTAInstDir interface in GammaLib

Showing 1 changed file with 3 additions and 2 deletions
src/ctselect/ctselect.cpp
@@ -1066,8 +1066,9 @@ void ctselect::select_events(GCTAObservation* obs, @@ -1066,8 +1066,9 @@ void ctselect::select_events(GCTAObservation* obs,
1066 // If RoI selection has been applied without forcing then set the event 1066 // If RoI selection has been applied without forcing then set the event
1067 // list RoI 1067 // list RoI
1068 if (select_roi && !enforced_roi) { 1068 if (select_roi && !enforced_roi) {
1069 - GCTAInstDir instdir;  
1070 - instdir.dir().radec_deg(ra, dec); 1069 + GSkyDir skydir;
  1070 + skydir.radec_deg(ra, dec);
  1071 + GCTAInstDir instdir(skydir);
1071 list->roi(GCTARoi(instdir, rad)); 1072 list->roi(GCTARoi(instdir, rad));
1072 } 1073 }
1073 1074