Feature #2130

Incorporate minimum counts to sensitivity calculation

Added by Ribeiro Deivid over 5 years ago. Updated over 1 year ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:


Target version:-


I’m working on updating the CTA sensitivity plots with ctools, but values do not match official performance reports.

cssens.py currently interpolates the source and background models to match a normalization that yields a detection at the threshold. However, this value underestimates the sensitivity at high energies since there are very few source counts and still classified as a “detection”. It is recommended to have a minimum of 10 counts from the signal region. Documentation around this website seems to indicate that developers are aware of this limitation, and that cssens gives much lower values than official performance reports. This feature could be an extra if/else statement at the convergence block (lines 444-461 in version 1.3.0) that checks the number of signal counts, then interpolates a higher TS threshold that could yield a minimum number of counts. You would thus also have to compute the number of source counts, which could be done right after the fit. The interpolation could be as simple as multiplying the threshold by a similar scale as the correction factor used to scale down the flux, but defined with regard to the number of source counts.


No recurrence.

Related issues

Duplicated by ctools - Feature #3668: add minimal event counts to cssens Closed 05/11/2021


#1 Updated by Knödlseder Jürgen over 5 years ago

  • Assigned To set to Knödlseder Jürgen

#2 Updated by Knödlseder Jürgen over 1 year ago

  • Duplicated by Feature #3668: add minimal event counts to cssens added

#3 Updated by Knödlseder Jürgen over 1 year ago

  • Status changed from New to Closed

A duplicated feature was created with issue #3668. Since some code changes were done on this feature I close this issue now.

Also available in: Atom PDF