Commit 7247c9a0b5f5976fb11206d4861f96d11f44a4c5

Authored by Jürgen Knödlseder
1 parent 8b053738

Apply deadtime correction in default npred methods.

Showing 1 changed file with 6 additions and 0 deletions
src/obs/GResponse.cpp
... ... @@ -435,6 +435,9 @@ double GResponse::npred_radial(const GSource& source,
435 435 GIntegral integral(&integrand);
436 436 npred = integral.romb(theta_min, theta_max);
437 437  
  438 + // Apply deadtime correction
  439 + npred *= obs.deadc(source.time());
  440 +
438 441 // Compile option: Show integration results
439 442 #if defined(G_DEBUG_NPRED_RADIAL)
440 443 std::cout << "GResponse::npred_radial:";
... ... @@ -510,6 +513,9 @@ double GResponse::npred_elliptical(const GSource&amp; source,
510 513 GIntegral integral(&integrand);
511 514 npred = integral.romb(theta_min, theta_max);
512 515  
  516 + // Apply deadtime correction
  517 + npred *= obs.deadc(source.time());
  518 +
513 519 // Compile option: Show integration results
514 520 #if defined(G_DEBUG_NPRED_ELLIPTICAL)
515 521 std::cout << "GResponse::npred_elliptical:";
... ...