Commit 62d75f673c4485d10375820cb628e23a9c752730

Authored by Jürgen Knödlseder
1 parent dbc06261

Re-organize "Getting started" section of User Manual and add information about C…

…TA Instrument Response Functions.
doc/source/_templates/index.html
... ... @@ -34,7 +34,7 @@ CTA format), Fermi/LAT and COMPTEL data. {%endtrans%}</p>
34 34  
35 35 <ul>
36 36 <li><a class="smalllink" href="{{ pathto("user_manual/getting") }}">{%trans%}Installation{%endtrans%}</a></li>
37   -<li><a class="smalllink" href="{{ pathto("user_manual/quickstart") }}">{%trans%}Quickstart{%endtrans%}</a></li>
  37 +<li><a class="smalllink" href="{{ pathto("user_manual/getting_started/quickstart") }}">{%trans%}Quickstart{%endtrans%}</a></li>
38 38 <li><a class="smalllink" href="{{ pathto("user_manual/index") }}">{%trans%}User Manual{%endtrans%}</a></li>
39 39 <li><a class="smalllink" href="{{ pathto("documentation") }}">{%trans%}ctools reference{%endtrans%}</a></li>
40 40 <li><a class="smalllink" href="doxygen/index.html">{%trans%}Source code documentation (Doxygen){%endtrans%}</a></li>
... ...
doc/source/conf.py
... ... @@ -51,7 +51,7 @@ copyright = u&#39;2014, ctools developers&#39;
51 51 version = '0.7'
52 52  
53 53 # The full version, including alpha/beta/rc tags.
54   -release = '0.7.1'
  54 +release = '0.7.2'
55 55  
56 56 # The language for content autogenerated by Sphinx. Refer to documentation
57 57 # for a list of supported languages.
... ... @@ -165,7 +165,7 @@ html_show_copyright = False
165 165 #html_file_suffix = None
166 166  
167 167 # Output file base name for HTML help builder.
168   -htmlhelp_basename = 'GammaLibdoc'
  168 +htmlhelp_basename = 'ctoolsdoc'
169 169  
170 170  
171 171 # -- Options for LaTeX output --------------------------------------------------
... ...
doc/source/user_manual/getting_started/faq.rst 0 → 100644
  1 +Frequently asked questions
  2 +--------------------------
  3 +
  4 +To be written ...
... ...
doc/source/user_manual/getting_started/index.rst 0 → 100644
  1 +Getting started
  2 +===============
  3 +
  4 +.. toctree::
  5 + :maxdepth: 2
  6 +
  7 + quickstart
  8 + response
  9 + models
  10 + python
  11 + faq
  12 +
