Commit 9b8614978bfac748cca133bb58c06ac8f3cc7fab

Authored by Jürgen Knödlseder
1 parent 33c8ad3a

Correct syntax.

inst/cta/src/GCTACubeBackground.cpp
... ... @@ -300,7 +300,7 @@ void GCTACubeBackground::fill(const GObservations& obs, GLog* log)
300 300 }
301 301  
302 302 // Skip observation if we have a binned observation
303   - if (obs->eventtype() == "CountsCube") {
  303 + if (cta->eventtype() == "CountsCube") {
304 304 if (log != NULL) {
305 305 *log << "Warning: Skipping binned observation ";
306 306 *log << "\"" << cta->name() << "\"" <<std::endl;
... ...
inst/cta/src/GCTACubeExposure.cpp
... ... @@ -396,7 +396,7 @@ void GCTACubeExposure::fill(const GObservations&amp; obs, GLog* log)
396 396 }
397 397  
398 398 // Skip observation if we have a binned observation
399   - if (obs->eventtype() == "CountsCube") {
  399 + if (cta->eventtype() == "CountsCube") {
400 400 if (log != NULL) {
401 401 *log << "Warning: Skipping binned observation ";
402 402 *log << "\"" << cta->name() << "\"" <<std::endl;
... ...
inst/cta/src/GCTACubePsf.cpp
... ... @@ -461,7 +461,7 @@ void GCTACubePsf::fill(const GObservations&amp; obs, GLog* log)
461 461 }
462 462  
463 463 // Skip observation if we have a binned observation
464   - if (obs->eventtype() == "CountsCube") {
  464 + if (cta->eventtype() == "CountsCube") {
465 465 if (log != NULL) {
466 466 *log << "Warning: Skipping binned observation ";
467 467 *log << "\"" << cta->name() << "\"" <<std::endl;
... ...