This is a fixed-text formatted version of a Jupyter notebook.

You can contribute with your own notebooks in this GitHub repository.

Source files: cta_sensitivity.ipynb | cta_sensitivity.py

Computation of the CTA sensitivity

Introduction

This notebook explains how to derive the CTA sensitivity for a point-like IRF at a fixed zenith angle and fixed offset. The significativity is computed for the 1D analysis (On-OFF regions) and the LiMa formula.

We will be using the following Gammapy classes:

Setup

As usual, we’ll start with some setup …

In [1]:
%matplotlib inline
In [2]:
from gammapy.scripts import CTAPerf, SensitivityEstimator

Load IRFs

First import the CTA IRFs

In [3]:
filename = '$GAMMAPY_EXTRA/datasets/cta/perf_prod2/point_like_non_smoothed/South_5h.fits.gz'
irf = CTAPerf.read(filename)

Compute sensitivity

Choose a few parameters, then run the sentitivity computation.

In [4]:
sens = SensitivityEstimator(
    irf=irf,
    livetime='5h',
)
sens.run()

Exercises

  • tbd