... ...
doc/source/user_manual/getting_started/models.rst 0 → 100644
  1 +Models available in ctools
  2 +--------------------------
  3 +
  4 +To be written ... (you may read
  5 +http://gammalib.sourceforge.net/user_manual/modules/model.html#spectral-models for the time being).
... ...
doc/source/user_manual/getting_started/python.rst 0 → 100644
  1 +Using ctools from Python
  2 +------------------------
  3 +
  4 +To be written ...
... ...
doc/source/user_manual/quickstart.rst renamed to doc/source/user_manual/getting_started/quickstart.rst
1   -Getting started
2   -===============
3   -
4 1 A quick ctools tutorial
5 2 -----------------------
6 3  
... ... @@ -641,22 +638,3 @@ the same events for both analyses.
641 638 2014-01-09T21:47:54: +==============+
642 639 2014-01-09T21:47:54:
643 640 2014-01-09T21:47:54: Application "ctlike" terminated after 6 wall clock seconds, consuming 0.163384 seconds of CPU time.
644   -
645   -
646   -Models available in ctools
647   ---------------------------
648   -
649   -To be written ... (you may read
650   -http://gammalib.sourceforge.net/user_manual/modules/model.html#spectral-models for the time being).
651   -
652   -
653   -Using ctools from Python
654   -------------------------
655   -
656   -To be written ...
657   -
658   -
659   -Frequently asked questions
660   ---------------------------
661   -
662   -To be written ...
... ...
doc/source/user_manual/getting_started/response.rst 0 → 100644
  1 +CTA Instrument Response Functions
  2 +---------------------------------
  3 +
  4 +.. note ::
  5 +
  6 + Instrument response functions are formally not part of ctools as they
  7 + should be provided by the instrument teams. The GammaLib framework on
  8 + which ctools are built comes with a set of basic response functions, but
  9 + for getting the latest instrument response functions you should contact
  10 + the relevant instrument teams. CTA consortium members should
  11 + `download
  12 + <https://portal.cta-observatory.org/WG/DM/DM_wiki/DATA_Access/Pages/Science%20Tools.aspx>`_
  13 + the latest calibration database containing Prod1 and Prod2 instrument
  14 + response functions from the consortium Sharepoint site (requires
  15 + password).
  16 +
  17 +
  18 +What are instrument response functions?
  19 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  20 +
  21 +(will provide a general description of what are IRFs)
  22 +
  23 +
  24 +Data formats
  25 +~~~~~~~~~~~~
  26 +
  27 +So far the data format of the CTA instrument response functions has not
  28 +yet been defined, and information about instrument response functions is
  29 +provided in various ways.
  30 +
  31 +
  32 +.. _sec_cta_rsp_perftable:
  33 +
  34 +Performance tables
  35 +^^^^^^^^^^^^^^^^^^
  36 +
  37 +In the early days, the instrument performances derived from Monte-Carlo
  38 +simulations have been summarised in what we call here Performance
  39 +Tables, which are ASCII files that contain as function of energy the
  40 +on-axis performance parameters of CTA, such as effective area, point spread
  41 +function containment radius, energy resolution, background count rate and
  42 +differential sensitivity.
  43 +
  44 +Below an example of a CTA performance table::
  45 +
  46 + log(E) Area r68 r80 ERes. BG Rate Diff Sens
  47 + -1.7 261.6 0.3621 0.4908 0.5134 0.0189924 6.88237e-11
  48 + -1.5 5458.2 0.2712 0.3685 0.4129 0.1009715 1.72717e-11
  49 + -1.3 15590.0 0.1662 0.2103 0.2721 0.0575623 6.16963e-12
  50 + -1.1 26554.1 0.1253 0.1567 0.2611 0.0213008 2.89932e-12
  51 + -0.9 52100.5 0.1048 0.1305 0.1987 0.0088729 1.39764e-12
  52 + -0.7 66132.1 0.0827 0.1024 0.1698 0.0010976 6.03531e-13
  53 + -0.5 108656.8 0.0703 0.0867 0.1506 0.0004843 3.98147e-13
  54 + -0.3 129833.0 0.0585 0.0722 0.1338 0.0001575 3.23090e-13
  55 + -0.1 284604.3 0.0531 0.0656 0.1008 0.0001367 2.20178e-13
  56 + 0.1 263175.3 0.0410 0.0506 0.0831 0.0000210 1.87452e-13
  57 + 0.3 778048.6 0.0470 0.0591 0.0842 0.0000692 1.53976e-13
  58 + 0.5 929818.8 0.0391 0.0492 0.0650 0.0000146 1.18947e-13
  59 + 0.7 1078450.0 0.0335 0.0415 0.0541 0.0000116 1.51927e-13
  60 + 0.9 1448579.1 0.0317 0.0397 0.0516 0.0000047 1.42439e-13
  61 + 1.1 1899905.0 0.0290 0.0372 0.0501 0.0000081 1.96670e-13
  62 + 1.3 2476403.8 0.0285 0.0367 0.0538 0.0000059 2.20695e-13
  63 + 1.5 2832570.6 0.0284 0.0372 0.0636 0.0000073 3.22523e-13
  64 + 1.7 3534065.3 0.0290 0.0386 0.0731 0.0000135 4.84153e-13
  65 + 1.9 3250103.4 0.0238 0.0308 0.0729 0.0000044 6.26265e-13
  66 + 2.1 3916071.6 0.0260 0.0354 0.0908 0.0000023 7.69921e-13
  67 + ---------------------------------------------
  68 + 1) log(E) = log10(E/TeV) - bin centre
  69 + 2) Eff Area - in square metres after background cut (no theta cut)
  70 + 3) Ang. Res - 68% containment radius of gamma-ray PSF post cuts - in degrees
  71 + 4) Ang. Res - 80% containment radius of gamma-ray PSF post cuts - in degrees
  72 + 5) Fractional Energy Resolution (rms)
  73 + 6) BG Rate - inside point-source selection region - post call cuts - in Hz
  74 + 7) Diff Sens - differential sensitivity for this bin expressed as E^2 dN/dE
  75 + - in erg cm^-2 s^-1 - for a 50 hours exposure - 5 sigma significance including
  76 + systematics and statistics and at least 10 photons.
  77 +
  78 +
  79 +.. _sec_cta_rsp_xspec:
  80 +
  81 +1DC Data Format
  82 +^^^^^^^^^^^^^^^
  83 +
  84 +Instrument response information for the first CTA Data Challenge (1DC) has been
  85 +provided in a format that was heavily inspired by the
  86 +`RMF and ARF file formats
  87 +<http://heasarc.gsfc.nasa.gov/docs/heasarc/caldb/docs/memos/cal_gen_92_002/cal_gen_92_002.html>`_
  88 +that have been introduced by
  89 +`HEASARC <http://heasarc.gsfc.nasa.gov/>`_
  90 +for spectral analysis of X-ray data.
  91 +
  92 +The Redistribution Matrix File (RMF) describes how an incoming photon with
  93 +a given true energy is redistributed in measured energy. In other words, it
  94 +describes the energy dispersion of the instrument. The RMF is organised as
  95 +a two-dimensional matrix, with the first axis being in true energies while
  96 +the second axis represents the measured energies.
  97 +
  98 +The Ancillary Response File (ARF) describes the sensitivity of the
  99 +instrument to photons of a given true energy. The ARF gives the effective
  100 +area of the detector system after applying an event selection cut
  101 +(theta cut). For computing the ARF, some knowledge of the Point Spread
  102 +Function (PSF) is needed, so that the fraction of photons that falls into
  103 +the event selection region for a given source can be properly estimated.
  104 +Once this is done, no further PSF information is needed for the analysis.
  105 +
  106 +ctools however relies on the full modelling of the instrument, including
  107 +the Point Spread Function, and hence, PSF information has also been
  108 +provided for 1DC. Two data formats have been used for this: a first that
  109 +is based on a simple one-dimensional vector, providing the width of a
  110 +2-dimensional Gaussian as function of energy; and a second that is based
  111 +on a three-component 2D Gaussian as function of energy and offset angle
  112 +in the camera system. While the former was implement by a simply FITS
  113 +table with two columns, the latter was implemented by
  114 +:ref:`sec_cta_rsp_rsptable`.
  115 +
  116 +
  117 +.. _sec_cta_rsp_rsptable:
  118 +
  119 +Response tables
  120 +^^^^^^^^^^^^^^^
  121 +
  122 +The CTA response table class ``GCTAResponseTable`` provides a generic
  123 +handle for multi-dimensional response information. It is based on the
  124 +response format used for storing response information for the
  125 +*Fermi*/LAT telescope. In this format, all information is stored in
  126 +a single row of a FITS binary table. Each element of the row contains
  127 +a vector column, that describes the axes of the multi-dimensional response
  128 +cube and the response information. Note that this class may in the future
  129 +be promoted to the GammaLib core, as a similar class has been implemented
  130 +in the *Fermi*/LAT interface.
... ...
doc/source/user_manual/index.rst
... ... @@ -7,7 +7,7 @@ User Manual
7 7  
8 8 introduction
9 9 getting
10   - quickstart
  10 + getting_started/index
11 11 enhancing
12 12 reference
13 13 expert
... ...