Commit ff28a928594dd129d8acf0a430e0f658a026585c
1 parent
128f9c2c
Replace skydir() by dir() method (adapt to GammaLib-00-07-00).
Showing
3 changed files
with
3 additions
and
3 deletions
src/ctbin/ctbin.cpp
| @@ -534,7 +534,7 @@ void ctbin::bin_events(GCTAObservation* obs) | @@ -534,7 +534,7 @@ void ctbin::bin_events(GCTAObservation* obs) | ||
| 534 | 534 | ||
| 535 | // Determine sky pixel | 535 | // Determine sky pixel |
| 536 | GCTAInstDir* inst = (GCTAInstDir*)&(event->dir()); | 536 | GCTAInstDir* inst = (GCTAInstDir*)&(event->dir()); |
| 537 | - GSkyDir dir = inst->skydir(); | 537 | + GSkyDir dir = inst->dir(); |
| 538 | GSkyPixel pixel = map.dir2xy(dir); | 538 | GSkyPixel pixel = map.dir2xy(dir); |
| 539 | 539 | ||
| 540 | // Skip if pixel is out of range | 540 | // Skip if pixel is out of range |
src/ctobssim/ctobssim.cpp
| @@ -621,7 +621,7 @@ void ctobssim::simulate_source(GCTAObservation* obs, const GModels& models, | @@ -621,7 +621,7 @@ void ctobssim::simulate_source(GCTAObservation* obs, const GModels& models, | ||
| 621 | GCTAEventList* events = static_cast<GCTAEventList*>(const_cast<GEvents*>(obs->events())); | 621 | GCTAEventList* events = static_cast<GCTAEventList*>(const_cast<GEvents*>(obs->events())); |
| 622 | 622 | ||
| 623 | // Extract ROI | 623 | // Extract ROI |
| 624 | - GSkyDir dir = events->roi().centre().skydir(); | 624 | + GSkyDir dir = events->roi().centre().dir(); |
| 625 | double rad = events->roi().radius(); | 625 | double rad = events->roi().radius(); |
| 626 | 626 | ||
| 627 | // Dump simulation cone information | 627 | // Dump simulation cone information |
src/ctskymap/ctskymap.cpp
| @@ -492,7 +492,7 @@ void ctskymap::map_events(GCTAObservation* obs) | @@ -492,7 +492,7 @@ void ctskymap::map_events(GCTAObservation* obs) | ||
| 492 | 492 | ||
| 493 | // Determine sky pixel | 493 | // Determine sky pixel |
| 494 | GCTAInstDir* inst = (GCTAInstDir*)&(event->dir()); | 494 | GCTAInstDir* inst = (GCTAInstDir*)&(event->dir()); |
| 495 | - GSkyDir dir = inst->skydir(); | 495 | + GSkyDir dir = inst->dir(); |
| 496 | GSkyPixel pixel = m_skymap.dir2xy(dir); | 496 | GSkyPixel pixel = m_skymap.dir2xy(dir); |
| 497 | 497 | ||
| 498 | // Skip if pixel is out of range | 498 | // Skip if pixel is out of range |