Commit 6cfa66e6677a1c979398e7fb2366e92f940ecb25
1 parent
5f251a06
Adapt to new GSkymap interface.
Showing
2 changed files
with
2 additions
and
2 deletions
src/ctbin/ctbin.cpp
| @@ -606,7 +606,7 @@ void ctbin::bin_events(GCTAObservation* obs) | @@ -606,7 +606,7 @@ void ctbin::bin_events(GCTAObservation* obs) | ||
| 606 | // Determine sky pixel | 606 | // Determine sky pixel |
| 607 | GCTAInstDir* inst = (GCTAInstDir*)&(event->dir()); | 607 | GCTAInstDir* inst = (GCTAInstDir*)&(event->dir()); |
| 608 | GSkyDir dir = inst->dir(); | 608 | GSkyDir dir = inst->dir(); |
| 609 | - GSkyPixel pixel = map.dir2xy(dir); | 609 | + GSkyPixel pixel = map.dir2pix(dir); |
| 610 | 610 | ||
| 611 | // Skip if pixel is out of range | 611 | // Skip if pixel is out of range |
| 612 | if (pixel.x() < -0.5 || pixel.x() > (m_nxpix-0.5) || | 612 | if (pixel.x() < -0.5 || pixel.x() > (m_nxpix-0.5) || |
src/ctskymap/ctskymap.cpp
| @@ -493,7 +493,7 @@ void ctskymap::map_events(GCTAObservation* obs) | @@ -493,7 +493,7 @@ void ctskymap::map_events(GCTAObservation* obs) | ||
| 493 | // Determine sky pixel | 493 | // Determine sky pixel |
| 494 | GCTAInstDir* inst = (GCTAInstDir*)&(event->dir()); | 494 | GCTAInstDir* inst = (GCTAInstDir*)&(event->dir()); |
| 495 | GSkyDir dir = inst->dir(); | 495 | GSkyDir dir = inst->dir(); |
| 496 | - GSkyPixel pixel = m_skymap.dir2xy(dir); | 496 | + GSkyPixel pixel = m_skymap.dir2pix(dir); |
| 497 | 497 | ||
| 498 | // Skip if pixel is out of range | 498 | // Skip if pixel is out of range |
| 499 | if (pixel.x() < -0.5 || pixel.x() > (m_nxpix-0.5) || | 499 | if (pixel.x() < -0.5 || pixel.x() > (m_nxpix-0.5) || |