Commit c48c64ae53955760d59f2e54be0559976803eb29

Authored by Domenico Tiziani
1 parent 7b0018c4

Bugfix.

inst/cta/src/GCTAResponseCube.cpp
... ... @@ -1530,7 +1530,7 @@ double GCTAResponseCube::irf_composite(const GEvent& event,
1530 1530 GSource src(source.name(), spat, source.energy(), source.time());
1531 1531  
1532 1532 // Compute irf value
1533   - irf += this->irf(event, source, obs) * model->scale(i);
  1533 + irf += this->irf(event, src, obs) * model->scale(i);
1534 1534  
1535 1535 }
1536 1536  
... ...