Commit 33c8ad3ad1d6b45f7d08c560981c69c7224d47e0

Authored by Jürgen Knödlseder
1 parent f8091f65

Change condition from "not an event list" to "is a counts cube"

inst/cta/src/GCTACubeBackground.cpp
... ... @@ -299,8 +299,8 @@ void GCTACubeBackground::fill(const GObservations& obs, GLog* log)
299 299 continue;
300 300 }
301 301  
302   - // Skip observation if we don't have an unbinned observation
303   - if (cta->eventtype() != "EventList") {
  302 + // Skip observation if we have a binned observation
  303 + if (obs->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
... ... @@ -395,8 +395,8 @@ void GCTACubeExposure::fill(const GObservations&amp; obs, GLog* log)
395 395 continue;
396 396 }
397 397  
398   - // Skip observation if we don't have an unbinned observation
399   - if (cta->eventtype() != "EventList") {
  398 + // Skip observation if we have a binned observation
  399 + if (obs->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
... ... @@ -460,8 +460,8 @@ void GCTACubePsf::fill(const GObservations&amp; obs, GLog* log)
460 460 continue;
461 461 }
462 462  
463   - // Skip observation if we don't have an unbinned observation
464   - if (cta->eventtype() != "EventList") {
  463 + // Skip observation if we have a binned observation
  464 + if (obs->eventtype() == "CountsCube") {
465 465 if (log != NULL) {
466 466 *log << "Warning: Skipping binned observation ";
467 467 *log << "\"" << cta->name() << "\"" <<std::endl;
... ...