Commit c82682ce350a13ef732a53d0b218dab641e8d9f6

Authored by knodlseder
1 parent e2281f5f

update for ctatools-00-02-03

doc/html/about.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 -<html>  
3 -<head>  
4 -  
5 - <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">  
6 - <title>About</title>  
7 -  
8 -  
9 - <link rel="stylesheet" type="text/css" media="screen,print" href="ctatools.css"> 2 +<html><head>
  3 +<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>About</title>
10 4
  5 +<link rel="stylesheet" type="text/css" media="screen,print" href="ctatools.css">
11 </head> 6 </head>
12 7
13 -  
14 <body> 8 <body>
15 -  
16 <p class="Header">About</p> 9 <p class="Header">About</p>
17 -  
18 <p style="padding-top: 0pt; text-align: left;" class="Body">ctatools 10 <p style="padding-top: 0pt; text-align: left;" class="Body">ctatools
19 are a set of ftools-like executables needed for the scientific analysis 11 are a set of ftools-like executables needed for the scientific analysis
20 of Cherenkov Telescope Array data. ctatools are based on GammaLib, a 12 of Cherenkov Telescope Array data. ctatools are based on GammaLib, a
21 versatile toolbox for the high-level analysis of 13 versatile toolbox for the high-level analysis of
22 astronomical gamma-ray data.</p> 14 astronomical gamma-ray data.</p>
23 -  
24 <br> 15 <br>
25 -  
26 <p style="padding-top: 0pt; text-align: left;" class="Body">ctatools 16 <p style="padding-top: 0pt; text-align: left;" class="Body">ctatools
27 are&nbsp;implemented in C++ and are fully scriptable using the 17 are&nbsp;implemented in C++ and are fully scriptable using the
28 Python scripting language.</p> 18 Python scripting language.</p>
29 -  
30 <br> 19 <br>
31 -  
32 <p style="padding-top: 0pt; text-align: left;" class="Body">The 20 <p style="padding-top: 0pt; text-align: left;" class="Body">The
33 ctatools development is led by the Insitut de Recherche en 21 ctatools development is led by the Insitut de Recherche en
34 Astrophysique et Plan&eacute;tologie 22 Astrophysique et Plan&eacute;tologie
35 (IRAP), a mixed CNRS / Universit&eacute; Paul Sabatier laboratory 23 (IRAP), a mixed CNRS / Universit&eacute; Paul Sabatier laboratory
36 in Toulouse, France.</p> 24 in Toulouse, France.</p>
37 -  
38 <br> 25 <br>
39 -  
40 -<br>  
41 -  
42 -</body>  
43 -</html> 26 +<hr size="1">
  27 +<p class="Body">Last updated by: J&uuml;rgen
  28 +Kn&ouml;dlseder 9 July
  29 +2011
  30 +</p>
  31 +</body></html>
44 \ No newline at end of file 32 \ No newline at end of file
doc/html/documentation.html
@@ -2,7 +2,8 @@ @@ -2,7 +2,8 @@
2 <html><head> 2 <html><head>
3 <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Documentation</title> 3 <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Documentation</title>
4 4
5 -<link rel="stylesheet" type="text/css" media="screen,print" href="ctatools.css"></head> 5 +<link rel="stylesheet" type="text/css" media="screen,print" href="ctatools.css">
  6 +</head>
6 <body> 7 <body>
7 <p class="Header">Documentation</p> 8 <p class="Header">Documentation</p>
8 <br> 9 <br>
@@ -17,8 +18,8 @@ references @@ -17,8 +18,8 @@ references
17 </ul> 18 </ul>
18 <br> 19 <br>
19 <hr size="1"> 20 <hr size="1">
20 -<p class="Body">Last updated by: J&uuml;rgen Kn&ouml;dlseder 8 March 21 +<p class="Body">Last updated by: J&uuml;rgen
  22 +Kn&ouml;dlseder 8 March
21 2011 23 2011
22 </p> 24 </p>
23 -<br>  
24 </body></html> 25 </body></html>
25 \ No newline at end of file 26 \ No newline at end of file
doc/html/download.html
@@ -7,8 +7,8 @@ @@ -7,8 +7,8 @@
7 <body> 7 <body>
8 <p class="Header">Download</p> 8 <p class="Header">Download</p>
9 <p style="padding-top: 0pt; text-align: left;" class="Body"> 9 <p style="padding-top: 0pt; text-align: left;" class="Body">
10 -The latest ctatools release is <a href="releases/ctatools-00-02-01.tar.gz">ctatools-00-02-01</a>  
11 -(February 24, 2011).</p> 10 +The latest ctatools release is <a href="releases/ctatools-00-02-01.tar.gz">ctatools-00-02-03</a>
  11 +(July 9, 2011).</p>
12 <br> 12 <br>
13 <br> 13 <br>
14 <p class="Header">Latest release</p> 14 <p class="Header">Latest release</p>
@@ -19,14 +19,36 @@ and gammalib versions.&lt;/p&gt; @@ -19,14 +19,36 @@ and gammalib versions.&lt;/p&gt;
19 <tbody> 19 <tbody>
20 <tr class="Body"> 20 <tr class="Body">
21 <td>ctatools</td> 21 <td>ctatools</td>
22 -<td><a href="releases/ctatools-00-02-01.tar.gz">00-02-01</a></td> 22 +<td>gammalib</td>
23 </tr> 23 </tr>
24 <tr class="Body"> 24 <tr class="Body">
  25 +<td><a href="releases/ctatools-00-02-03.tar.gz">00-02-03</a></td>
  26 +<td><a href="releases/gammalib-00-04-09.tar.gz">00-04-09</a></td>
  27 +</tr>
  28 +</tbody>
  29 +</table>
  30 +<br>
  31 +<br>
  32 +<p class="Header">Older releases</p>
  33 +<p style="padding-top: 0pt; text-align: left;" class="Body">At
  34 +this early stage of the project there is a strict link between ctatools
  35 +and gammalib versions.</p>
  36 +<table style="text-align: left; width: 200px;" border="1" cellpadding="2" cellspacing="2">
  37 +<tbody>
  38 +<tr class="Body">
  39 +<td>ctatools</td>
25 <td>gammalib</td> 40 <td>gammalib</td>
  41 +</tr>
  42 +<tr class="Body">
  43 +<td><a href="releases/ctatools-00-02-01.tar.gz">00-02-01</a></td>
26 <td><a href="releases/gammalib-00-04-07.tar.gz">00-04-07</a></td> 44 <td><a href="releases/gammalib-00-04-07.tar.gz">00-04-07</a></td>
27 </tr> 45 </tr>
28 </tbody> 46 </tbody>
29 </table> 47 </table>
30 -<p style="padding-top: 0pt; text-align: left;" class="Body"></p>  
31 -<p style="padding-top: 0pt; text-align: left;" class="Body"></p> 48 +<br>
  49 +<hr size="1">
  50 +<p class="Body">Last updated by: J&uuml;rgen
  51 +Kn&ouml;dlseder 9 July
  52 +2011
  53 +</p>
32 </body></html> 54 </body></html>
33 \ No newline at end of file 55 \ No newline at end of file
doc/html/home.html
@@ -2,7 +2,8 @@ @@ -2,7 +2,8 @@
2 <html><head> 2 <html><head>
3 <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Home</title> 3 <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Home</title>
4 4
5 -<link rel="stylesheet" type="text/css" media="screen,print" href="ctatools.css"></head> 5 +<link rel="stylesheet" type="text/css" media="screen,print" href="ctatools.css">
  6 +</head>
6 <body> 7 <body>
7 <p class="Header">ctatools</p> 8 <p class="Header">ctatools</p>
8 <p style="padding-top: 0pt; text-align: left;" class="Body">ctatools 9 <p style="padding-top: 0pt; text-align: left;" class="Body">ctatools
@@ -32,7 +33,8 @@ license version 3&lt;/a&gt;. &lt;/p&gt; @@ -32,7 +33,8 @@ license version 3&lt;/a&gt;. &lt;/p&gt;
32 Simulation 33 Simulation
33 of galactic plane scan, composed of 10 half-hour observations, spaced 34 of galactic plane scan, composed of 10 half-hour observations, spaced
34 by 35 by
35 -2&deg; in Galactic longitude. A single point source with Crab spectrum was 36 +2&deg; in Galactic longitude. A single point source with Crab
  37 +spectrum was
36 simulated at the Galactic centre. The top panel shows the model, the 38 simulated at the Galactic centre. The top panel shows the model, the
37 bottom panel the simulated data.</td> 39 bottom panel the simulated data.</td>
38 <td style="text-align: center;"></td> 40 <td style="text-align: center;"></td>
@@ -40,4 +42,9 @@ bottom panel the simulated data.&lt;/td&gt; @@ -40,4 +42,9 @@ bottom panel the simulated data.&lt;/td&gt;
40 </tbody> 42 </tbody>
41 </table> 43 </table>
42 <br> 44 <br>
43 -</body></html>  
44 \ No newline at end of file 45 \ No newline at end of file
  46 +<hr size="1">
  47 +<p class="Body">Last updated by: J&uuml;rgen
  48 +Kn&ouml;dlseder 9 July
  49 +2011
  50 +<br>
  51 +</p></body></html>
45 \ No newline at end of file 52 \ No newline at end of file
doc/html/installation.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head> 2 <html><head>
  3 +<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Installation</title>
3 4
4 - <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">  
5 -  
6 -  
7 -  
8 - <title>Installation</title><link href="ctatools.css" media="screen,print" type="text/css" rel="stylesheet"></head>  
9 - 5 +<link href="ctatools.css" media="screen,print" type="text/css" rel="stylesheet"></head>
10 <body> 6 <body>
11 -  
12 <p class="Header">Installation</p> 7 <p class="Header">Installation</p>
13 -  
14 <p style="padding-top: 0pt; text-align: left;" class="Body"> 8 <p style="padding-top: 0pt; text-align: left;" class="Body">
15 <a href="#Step_1:_Install_GammaLib">Step 1: Install 9 <a href="#Step_1:_Install_GammaLib">Step 1: Install
16 GammaLib</a> 10 GammaLib</a>
17 </p> 11 </p>
18 -  
19 <p style="padding-top: 0pt; text-align: left;" class="Body"> 12 <p style="padding-top: 0pt; text-align: left;" class="Body">
20 <a href="#Step_2:_Setup_environment">Step 2: Setup 13 <a href="#Step_2:_Setup_environment">Step 2: Setup
21 environment</a> 14 environment</a>
22 </p> 15 </p>
23 -  
24 <p style="padding-top: 0pt; text-align: left;" class="Body"> 16 <p style="padding-top: 0pt; text-align: left;" class="Body">
25 <a href="#Step_3:_Install_ctatools">Step 3: Install 17 <a href="#Step_3:_Install_ctatools">Step 3: Install
26 ctatools</a> 18 ctatools</a>
27 </p> 19 </p>
28 -  
29 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Known_Problems">Known Problems</a></p> 20 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Known_Problems">Known Problems</a></p>
30 -  
31 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Getting_Help">Getting Help</a></p> 21 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Getting_Help">Getting Help</a></p>
32 -  
33 <br> 22 <br>
34 -  
35 <p style="padding-top: 0pt; text-align: left;" class="Body"><span style="font-weight: bold;"> 23 <p style="padding-top: 0pt; text-align: left;" class="Body"><span style="font-weight: bold;">
36 Note:</span> These installation instructions apply to 24 Note:</span> These installation instructions apply to
37 -ctatools-00-01-00 or later. 25 +<span style="font-family: Courier New,Courier,monospace;">ctatools-00-02-03</span> or later.
38 </p> 26 </p>
39 -  
40 <br> 27 <br>
41 -  
42 <p class="Title"><a name="Step_1:_Install_GammaLib"></a>Step 28 <p class="Title"><a name="Step_1:_Install_GammaLib"></a>Step
43 1: Install GammaLib</p> 29 1: Install GammaLib</p>
44 -  
45 <p style="padding-top: 0pt; text-align: left;" class="Body">ctatools 30 <p style="padding-top: 0pt; text-align: left;" class="Body">ctatools
46 depends on GammaLib and thus GammaLib needs to be installed on your 31 depends on GammaLib and thus GammaLib needs to be installed on your
47 system prior to installing ctatools. If you do not have GammaLib 32 system prior to installing ctatools. If you do not have GammaLib
@@ -51,14 +36,10 @@ and @@ -51,14 +36,10 @@ and
51 follow the GammaLib installation instructions on 36 follow the GammaLib installation instructions on
52 <a href="http://gammalib.sourceforge.net/" target="_blank">http://gammalib.sourceforge.net/</a>. 37 <a href="http://gammalib.sourceforge.net/" target="_blank">http://gammalib.sourceforge.net/</a>.
53 <br> 38 <br>
54 -  
55 <br> 39 <br>
56 -  
57 </p> 40 </p>
58 -  
59 <p class="Title"><a name="Step_2:_Setup_environment"></a>Step 41 <p class="Title"><a name="Step_2:_Setup_environment"></a>Step
60 2: Setup environment</p> 42 2: Setup environment</p>
61 -  
62 <p style="padding-top: 0pt; text-align: left;" class="Body">Before 43 <p style="padding-top: 0pt; text-align: left;" class="Body">Before
63 using GammaLib (and ctatools use GammaLib) you have to setup some 44 using GammaLib (and ctatools use GammaLib) you have to setup some
64 environment variables. 45 environment variables.
@@ -72,65 +53,50 @@ or &lt;span style=&quot;font-family: Courier New,Courier,monospace;&quot;&gt;$HOME/.profile&lt;/spa @@ -72,65 +53,50 @@ or &lt;span style=&quot;font-family: Courier New,Courier,monospace;&quot;&gt;$HOME/.profile&lt;/spa
72 script on a Linux 53 script on a Linux
73 machine: 54 machine:
74 </p> 55 </p>
75 -  
76 <p class="Code">export GAMMALIB=/usr/local/gamma<br> 56 <p class="Code">export GAMMALIB=/usr/local/gamma<br>
77 -  
78 source $GAMMALIB/bin/gammalib-init.sh 57 source $GAMMALIB/bin/gammalib-init.sh
79 </p> 58 </p>
80 -  
81 <p style="padding-top: 0pt; text-align: left;" class="Body">If 59 <p style="padding-top: 0pt; text-align: left;" class="Body">If
82 you use C shell or a variant then add the following to your 60 you use C shell or a variant then add the following to your
83 <span style="font-family: Courier New,Courier,monospace;">.cshrc</span> 61 <span style="font-family: Courier New,Courier,monospace;">.cshrc</span>
84 or <span style="font-family: Courier New,Courier,monospace;">.tcshrc</span> 62 or <span style="font-family: Courier New,Courier,monospace;">.tcshrc</span>
85 script: 63 script:
86 </p> 64 </p>
87 -  
88 <p class="Code">setenv GAMMALIB /usr/local/gamma<br> 65 <p class="Code">setenv GAMMALIB /usr/local/gamma<br>
89 -  
90 source $GAMMALIB/bin/gammalib-init.csh </p> 66 source $GAMMALIB/bin/gammalib-init.csh </p>
91 -  
92 <br> 67 <br>
93 -  
94 <br> 68 <br>
95 -  
96 <p class="Title"><a name="Step_3:_Install_ctatools"></a>Step 69 <p class="Title"><a name="Step_3:_Install_ctatools"></a>Step
97 3: Install ctatools</p> 70 3: Install ctatools</p>
98 -  
99 <p style="padding-top: 0pt; text-align: left;" class="Body">After 71 <p style="padding-top: 0pt; text-align: left;" class="Body">After
100 downloading the ctatools tarball, save it in an appropriate location 72 downloading the ctatools tarball, save it in an appropriate location
101 (for example <span style="font-family: Courier New,Courier,monospace;">/usr/local/gamma/src</span>), 73 (for example <span style="font-family: Courier New,Courier,monospace;">/usr/local/gamma/src</span>),
102 and type</p> 74 and type</p>
103 -  
104 <p class="Code"> 75 <p class="Code">
105 -&gt; tar xvfz ctatools-00-01-00.tar.gz 76 +&gt; tar xvfz ctatools-00-02-03.tar.gz
106 </p> 77 </p>
107 -  
108 <p style="padding-top: 0pt; text-align: left;" class="Body">Step 78 <p style="padding-top: 0pt; text-align: left;" class="Body">Step
109 in the created directory using 79 in the created directory using
110 </p> 80 </p>
111 -  
112 <p class="Code"> 81 <p class="Code">
113 &gt; cd ctatools 82 &gt; cd ctatools
114 </p> 83 </p>
115 -  
116 <p style="padding-top: 0pt; text-align: left;" class="Body"> 84 <p style="padding-top: 0pt; text-align: left;" class="Body">
117 and build and install ctatools by typing</p> 85 and build and install ctatools by typing</p>
118 -  
119 <p class="Code"> 86 <p class="Code">
120 &gt; ./configure<br> 87 &gt; ./configure<br>
121 -  
122 &gt; make<br> 88 &gt; make<br>
123 - 89 +&gt; make check<br>
124 &gt; make install 90 &gt; make install
125 </p> 91 </p>
126 -  
127 <p style="padding-top: 0pt; text-align: left;" class="Body"> 92 <p style="padding-top: 0pt; text-align: left;" class="Body">
128 at the operating system prompt. 93 at the operating system prompt.
129 The <span style="font-family: Courier New,Courier,monospace;">./configure</span> 94 The <span style="font-family: Courier New,Courier,monospace;">./configure</span>
130 command customizes the Makefiles for the particular 95 command customizes the Makefiles for the particular
131 system, 96 system,
132 the <span style="font-family: Courier New,Courier,monospace;">make</span> 97 the <span style="font-family: Courier New,Courier,monospace;">make</span>
133 -command compiles the source files and builds the executables, and 98 +command compiles the source files and builds the executables, the the <span style="font-family: Courier New,Courier,monospace;">make
  99 +check</span> command performs a system test, and
134 the <span style="font-family: Courier New,Courier,monospace;">make 100 the <span style="font-family: Courier New,Courier,monospace;">make
135 install</span> command installs the executables in the <span style="font-family: Courier New,Courier,monospace;">bin</span> 101 install</span> command installs the executables in the <span style="font-family: Courier New,Courier,monospace;">bin</span>
136 directory. 102 directory.
@@ -141,9 +107,7 @@ configuration @@ -141,9 +107,7 @@ configuration
141 script in the current directory is run and not some other system-wide 107 script in the current directory is run and not some other system-wide
142 configuration 108 configuration
143 script.&nbsp;</p> 109 script.&nbsp;</p>
144 -  
145 <br> 110 <br>
146 -  
147 <p style="padding-top: 0pt; text-align: left;" class="Body">By 111 <p style="padding-top: 0pt; text-align: left;" class="Body">By
148 default, the install directory is set to 112 default, the install directory is set to
149 <span style="font-family: Courier New,Courier,monospace;">/usr/local/gamma</span>. 113 <span style="font-family: Courier New,Courier,monospace;">/usr/local/gamma</span>.
@@ -152,54 +116,58 @@ argument should be @@ -152,54 +116,58 @@ argument should be
152 given, 116 given,
153 for example: 117 for example:
154 </p> 118 </p>
155 -  
156 <p class="Code"> 119 <p class="Code">
157 &gt; ./configure --prefix=/usr/local 120 &gt; ./configure --prefix=/usr/local
158 </p> 121 </p>
159 -  
160 <p style="padding-top: 0pt; text-align: left;" class="Body">A 122 <p style="padding-top: 0pt; text-align: left;" class="Body">A
161 full list of configuration options can be found using</p> 123 full list of configuration options can be found using</p>
162 -  
163 <p class="Code"> 124 <p class="Code">
164 &gt; ./configure --help 125 &gt; ./configure --help
165 </p> 126 </p>
166 -  
167 <br> 127 <br>
168 -  
169 <p class="Title"><a name="Known_Problems"></a>Known 128 <p class="Title"><a name="Known_Problems"></a>Known
170 Problems</p> 129 Problems</p>
171 - 130 +<p style="padding-top: 0pt; text-align: left;" class="Body">
  131 +<span style="font-weight: bold; font-size: 14px;">Mac OS X</span>
  132 +<br>The Python development package is not installed as default on Mac
  133 +OS X, and consequently, the <span style="font-family: Courier New,Courier,monospace;">Python.h</span> header file is missing that is
  134 +needed to compile in the Python bindings. The <span style="font-family: Courier New,Courier,monospace;">configure</span> script should
  135 +recognise this fact and adjust the build procedure accordingly, but you
  136 +will not be able to use ctatools from Python. So better install the
  137 +Python development package before installing ctatools.</p><p style="padding-top: 0pt; text-align: left;" class="Body"></p><p style="padding-top: 0pt; text-align: left;" class="Body">It
  138 +was also reported that adding of&nbsp;<span style="font-family: Courier New,Courier,monospace;">export
  139 +MACOSX_DEPLOYMENT_TARGET=10.6</span> to the <span style="font-family: Courier New,Courier,monospace;">.bashrc</span> file was necessary one
  140 +some Mac OS X 10.6 installations to make ctatools compile.<br>
  141 +<br>
  142 +</p>
172 <p style="padding-top: 0pt; text-align: left;" class="Body"> 143 <p style="padding-top: 0pt; text-align: left;" class="Body">
173 <span style="font-weight: bold; font-size: 14px;">Solaris</span> 144 <span style="font-weight: bold; font-size: 14px;">Solaris</span>
174 <br> 145 <br>
175 -  
176 ctatools has been compiled successfully on Solaris 2.10 using the Sun 146 ctatools has been compiled successfully on Solaris 2.10 using the Sun
177 Studio compiler. However, GammaLib symbols are 147 Studio compiler. However, GammaLib symbols are
178 not globally exported due to a strage behaviour of the Sun Studio 148 not globally exported due to a strage behaviour of the Sun Studio
179 compiler. This prevents for example GammaLib library from catching 149 compiler. This prevents for example GammaLib library from catching
180 its own exceptions and from registering models. Consequently, many 150 its own exceptions and from registering models. Consequently, many
181 functionnalities will not work.</p> 151 functionnalities will not work.</p>
182 -  
183 <br> 152 <br>
184 -  
185 <p style="padding-top: 0pt; text-align: left;" class="Body">Using 153 <p style="padding-top: 0pt; text-align: left;" class="Body">Using
186 gcc (version 3.4.3), ctatools and GammaLib works correctly on Solaris 154 gcc (version 3.4.3), ctatools and GammaLib works correctly on Solaris
187 2.10, yet loading ctatools or GammaLib as a Python module fails. 155 2.10, yet loading ctatools or GammaLib as a Python module fails.
188 <br> 156 <br>
189 -  
190 <br> 157 <br>
191 -  
192 </p> 158 </p>
193 -  
194 <br> 159 <br>
195 -  
196 <p class="Title"><a name="Getting_Help"></a>Getting 160 <p class="Title"><a name="Getting_Help"></a>Getting
197 Help</p> 161 Help</p>
198 -  
199 <p style="padding-top: 0pt; text-align: left;" class="Body"> 162 <p style="padding-top: 0pt; text-align: left;" class="Body">
200 Any questions, bug reports, or suggested enhancements related to 163 Any questions, bug reports, or suggested enhancements related to
201 ctatools should be submitted to 164 ctatools should be submitted to
202 <a href="mailto:knodlseder@cesr.fr">knodlseder@cesr.fr</a>. 165 <a href="mailto:knodlseder@cesr.fr">knodlseder@cesr.fr</a>.
203 </p> 166 </p>
204 - 167 +<br>
  168 +<hr size="1">
  169 +<p class="Body">Last updated by: J&uuml;rgen
  170 +Kn&ouml;dlseder 9 July
  171 +2011
  172 +</p>
205 </body></html> 173 </body></html>
206 \ No newline at end of file 174 \ No newline at end of file
doc/html/quickstart.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 -<html>  
3 -<head>  
4 -  
5 - <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">  
6 - <title>Getting Started</title>  
7 -  
8 -  
9 - <link href="ctatools.css" media="screen,print" type="text/css" rel="stylesheet"> 2 +<html><head>
  3 +<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Getting Started</title>
10 4
  5 +<link href="ctatools.css" media="screen,print" type="text/css" rel="stylesheet">
11 </head> 6 </head>
12 7
13 -  
14 <body> 8 <body>
15 -  
16 <p class="Header">Getting started</p> 9 <p class="Header">Getting started</p>
17 -  
18 <p class="Title">First steps with ctatools</p> 10 <p class="Title">First steps with ctatools</p>
19 -  
20 <p style="padding-top: 0pt; text-align: left;" class="Body"> 11 <p style="padding-top: 0pt; text-align: left;" class="Body">
21 This page gives provides a step-by-step description of the CTA data 12 This page gives provides a step-by-step description of the CTA data
22 analysis procedure implemented in ctatools. In this example we will 13 analysis procedure implemented in ctatools. In this example we will
23 simulate data for the Crab nebula, observed on-axis, as a single source 14 simulate data for the Crab nebula, observed on-axis, as a single source
24 in the CTA field of view.</p> 15 in the CTA field of view.</p>
25 -  
26 <br> 16 <br>
27 -  
28 <p style="padding-top: 0pt; text-align: left;" class="Body">The 17 <p style="padding-top: 0pt; text-align: left;" class="Body">The
29 example consists of the following analysis steps:</p> 18 example consists of the following analysis steps:</p>
30 -  
31 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Simulating_CTA_data">Simulating CTA data</a></p> 19 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Simulating_CTA_data">Simulating CTA data</a></p>
32 -  
33 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Binning_CTA_data">Binning CTA data</a></p> 20 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Binning_CTA_data">Binning CTA data</a></p>
34 -  
35 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Fitting_CTA_data">Fitting CTA data</a></p> 21 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Fitting_CTA_data">Fitting CTA data</a></p>
36 -  
37 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Doing_an_unbinned_analysis">Doing an unbinned analysis</a></p> 22 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Doing_an_unbinned_analysis">Doing an unbinned analysis</a></p>
38 -  
39 <br> 23 <br>
40 -  
41 <p style="padding-top: 0pt; text-align: left;" class="Body">And 24 <p style="padding-top: 0pt; text-align: left;" class="Body">And
42 please read also: 25 please read also:
43 </p> 26 </p>
44 -  
45 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Some_final_remarks">Some final remarks</a></p> 27 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Some_final_remarks">Some final remarks</a></p>
46 -  
47 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Getting_Help">Getting Help</a></p> 28 <p style="padding-top: 0pt; text-align: left;" class="Body"><a href="#Getting_Help">Getting Help</a></p>
48 -  
49 <br> 29 <br>
50 -  
51 <br> 30 <br>
52 -  
53 <p class="Title"><a name="Simulating_CTA_data"></a>Simulating 31 <p class="Title"><a name="Simulating_CTA_data"></a>Simulating
54 CTA data</p> 32 CTA data</p>
55 -  
56 <p style="padding-top: 0pt; text-align: left;" class="Body">CTA 33 <p style="padding-top: 0pt; text-align: left;" class="Body">CTA
57 data are simulated by the executable <span style="font-family: Courier New,Courier,monospace;">ctobssim</span>. 34 data are simulated by the executable <span style="font-family: Courier New,Courier,monospace;">ctobssim</span>.
58 To start the executable, type <span style="font-family: Courier New,Courier,monospace;">ctobssim</span> 35 To start the executable, type <span style="font-family: Courier New,Courier,monospace;">ctobssim</span>
@@ -62,35 +39,21 @@ work on a system that has been installed in the default directory &lt;span style=&quot;f @@ -62,35 +39,21 @@ work on a system that has been installed in the default directory &lt;span style=&quot;f
62 If ctatools have been installed in another directory, please adjust the 39 If ctatools have been installed in another directory, please adjust the
63 parameter names accordingly. 40 parameter names accordingly.
64 </p> 41 </p>
65 -  
66 <p class="Code"> 42 <p class="Code">
67 &gt; ctobssim<br> 43 &gt; ctobssim<br>
68 -  
69 Model [test/data/crab_alone.xml] /usr/local/gamma/share/models/crab.xml 44 Model [test/data/crab_alone.xml] /usr/local/gamma/share/models/crab.xml
70 <br> 45 <br>
71 -  
72 Output event data file [events.fits] <br> 46 Output event data file [events.fits] <br>
73 -  
74 Calibration database [test/irf] /usr/local/gamma/share/caldb/cta<br> 47 Calibration database [test/irf] /usr/local/gamma/share/caldb/cta<br>
75 -  
76 Instrument response function [kb_E_50h_v3] <br> 48 Instrument response function [kb_E_50h_v3] <br>
77 -  
78 RA for ROI centre (degrees) (0-360) [83.63] <br> 49 RA for ROI centre (degrees) (0-360) [83.63] <br>
79 -  
80 Dec for ROI centre (degrees) (-90-90) [22.01] <br> 50 Dec for ROI centre (degrees) (-90-90) [22.01] <br>
81 -  
82 Radius of ROI (degrees) (0-180) [10.0] <br> 51 Radius of ROI (degrees) (0-180) [10.0] <br>
83 -  
84 Start time (MET in s) (0) [0.0] <br> 52 Start time (MET in s) (0) [0.0] <br>
85 -  
86 End time (MET in s) (0) [1800.0] <br> 53 End time (MET in s) (0) [1800.0] <br>
87 -  
88 Lower energy limit (TeV) (0) [0.1] <br> 54 Lower energy limit (TeV) (0) [0.1] <br>
89 -  
90 Upper energy limit (TeV) (0) [100.0] <br> 55 Upper energy limit (TeV) (0) [100.0] <br>
91 -  
92 </p> 56 </p>
93 -  
94 <p style="padding-top: 0pt; text-align: left;" class="Body">Each 57 <p style="padding-top: 0pt; text-align: left;" class="Body">Each
95 line represents a query for one parameter. The line starts with a short 58 line represents a query for one parameter. The line starts with a short
96 description of the parameter, followed by the default parameter value 59 description of the parameter, followed by the default parameter value
@@ -98,9 +61,7 @@ proposed by &lt;span style=&quot;font-family: Courier New,Courier,monospace;&quot;&gt;ctobssim&lt;/ @@ -98,9 +61,7 @@ proposed by &lt;span style=&quot;font-family: Courier New,Courier,monospace;&quot;&gt;ctobssim&lt;/
98 in squared brackets <span style="font-family: Courier New,Courier,monospace;">[ ]</span>. 61 in squared brackets <span style="font-family: Courier New,Courier,monospace;">[ ]</span>.
99 If no parameter is entered (which is the case for the majority of 62 If no parameter is entered (which is the case for the majority of
100 parameters shown here), the default parameter will be used.</p> 63 parameters shown here), the default parameter will be used.</p>
101 -  
102 <br> 64 <br>
103 -  
104 <p style="padding-top: 0pt; text-align: left;" class="Body">The 65 <p style="padding-top: 0pt; text-align: left;" class="Body">The
105 CTA instrument properties (effective area, PSF width) are taken for the 66 CTA instrument properties (effective area, PSF width) are taken for the
106 moment from Konrad Bernl&ouml;hrs sensitivity files which are 67 moment from Konrad Bernl&ouml;hrs sensitivity files which are
@@ -108,9 +69,7 @@ stored in &lt;span style=&quot;font-family: Courier New,Courier,monospace;&quot;&gt;/usr/local/g @@ -108,9 +69,7 @@ stored in &lt;span style=&quot;font-family: Courier New,Courier,monospace;&quot;&gt;/usr/local/g
108 To test another CTA configuration you may adapt the instrument response 69 To test another CTA configuration you may adapt the instrument response
109 function name accordingly (see the <a href="#Some_final_remarks">final 70 function name accordingly (see the <a href="#Some_final_remarks">final
110 remarks</a>).</p> 71 remarks</a>).</p>
111 -  
112 <br> 72 <br>
113 -  
114 <p style="padding-top: 0pt; text-align: left;" class="Body">Events 73 <p style="padding-top: 0pt; text-align: left;" class="Body">Events
115 are simulated based on the instrument properties and based on a source 74 are simulated based on the instrument properties and based on a source
116 and background model. Only events that fall within the 75 and background model. Only events that fall within the
@@ -119,97 +78,68 @@ position in Right Ascension and Declination (in degrees), will be @@ -119,97 +78,68 @@ position in Right Ascension and Declination (in degrees), will be
119 stored in the output event data file. The duration of the simulation is 78 stored in the output event data file. The duration of the simulation is
120 taken here to 30 minutes (or 1800 seconds). Events are simulated for 79 taken here to 30 minutes (or 1800 seconds). Events are simulated for
121 energies between 0.1 and 100 TeV.</p> 80 energies between 0.1 and 100 TeV.</p>
122 -  
123 <br> 81 <br>
124 -  
125 <p style="padding-top: 0pt; text-align: left;" class="Body">The 82 <p style="padding-top: 0pt; text-align: left;" class="Body">The
126 source and background model is defined by the XML file <span style="font-family: Courier New,Courier,monospace;">/usr/local/gamma/share/models/crab.xml</span>: 83 source and background model is defined by the XML file <span style="font-family: Courier New,Courier,monospace;">/usr/local/gamma/share/models/crab.xml</span>:
127 </p> 84 </p>
128 -  
129 <p class="Code"> 85 <p class="Code">
130 &lt;?xml version="1.0" standalone="no"?&gt;<br> 86 &lt;?xml version="1.0" standalone="no"?&gt;<br>
131 -  
132 &lt;source_library title="source library"&gt;<br> 87 &lt;source_library title="source library"&gt;<br>
133 -  
134 &nbsp; &lt;source name="MAGIC Crab (Albert et al. 2008, ApJ, 88 &nbsp; &lt;source name="MAGIC Crab (Albert et al. 2008, ApJ,
135 674, 1037)" type="PointSource"&gt;<br> 89 674, 1037)" type="PointSource"&gt;<br>
136 -  
137 &nbsp;&nbsp;&nbsp; &lt;spectrum type="PowerLaw"&gt;<br> 90 &nbsp;&nbsp;&nbsp; &lt;spectrum type="PowerLaw"&gt;<br>
138 -  
139 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 91 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
140 &lt;parameter name="Prefactor" scale="1e-16" value="5.7"&nbsp; 92 &lt;parameter name="Prefactor" scale="1e-16" value="5.7"&nbsp;
141 min="1e-07" max="1000.0" free="1"/&gt;<br> 93 min="1e-07" max="1000.0" free="1"/&gt;<br>
142 -  
143 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 94 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
144 &lt;parameter name="Index"&nbsp;&nbsp;&nbsp;&nbsp; 95 &lt;parameter name="Index"&nbsp;&nbsp;&nbsp;&nbsp;
145 scale="-1"&nbsp;&nbsp;&nbsp; value="2.48" 96 scale="-1"&nbsp;&nbsp;&nbsp; value="2.48"
146 min="0.0"&nbsp;&nbsp; max="+5.0"&nbsp;&nbsp; 97 min="0.0"&nbsp;&nbsp; max="+5.0"&nbsp;&nbsp;
147 free="1"/&gt;<br> 98 free="1"/&gt;<br>
148 -  
149 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 99 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
150 &lt;parameter name="Scale"&nbsp;&nbsp;&nbsp;&nbsp; 100 &lt;parameter name="Scale"&nbsp;&nbsp;&nbsp;&nbsp;
151 scale="1e6"&nbsp;&nbsp; value="0.3"&nbsp; 101 scale="1e6"&nbsp;&nbsp; value="0.3"&nbsp;
152 min="0.01"&nbsp; max="1000.0" free="0"/&gt;<br> 102 min="0.01"&nbsp; max="1000.0" free="0"/&gt;<br>
153 -  
154 &nbsp;&nbsp;&nbsp; &lt;/spectrum&gt;<br> 103 &nbsp;&nbsp;&nbsp; &lt;/spectrum&gt;<br>
155 -  
156 &nbsp;&nbsp;&nbsp; &lt;spatialModel 104 &nbsp;&nbsp;&nbsp; &lt;spatialModel
157 type="SkyDirFunction"&gt;<br> 105 type="SkyDirFunction"&gt;<br>
158 -  
159 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter 106 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter
160 name="RA"&nbsp; scale="1.0" value="83.6331" min="-360" max="360" 107 name="RA"&nbsp; scale="1.0" value="83.6331" min="-360" max="360"
161 free="0"/&gt;<br> 108 free="0"/&gt;<br>
162 -  
163 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter 109 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter
164 name="DEC" scale="1.0" value="22.0145" min="-90"&nbsp; 110 name="DEC" scale="1.0" value="22.0145" min="-90"&nbsp;
165 max="90"&nbsp; free="0"/&gt;<br> 111 max="90"&nbsp; free="0"/&gt;<br>
166 -  
167 &nbsp;&nbsp;&nbsp; &lt;/spatialModel&gt;<br> 112 &nbsp;&nbsp;&nbsp; &lt;/spatialModel&gt;<br>
168 -  
169 &nbsp; &lt;/source&gt;<br> 113 &nbsp; &lt;/source&gt;<br>
170 -  
171 &nbsp; &lt;source name="Background" type="RadialAcceptance" 114 &nbsp; &lt;source name="Background" type="RadialAcceptance"
172 instrument="CTA"&gt;<br> 115 instrument="CTA"&gt;<br>
173 -  
174 &nbsp;&nbsp;&nbsp; &lt;spectrum type="PowerLaw"&gt;<br> 116 &nbsp;&nbsp;&nbsp; &lt;spectrum type="PowerLaw"&gt;<br>
175 -  
176 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 117 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
177 &lt;parameter name="Prefactor" scale="1e-6" value="61.8" 118 &lt;parameter name="Prefactor" scale="1e-6" value="61.8"
178 min="0.0"&nbsp; max="1000.0" free="1"/&gt;<br> 119 min="0.0"&nbsp; max="1000.0" free="1"/&gt;<br>
179 -  
180 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 120 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
181 &lt;parameter name="Index"&nbsp;&nbsp;&nbsp;&nbsp; 121 &lt;parameter name="Index"&nbsp;&nbsp;&nbsp;&nbsp;
182 scale="-1"&nbsp;&nbsp; value="1.85" min="0.0"&nbsp; 122 scale="-1"&nbsp;&nbsp; value="1.85" min="0.0"&nbsp;
183 max="+5.0"&nbsp;&nbsp; free="1"/&gt;<br> 123 max="+5.0"&nbsp;&nbsp; free="1"/&gt;<br>
184 -  
185 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 124 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
186 &lt;parameter name="Scale"&nbsp;&nbsp;&nbsp;&nbsp; 125 &lt;parameter name="Scale"&nbsp;&nbsp;&nbsp;&nbsp;
187 scale="1e6"&nbsp; value="1.0"&nbsp; min="0.01" max="1000.0" 126 scale="1e6"&nbsp; value="1.0"&nbsp; min="0.01" max="1000.0"
188 free="0"/&gt;<br> 127 free="0"/&gt;<br>
189 -  
190 &nbsp;&nbsp;&nbsp; &lt;/spectrum&gt;<br> 128 &nbsp;&nbsp;&nbsp; &lt;/spectrum&gt;<br>
191 -  
192 &nbsp;&nbsp;&nbsp; &lt;radialModel 129 &nbsp;&nbsp;&nbsp; &lt;radialModel
193 type="Gaussian"&gt;<br> 130 type="Gaussian"&gt;<br>
194 -  
195 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 131 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
196 &lt;parameter name="Sigma" scale="1.0" value="3.0" min="0.01" 132 &lt;parameter name="Sigma" scale="1.0" value="3.0" min="0.01"
197 max="10.0" free="1"/&gt;<br> 133 max="10.0" free="1"/&gt;<br>
198 -  
199 &nbsp;&nbsp;&nbsp; &lt;/radialModel&gt;<br> 134 &nbsp;&nbsp;&nbsp; &lt;/radialModel&gt;<br>
200 -  
201 &nbsp; &lt;/source&gt;<br> 135 &nbsp; &lt;/source&gt;<br>
202 -  
203 &lt;/source_library&gt; 136 &lt;/source_library&gt;
204 </p> 137 </p>
205 -  
206 <p style="padding-top: 0pt; text-align: left;" class="Body">The 138 <p style="padding-top: 0pt; text-align: left;" class="Body">The
207 model consists of a source library that contains 2 139 model consists of a source library that contains 2
208 "sources":&nbsp;the Crab nebula and an instrumental background 140 "sources":&nbsp;the Crab nebula and an instrumental background
209 model.</p> 141 model.</p>
210 -  
211 <br> 142 <br>
212 -  
213 <p style="padding-top: 0pt; text-align: left;" class="Body">The 143 <p style="padding-top: 0pt; text-align: left;" class="Body">The
214 Crab nebula is modelled by a factorized sky model that has a spectral 144 Crab nebula is modelled by a factorized sky model that has a spectral
215 and a spatial component (tags <span style="font-family: Courier New,Courier,monospace;">&lt;spectrum&gt;</span> 145 and a spatial component (tags <span style="font-family: Courier New,Courier,monospace;">&lt;spectrum&gt;</span>
@@ -236,22 +166,16 @@ The &lt;span style=&quot;font-family: Courier New,Courier,monospace;&quot;&gt;min&lt;/span&gt;, @@ -236,22 +166,16 @@ The &lt;span style=&quot;font-family: Courier New,Courier,monospace;&quot;&gt;min&lt;/span&gt;,
236 and <span style="font-family: Courier New,Courier,monospace;">free</span> 166 and <span style="font-family: Courier New,Courier,monospace;">free</span>
237 attributes are not relevant here for the simulations, but they will be 167 attributes are not relevant here for the simulations, but they will be
238 important for the model fitting later.</p> 168 important for the model fitting later.</p>
239 -  
240 <br> 169 <br>
241 -  
242 <p style="padding-top: 0pt; text-align: left;" class="Body">The 170 <p style="padding-top: 0pt; text-align: left;" class="Body">The
243 spectral intensity <span style="font-family: Courier New,Courier,monospace;">I(E)</span> 171 spectral intensity <span style="font-family: Courier New,Courier,monospace;">I(E)</span>
244 (in units of photons/cm2/s/MeV) of the power law is given by&nbsp;</p> 172 (in units of photons/cm2/s/MeV) of the power law is given by&nbsp;</p>
245 -  
246 <p style="padding-top: 0pt; text-align: center; font-family: Courier New,Courier,monospace;" class="Body">I(E) = Prefactor * (E/Scale)^Index</p> 173 <p style="padding-top: 0pt; text-align: center; font-family: Courier New,Courier,monospace;" class="Body">I(E) = Prefactor * (E/Scale)^Index</p>
247 -  
248 <p style="padding-top: 0pt; text-align: left;" class="Body">where 174 <p style="padding-top: 0pt; text-align: left;" class="Body">where
249 the <span style="font-family: Courier New,Courier,monospace;">E</span> 175 the <span style="font-family: Courier New,Courier,monospace;">E</span>
250 and <span style="font-family: Courier New,Courier,monospace;">Scale</span> 176 and <span style="font-family: Courier New,Courier,monospace;">Scale</span>
251 are given in MeV.</p> 177 are given in MeV.</p>
252 -  
253 <br> 178 <br>
254 -  
255 <p style="padding-top: 0pt; text-align: left;" class="Body">The 179 <p style="padding-top: 0pt; text-align: left;" class="Body">The
256 instrumental background of CTA is modelled by a factorized data model 180 instrumental background of CTA is modelled by a factorized data model
257 that has a spectral and a radial component (tags <span style="font-family: Courier New,Courier,monospace;">&lt;spectrum&gt;</span> 181 that has a spectral and a radial component (tags <span style="font-family: Courier New,Courier,monospace;">&lt;spectrum&gt;</span>
@@ -265,9 +189,7 @@ with &lt;span style=&quot;font-weight: bold;&quot;&gt;offset angle squared&lt;/span&gt;, @@ -265,9 +189,7 @@ with &lt;span style=&quot;font-weight: bold;&quot;&gt;offset angle squared&lt;/span&gt;,
265 direction) which is modelled here by a Gaussian. The only parameter of 189 direction) which is modelled here by a Gaussian. The only parameter of
266 the radial component is the width of the Gaussian <span style="font-family: Courier New,Courier,monospace;">Sigma</span>, 190 the radial component is the width of the Gaussian <span style="font-family: Courier New,Courier,monospace;">Sigma</span>,
267 which is here set to 3 degrees squared.</p> 191 which is here set to 3 degrees squared.</p>
268 -  
269 <br> 192 <br>
270 -  
271 <p style="padding-top: 0pt; text-align: left;" class="Body"><span style="font-family: Courier New,Courier,monospace;">ctobssim</span> 193 <p style="padding-top: 0pt; text-align: left;" class="Body"><span style="font-family: Courier New,Courier,monospace;">ctobssim</span>
272 has a couple of hidden parameters, the most important one being 194 has a couple of hidden parameters, the most important one being
273 certainly <span style="font-family: Courier New,Courier,monospace;">seed</span>. 195 certainly <span style="font-family: Courier New,Courier,monospace;">seed</span>.
@@ -277,11 +199,8 @@ generator, and changing this parameter will allow to generate @@ -277,11 +199,8 @@ generator, and changing this parameter will allow to generate
277 statistically independent Monte Carlo samples of CTA event data. To 199 statistically independent Monte Carlo samples of CTA event data. To
278 use for example a seed value of 41 one should type: 200 use for example a seed value of 41 one should type:
279 </p> 201 </p>
280 -  
281 <p class="Code">&gt; ctobssim seed=41<br> 202 <p class="Code">&gt; ctobssim seed=41<br>
282 -  
283 </p> 203 </p>
284 -  
285 <p style="padding-top: 0pt; text-align: left;" class="Body"> 204 <p style="padding-top: 0pt; text-align: left;" class="Body">
286 <span style="font-family: Courier New,Courier,monospace;">ctobssim</span> 205 <span style="font-family: Courier New,Courier,monospace;">ctobssim</span>
287 will write 2 files in the working directory: <span style="font-family: Courier New,Courier,monospace;">events.fits</span> 206 will write 2 files in the working directory: <span style="font-family: Courier New,Courier,monospace;">events.fits</span>
@@ -295,64 +214,38 @@ that holds the events (one row per event), and a binary table named &lt;span style= @@ -295,64 +214,38 @@ that holds the events (one row per event), and a binary table named &lt;span style=
295 holding the Good Time Interval (for the moment a single row with 2 214 holding the Good Time Interval (for the moment a single row with 2
296 columns providing the start and the stop time of the simulated time 215 columns providing the start and the stop time of the simulated time
297 interval).</p> 216 interval).</p>
298 -  
299 <br> 217 <br>
300 -  
301 <p style="padding-top: 0pt; text-align: left;" class="Body">The 218 <p style="padding-top: 0pt; text-align: left;" class="Body">The
302 second file produced by <span style="font-family: Courier New,Courier,monospace;">ctobssim</span> 219 second file produced by <span style="font-family: Courier New,Courier,monospace;">ctobssim</span>
303 is a human readable log file that contains information about 220 is a human readable log file that contains information about
304 the job execution. As example, the last lines from this file are shown 221 the job execution. As example, the last lines from this file are shown
305 here:</p> 222 here:</p>
306 -  
307 <p class="Code">2011-01-31T23:50:39: +==================+<br> 223 <p class="Code">2011-01-31T23:50:39: +==================+<br>
308 -  
309 2011-01-31T23:50:39: | Simulate photons |<br> 224 2011-01-31T23:50:39: | Simulate photons |<br>
310 -  
311 2011-01-31T23:50:39: +==================+<br> 225 2011-01-31T23:50:39: +==================+<br>
312 -  
313 2011-01-31T23:50:39:&nbsp; Simulated photons .........: 33943<br> 226 2011-01-31T23:50:39:&nbsp; Simulated photons .........: 33943<br>
314 -  
315 2011-01-31T23:50:39:&nbsp; Simulation area ...........: 3.2e+10 cm2<br> 227 2011-01-31T23:50:39:&nbsp; Simulation area ...........: 3.2e+10 cm2<br>
316 -  
317 2011-01-31T23:50:39:&nbsp; Simulation cone ...........: RA=83.63 228 2011-01-31T23:50:39:&nbsp; Simulation cone ...........: RA=83.63
318 deg, Dec=22.01deg, r=10 deg<br> 229 deg, Dec=22.01deg, r=10 deg<br>
319 -  
320 2011-01-31T23:50:39:&nbsp; Time interval .............: 0 s - 1800 s<br> 230 2011-01-31T23:50:39:&nbsp; Time interval .............: 0 s - 1800 s<br>
321 -  
322 2011-01-31T23:50:39:&nbsp; Energy range ..............: 100 GeV - 231 2011-01-31T23:50:39:&nbsp; Energy range ..............: 100 GeV -
323 100 TeV<br> 232 100 TeV<br>
324 -  
325 2011-01-31T23:50:39:&nbsp; Random number seed ........: 1<br> 233 2011-01-31T23:50:39:&nbsp; Random number seed ........: 1<br>
326 -  
327 2011-01-31T23:50:39: <br> 234 2011-01-31T23:50:39: <br>
328 -  
329 2011-01-31T23:50:39: +=================+<br> 235 2011-01-31T23:50:39: +=================+<br>
330 -  
331 2011-01-31T23:50:39: | Simulate events |<br> 236 2011-01-31T23:50:39: | Simulate events |<br>
332 -  
333 2011-01-31T23:50:39: +=================+<br> 237 2011-01-31T23:50:39: +=================+<br>
334 -  
335 2011-01-31T23:50:39:&nbsp; MC source events ..........: 649<br> 238 2011-01-31T23:50:39:&nbsp; MC source events ..........: 649<br>
336 -  
337 2011-01-31T23:50:39:&nbsp; MC background events ......: 3407<br> 239 2011-01-31T23:50:39:&nbsp; MC background events ......: 3407<br>
338 -  
339 2011-01-31T23:50:39: <br> 240 2011-01-31T23:50:39: <br>
340 -  
341 2011-01-31T23:50:39: +==========================+<br> 241 2011-01-31T23:50:39: +==========================+<br>
342 -  
343 2011-01-31T23:50:39: | Save events in FITS file |<br> 242 2011-01-31T23:50:39: | Save events in FITS file |<br>
344 -  
345 2011-01-31T23:50:39: +==========================+<br> 243 2011-01-31T23:50:39: +==========================+<br>
346 -  
347 2011-01-31T23:50:39: <br> 244 2011-01-31T23:50:39: <br>
348 -  
349 2011-01-31T23:50:39: Application "ctobssim" terminated after consuming 245 2011-01-31T23:50:39: Application "ctobssim" terminated after consuming
350 14 seconds of CPU time.<br> 246 14 seconds of CPU time.<br>
351 -  
352 <br> 247 <br>
353 -  
354 </p> 248 </p>
355 -  
356 <p style="padding-top: 0pt; text-align: left;" class="Body">Each 249 <p style="padding-top: 0pt; text-align: left;" class="Body">Each
357 line starts with the UTC time at which the line has been written. In 250 line starts with the UTC time at which the line has been written. In
358 this 251 this
@@ -360,54 +253,34 @@ run, 33943 Crab photons have been thrown over an area of 3.2 square @@ -360,54 +253,34 @@ run, 33943 Crab photons have been thrown over an area of 3.2 square
360 kilometres during a time interval of 1800 seconds. 649 of these photons 253 kilometres during a time interval of 1800 seconds. 649 of these photons
361 have been registered by CTA as events. In the same time 254 have been registered by CTA as events. In the same time
362 interval, 3407 background events have been registred by CTA.</p> 255 interval, 3407 background events have been registred by CTA.</p>
363 -  
364 <br> 256 <br>
365 -  
366 <br> 257 <br>
367 -  
368 <p class="Title"><a name="Binning_CTA_data"></a>Binning 258 <p class="Title"><a name="Binning_CTA_data"></a>Binning
369 CTA data</p> 259 CTA data</p>
370 -  
371 <p style="padding-top: 0pt; text-align: left;" class="Body"> 260 <p style="padding-top: 0pt; text-align: left;" class="Body">
372 As next analysis step the data are binned in a counts map using the 261 As next analysis step the data are binned in a counts map using the
373 executable <span style="font-family: Courier New,Courier,monospace;">ctbin</span>. 262 executable <span style="font-family: Courier New,Courier,monospace;">ctbin</span>.
374 A counts map is a 3 dimensional data cube, spanned by Right Ascension 263 A counts map is a 3 dimensional data cube, spanned by Right Ascension
375 (or Galactic longitude), Declination (or Galactic latitude), and the 264 (or Galactic longitude), Declination (or Galactic latitude), and the
376 logarithm (base 10) of energy.</p> 265 logarithm (base 10) of energy.</p>
377 -  
378 <br> 266 <br>
379 -  
380 <p style="padding-top: 0pt; text-align: left;" class="Body"><span style="font-family: Courier New,Courier,monospace;">ctbin</span> 267 <p style="padding-top: 0pt; text-align: left;" class="Body"><span style="font-family: Courier New,Courier,monospace;">ctbin</span>
381 is executed by typing:</p> 268 is executed by typing:</p>
382 -  
383 <p class="Code"> 269 <p class="Code">
384 &gt; ctbin<br> 270 &gt; ctbin<br>
385 -  
386 Event data file name [test/data/crab_events.fits.gz] events.fits<br> 271 Event data file name [test/data/crab_events.fits.gz] events.fits<br>
387 -  
388 Output file name [cntmap.fits] <br> 272 Output file name [cntmap.fits] <br>
389 -  
390 Start value for first energy bin in TeV [0.1] <br> 273 Start value for first energy bin in TeV [0.1] <br>
391 -  
392 Stop value for last energy bin in TeV [100.0] <br> 274 Stop value for last energy bin in TeV [100.0] <br>
393 -  
394 Number of energy bins [20] <br> 275 Number of energy bins [20] <br>
395 -  
396 Projection method e.g. AIT|ARC|CAR|GLS|MER|NCP|SIN|STG|TAN [CAR] <br> 276 Projection method e.g. AIT|ARC|CAR|GLS|MER|NCP|SIN|STG|TAN [CAR] <br>
397 -  
398 Coordinate system (CEL - celestial, GAL - galactic) (CEL|GAL) [CEL] <br> 277 Coordinate system (CEL - celestial, GAL - galactic) (CEL|GAL) [CEL] <br>
399 -  
400 First coordinate of image center in degrees (RA or galactic l) [83.63] <br> 278 First coordinate of image center in degrees (RA or galactic l) [83.63] <br>
401 -  
402 Second coordinate of image center in degrees (DEC or galactic b) 279 Second coordinate of image center in degrees (DEC or galactic b)
403 [22.01] <br> 280 [22.01] <br>
404 -  
405 Image scale (in degrees/pixel) [0.02] <br> 281 Image scale (in degrees/pixel) [0.02] <br>
406 -  
407 Size of the X axis in pixels [200] <br> 282 Size of the X axis in pixels [200] <br>
408 -  
409 Size of the Y axis in pixels [200] </p> 283 Size of the Y axis in pixels [200] </p>
410 -  
411 <p style="padding-top: 0pt; text-align: left;" class="Body"> 284 <p style="padding-top: 0pt; text-align: left;" class="Body">
412 In this example we adjust the event data file name and accept all the 285 In this example we adjust the event data file name and accept all the
413 remaining parameter defaults as they perfectly 286 remaining parameter defaults as they perfectly
@@ -419,107 +292,73 @@ the cartesian projection is the only valid project available for the @@ -419,107 +292,73 @@ the cartesian projection is the only valid project available for the
419 moment</span>). The counts map has 200 x 200 292 moment</span>). The counts map has 200 x 200
420 spatial pixels of 0.02 x 0.02 degrees in size, hence it covers a total 293 spatial pixels of 0.02 x 0.02 degrees in size, hence it covers a total
421 area of 4 x 4 degrees.</p> 294 area of 4 x 4 degrees.</p>
422 -  
423 <br> 295 <br>
424 -  
425 <p style="padding-top: 0pt; text-align: left;" class="Body">A 296 <p style="padding-top: 0pt; text-align: left;" class="Body">A
426 set of 20 counts maps will be created, which are logarithmically spaced 297 set of 20 counts maps will be created, which are logarithmically spaced
427 in energy, and which cover the energy range from 0.1 TeV to 100 TeV. In 298 in energy, and which cover the energy range from 0.1 TeV to 100 TeV. In
428 this example, the counts map will be saved as <span style="font-family: Courier New,Courier,monospace;">cntmap.fits</span> 299 this example, the counts map will be saved as <span style="font-family: Courier New,Courier,monospace;">cntmap.fits</span>
429 in the 300 in the
430 working directory. 301 working directory.
431 -In addition to the counts map, that is stored as the primary image extension, the FITS 302 +In addition to the counts map, that is stored as the primary image
  303 +extension, the FITS
432 file also contains an extension named <span style="font-family: Courier New,Courier,monospace;">EBOUNDS</span> 304 file also contains an extension named <span style="font-family: Courier New,Courier,monospace;">EBOUNDS</span>
433 that defines the energy boundaries that were used, and an extension <span style="font-family: Courier New,Courier,monospace;">GTI</span> 305 that defines the energy boundaries that were used, and an extension <span style="font-family: Courier New,Courier,monospace;">GTI</span>
434 that defines the Good Time Intervals that have been used. The following 306 that defines the Good Time Intervals that have been used. The following
435 -image shows the resulting FITS file. The <span style="font-family: Courier New,Courier,monospace;">EBOUNDS</span> table has 20 rows, one for each energy bin, while the <span style="font-family: Courier New,Courier,monospace;">GTI</span> table has jusr a single row, indicating the start and stop time of the simulated data.</p> 307 +image shows the resulting FITS file. The <span style="font-family: Courier New,Courier,monospace;">EBOUNDS</span>
  308 +table has 20 rows, one for each energy bin, while the <span style="font-family: Courier New,Courier,monospace;">GTI</span>
  309 +table has jusr a single row, indicating the start and stop time of the
  310 +simulated data.</p>
436 <br> 311 <br>
437 -  
438 <div style="text-align: center;"><img alt="CTA counts map FITS file" src="images/cntmap-fits.jpg"><br> 312 <div style="text-align: center;"><img alt="CTA counts map FITS file" src="images/cntmap-fits.jpg"><br>
439 -  
440 </div> 313 </div>
441 -  
442 <br> 314 <br>
443 -  
444 <p style="padding-top: 0pt; text-align: left;" class="Body">An 315 <p style="padding-top: 0pt; text-align: left;" class="Body">An
445 image 316 image
446 of the first bin, covering the energy range 100 -&nbsp;141 GeV, is 317 of the first bin, covering the energy range 100 -&nbsp;141 GeV, is
447 shown below: 318 shown below:
448 </p> 319 </p>
449 -  
450 <div style="text-align: center;"><img style="width: 496px; height: 518px;" alt="CTA counts map" src="images/cntmap-map.jpg"><br> 320 <div style="text-align: center;"><img style="width: 496px; height: 518px;" alt="CTA counts map" src="images/cntmap-map.jpg"><br>
451 -  
452 </div> 321 </div>
453 -  
454 <br> 322 <br>
455 -  
456 <p style="padding-top: 0pt; text-align: left;" class="Body">For 323 <p style="padding-top: 0pt; text-align: left;" class="Body">For
457 illustrating, the last few lines of the log file <span style="font-family: Courier New,Courier,monospace;">ctbin.log</span> 324 illustrating, the last few lines of the log file <span style="font-family: Courier New,Courier,monospace;">ctbin.log</span>
458 are shown below: 325 are shown below:
459 </p> 326 </p>
460 -  
461 <p class="Code">2011-02-01T09:28:05: +=========+<br> 327 <p class="Code">2011-02-01T09:28:05: +=========+<br>
462 -  
463 2011-02-01T09:28:05: | Binning |<br> 328 2011-02-01T09:28:05: | Binning |<br>
464 -  
465 2011-02-01T09:28:05: +=========+<br> 329 2011-02-01T09:28:05: +=========+<br>
466 -  
467 2011-02-01T09:28:05:&nbsp; Events in list ............: 4056<br> 330 2011-02-01T09:28:05:&nbsp; Events in list ............: 4056<br>
468 -  
469 2011-02-01T09:28:05:&nbsp; Events in map .............: 3683<br> 331 2011-02-01T09:28:05:&nbsp; Events in map .............: 3683<br>
470 -  
471 2011-02-01T09:28:05:&nbsp; Events outside map area ...: 373<br> 332 2011-02-01T09:28:05:&nbsp; Events outside map area ...: 373<br>
472 -  
473 2011-02-01T09:28:05:&nbsp; Events outside energy bins : 0<br> 333 2011-02-01T09:28:05:&nbsp; Events outside energy bins : 0<br>
474 -  
475 2011-02-01T09:28:05: <br> 334 2011-02-01T09:28:05: <br>
476 -  
477 2011-02-01T09:28:05: +============+<br> 335 2011-02-01T09:28:05: +============+<br>
478 -  
479 2011-02-01T09:28:05: | Counts map |<br> 336 2011-02-01T09:28:05: | Counts map |<br>
480 -  
481 2011-02-01T09:28:05: +============+<br> 337 2011-02-01T09:28:05: +============+<br>
482 -  
483 2011-02-01T09:28:05: === GSkymap ===<br> 338 2011-02-01T09:28:05: === GSkymap ===<br>
484 -  
485 2011-02-01T09:28:05:&nbsp; Number of pixels ..........: 40000<br> 339 2011-02-01T09:28:05:&nbsp; Number of pixels ..........: 40000<br>
486 -  
487 2011-02-01T09:28:05:&nbsp; Number of maps ............: 20<br> 340 2011-02-01T09:28:05:&nbsp; Number of maps ............: 20<br>
488 -  
489 2011-02-01T09:28:05:&nbsp; X axis dimension ..........: 200<br> 341 2011-02-01T09:28:05:&nbsp; X axis dimension ..........: 200<br>
490 -  
491 2011-02-01T09:28:05:&nbsp; Y axis dimension ..........: 200<br> 342 2011-02-01T09:28:05:&nbsp; Y axis dimension ..........: 200<br>
492 -  
493 2011-02-01T09:28:05: === GWcsCAR ===<br> 343 2011-02-01T09:28:05: === GWcsCAR ===<br>
494 -  
495 2011-02-01T09:28:05:&nbsp; Coordinate system .........: EQU<br> 344 2011-02-01T09:28:05:&nbsp; Coordinate system .........: EQU<br>
496 -  
497 2011-02-01T09:28:05:&nbsp; Reference coordinate ......: (83.63, 345 2011-02-01T09:28:05:&nbsp; Reference coordinate ......: (83.63,
498 22.01) deg<br> 346 22.01) deg<br>
499 -  
500 2011-02-01T09:28:05:&nbsp; Reference pixel ...........: (100.5, 347 2011-02-01T09:28:05:&nbsp; Reference pixel ...........: (100.5,
501 100.5)<br> 348 100.5)<br>
502 -  
503 2011-02-01T09:28:05:&nbsp; Increment at reference ....: (0.02, 349 2011-02-01T09:28:05:&nbsp; Increment at reference ....: (0.02,
504 0.02) deg<br> 350 0.02) deg<br>
505 -  
506 2011-02-01T09:28:05:&nbsp; Coordinate of North Pole ..: (180, 0) deg<br> 351 2011-02-01T09:28:05:&nbsp; Coordinate of North Pole ..: (180, 0) deg<br>
507 -  
508 2011-02-01T09:28:05:&nbsp; CD matrix .................: [0.02 0][0 352 2011-02-01T09:28:05:&nbsp; CD matrix .................: [0.02 0][0
509 0.02]<br> 353 0.02]<br>
510 -  
511 2011-02-01T09:28:05:&nbsp; Inverse CD matrix .........: [50 -0][-0 354 2011-02-01T09:28:05:&nbsp; Inverse CD matrix .........: [50 -0][-0
512 50]<br> 355 50]<br>
513 -  
514 2011-02-01T09:28:05:&nbsp; Coordinate of native pole .: (83.63, 356 2011-02-01T09:28:05:&nbsp; Coordinate of native pole .: (83.63,
515 112.01)<br> 357 112.01)<br>
516 -  
517 2011-02-01T09:28:05: <br> 358 2011-02-01T09:28:05: <br>
518 -  
519 2011-02-01T09:28:05: Application "ctbin" terminated after consuming 10 359 2011-02-01T09:28:05: Application "ctbin" terminated after consuming 10
520 seconds of CPU time. 360 seconds of CPU time.
521 </p> 361 </p>
522 -  
523 <p style="padding-top: 0pt; text-align: left;" class="Body">From 362 <p style="padding-top: 0pt; text-align: left;" class="Body">From
524 the 4056 events that have been simulated and stored in the <span style="font-family: Courier New,Courier,monospace;">events.fits</span> 363 the 4056 events that have been simulated and stored in the <span style="font-family: Courier New,Courier,monospace;">events.fits</span>
525 file, 3683 lie within the map boundaries and are thus put into the 364 file, 3683 lie within the map boundaries and are thus put into the
@@ -527,14 +366,10 @@ resulting counts map. The counts map is stored in a cartesian @@ -527,14 +366,10 @@ resulting counts map. The counts map is stored in a cartesian
527 projection in a <a href="http://fits.gsfc.nasa.gov/fits_wcs.html" target="_blank">World Coordinate System (WCS)</a> 366 projection in a <a href="http://fits.gsfc.nasa.gov/fits_wcs.html" target="_blank">World Coordinate System (WCS)</a>
528 compliant format. 367 compliant format.
529 </p> 368 </p>
530 -  
531 <br> 369 <br>
532 -  
533 <br> 370 <br>
534 -  
535 <p class="Title"><a name="Fitting_CTA_data"></a>Fitting 371 <p class="Title"><a name="Fitting_CTA_data"></a>Fitting
536 CTA data</p> 372 CTA data</p>
537 -  
538 <p style="padding-top: 0pt; text-align: left;" class="Body"> 373 <p style="padding-top: 0pt; text-align: left;" class="Body">
539 Now we are ready to fit the simulated data with a model. For simplicity 374 Now we are ready to fit the simulated data with a model. For simplicity
540 we use in this example the same model that we used to simulate the data 375 we use in this example the same model that we used to simulate the data
@@ -542,23 +377,15 @@ with &lt;span style=&quot;font-family: Courier New,Courier,monospace;&quot;&gt;ctobssim&lt;/span&gt;. @@ -542,23 +377,15 @@ with &lt;span style=&quot;font-family: Courier New,Courier,monospace;&quot;&gt;ctobssim&lt;/span&gt;.
542 Model fitting is done using the executable <span style="font-family: Courier New,Courier,monospace;">ctlike</span>, 377 Model fitting is done using the executable <span style="font-family: Courier New,Courier,monospace;">ctlike</span>,
543 and we do the fit by typing: 378 and we do the fit by typing:
544 </p> 379 </p>
545 -  
546 <p class="Code"> 380 <p class="Code">
547 &gt; ctlike<br> 381 &gt; ctlike<br>
548 -  
549 Maximum likelihood method [BINNED] <br> 382 Maximum likelihood method [BINNED] <br>
550 -  
551 Calibration database [test/irf] /usr/local/gamma/share/caldb/cta<br> 383 Calibration database [test/irf] /usr/local/gamma/share/caldb/cta<br>
552 -  
553 Instrument response function [kb_E_50h_v3] <br> 384 Instrument response function [kb_E_50h_v3] <br>
554 -  
555 Source model [test/data/crab.xml] /usr/local/gamma/share/models/crab.xml<br> 385 Source model [test/data/crab.xml] /usr/local/gamma/share/models/crab.xml<br>
556 -  
557 Source model output file [crab_results.xml] <br> 386 Source model output file [crab_results.xml] <br>
558 -  
559 Counts map [test/data/crab_cntmap.fits.gz] cntmap.fits 387 Counts map [test/data/crab_cntmap.fits.gz] cntmap.fits
560 </p> 388 </p>
561 -  
562 <p style="padding-top: 0pt; text-align: left;" class="Body">Fitting 389 <p style="padding-top: 0pt; text-align: left;" class="Body">Fitting
563 of the data is done in <span style="font-family: Courier New,Courier,monospace;">BINNED</span> 390 of the data is done in <span style="font-family: Courier New,Courier,monospace;">BINNED</span>
564 mode, which means that the events have been binned into a counts map 391 mode, which means that the events have been binned into a counts map
@@ -570,9 +397,7 @@ log-likelihood is computed directly by summing over all events. We will @@ -570,9 +397,7 @@ log-likelihood is computed directly by summing over all events. We will
570 explore 397 explore
571 the <span style="font-family: Courier New,Courier,monospace;">UNBINNED</span> 398 the <span style="font-family: Courier New,Courier,monospace;">UNBINNED</span>
572 mode <a href="#Doing_an_unbinned_analysis">later</a>.</p> 399 mode <a href="#Doing_an_unbinned_analysis">later</a>.</p>
573 -  
574 <br> 400 <br>
575 -  
576 <p style="padding-top: 0pt; text-align: left;" class="Body"> 401 <p style="padding-top: 0pt; text-align: left;" class="Body">
577 One of the parameters given to <span style="font-family: Courier New,Courier,monospace;">ctlike</span> 402 One of the parameters given to <span style="font-family: Courier New,Courier,monospace;">ctlike</span>
578 is a source model output file (we specified <span style="font-family: Courier New,Courier,monospace;">crab_results.xml</span> 403 is a source model output file (we specified <span style="font-family: Courier New,Courier,monospace;">crab_results.xml</span>
@@ -582,79 +407,54 @@ addition, the statistical uncertainties are added for each fitted @@ -582,79 +407,54 @@ addition, the statistical uncertainties are added for each fitted
582 parameter using the attribute <span style="font-family: Courier New,Courier,monospace;">error</span>. 407 parameter using the attribute <span style="font-family: Courier New,Courier,monospace;">error</span>.
583 Below we show the XML result file that has been produced by the run: 408 Below we show the XML result file that has been produced by the run:
584 </p> 409 </p>
585 -  
586 <p class="Code">&lt;?xml version="1.0" 410 <p class="Code">&lt;?xml version="1.0"
587 encoding="UTF-8" standalone="no"?&gt;<br> 411 encoding="UTF-8" standalone="no"?&gt;<br>
588 -  
589 &lt;source_library title="source library"&gt;<br> 412 &lt;source_library title="source library"&gt;<br>
590 -  
591 &nbsp; &lt;source name="MAGIC Crab (Albert et al. 2008, ApJ, 413 &nbsp; &lt;source name="MAGIC Crab (Albert et al. 2008, ApJ,
592 674, 1037)" type="DiffuseSource"&gt;<br> 414 674, 1037)" type="DiffuseSource"&gt;<br>
593 -  
594 &nbsp;&nbsp;&nbsp; &lt;spectrum type="PowerLaw"&gt;<br> 415 &nbsp;&nbsp;&nbsp; &lt;spectrum type="PowerLaw"&gt;<br>
595 -  
596 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter 416 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter
597 name="Prefactor" value="5.7765" error="0.243328" scale="1e-16" 417 name="Prefactor" value="5.7765" error="0.243328" scale="1e-16"
598 min="1e-07" max="1000" free="1" /&gt;<br> 418 min="1e-07" max="1000" free="1" /&gt;<br>
599 -  
600 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter 419 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter
601 name="Index" value="2.49937" error="0.0330191" scale="-1" min="0" 420 name="Index" value="2.49937" error="0.0330191" scale="-1" min="0"
602 max="5" free="1" /&gt;<br> 421 max="5" free="1" /&gt;<br>
603 -  
604 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter 422 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter
605 name="Scale" value="0.3" scale="1e+06" min="0.01" max="1000" free="0" 423 name="Scale" value="0.3" scale="1e+06" min="0.01" max="1000" free="0"
606 /&gt;<br> 424 /&gt;<br>
607 -  
608 &nbsp;&nbsp;&nbsp; &lt;/spectrum&gt;<br> 425 &nbsp;&nbsp;&nbsp; &lt;/spectrum&gt;<br>
609 -  
610 &nbsp;&nbsp;&nbsp; &lt;spatialModel 426 &nbsp;&nbsp;&nbsp; &lt;spatialModel
611 type="SkyDirFunction"&gt;<br> 427 type="SkyDirFunction"&gt;<br>
612 -  
613 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter 428 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter
614 name="RA" value="83.6331" scale="1" min="-360" max="360" free="0" 429 name="RA" value="83.6331" scale="1" min="-360" max="360" free="0"
615 /&gt;<br> 430 /&gt;<br>
616 -  
617 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter 431 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter
618 name="DEC" value="22.0145" scale="1" min="-90" max="90" free="0" 432 name="DEC" value="22.0145" scale="1" min="-90" max="90" free="0"
619 /&gt;<br> 433 /&gt;<br>
620 -  
621 &nbsp;&nbsp;&nbsp; &lt;/spatialModel&gt;<br> 434 &nbsp;&nbsp;&nbsp; &lt;/spatialModel&gt;<br>
622 -  
623 &nbsp; &lt;/source&gt;<br> 435 &nbsp; &lt;/source&gt;<br>
624 -  
625 &nbsp; &lt;source name="Background" type="RadialAcceptance" 436 &nbsp; &lt;source name="Background" type="RadialAcceptance"
626 instrument="CTA"&gt;<br> 437 instrument="CTA"&gt;<br>
627 -  
628 &nbsp;&nbsp;&nbsp; &lt;spectrum type="PowerLaw"&gt;<br> 438 &nbsp;&nbsp;&nbsp; &lt;spectrum type="PowerLaw"&gt;<br>
629 -  
630 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter 439 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter
631 name="Prefactor" value="61.7696" error="1.89829" scale="1e-06" min="0" 440 name="Prefactor" value="61.7696" error="1.89829" scale="1e-06" min="0"
632 max="1000" free="1" /&gt;<br> 441 max="1000" free="1" /&gt;<br>
633 -  
634 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter 442 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter
635 name="Index" value="1.87195" error="0.0166039" scale="-1" min="0" 443 name="Index" value="1.87195" error="0.0166039" scale="-1" min="0"
636 max="5" free="1" /&gt;<br> 444 max="5" free="1" /&gt;<br>
637 -  
638 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter 445 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter
639 name="Scale" value="1" scale="1e+06" min="0.01" max="1000" free="0" 446 name="Scale" value="1" scale="1e+06" min="0.01" max="1000" free="0"
640 /&gt;<br> 447 /&gt;<br>
641 -  
642 &nbsp;&nbsp;&nbsp; &lt;/spectrum&gt;<br> 448 &nbsp;&nbsp;&nbsp; &lt;/spectrum&gt;<br>
643 -  
644 &nbsp;&nbsp;&nbsp; &lt;radialModel 449 &nbsp;&nbsp;&nbsp; &lt;radialModel
645 type="Gaussian"&gt;<br> 450 type="Gaussian"&gt;<br>
646 -  
647 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter 451 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;parameter
648 name="Sigma" value="3.00467" error="0.071261" scale="1" min="0.01" 452 name="Sigma" value="3.00467" error="0.071261" scale="1" min="0.01"
649 max="10" free="1" /&gt;<br> 453 max="10" free="1" /&gt;<br>
650 -  
651 &nbsp;&nbsp;&nbsp; &lt;/radialModel&gt;<br> 454 &nbsp;&nbsp;&nbsp; &lt;/radialModel&gt;<br>
652 -  
653 &nbsp; &lt;/source&gt;<br> 455 &nbsp; &lt;/source&gt;<br>
654 -  
655 &lt;/source_library&gt; 456 &lt;/source_library&gt;
656 </p> 457 </p>
657 -  
658 <p style="padding-top: 0pt; text-align: left;" class="Body"> 458 <p style="padding-top: 0pt; text-align: left;" class="Body">
659 In this example, the <span style="font-family: Courier New,Courier,monospace;">Prefactor</span> 459 In this example, the <span style="font-family: Courier New,Courier,monospace;">Prefactor</span>
660 and <span style="font-family: Courier New,Courier,monospace;">Index</span> 460 and <span style="font-family: Courier New,Courier,monospace;">Index</span>
@@ -663,147 +463,89 @@ of the spectral model for the Crab as well as the &lt;span style=&quot;font-family: Cour @@ -663,147 +463,89 @@ of the spectral model for the Crab as well as the &lt;span style=&quot;font-family: Cour
663 and <span style="font-family: Courier New,Courier,monospace;">Sigma</span> 463 and <span style="font-family: Courier New,Courier,monospace;">Sigma</span>
664 parameter of the radial acceptance model have been fitted (all 464 parameter of the radial acceptance model have been fitted (all
665 parameters having the attribute <span style="font-family: Courier New,Courier,monospace;">free="1"</span> 465 parameters having the attribute <span style="font-family: Courier New,Courier,monospace;">free="1"</span>
666 -are fitted). <span style="font-weight: bold;">One could  
667 -be tempted to try fitting also the location of the Crab point source,  
668 -yet this feature is not yet implemented</span>. 466 +are fitted).
669 </p> 467 </p>
670 -  
671 <br> 468 <br>
672 -  
673 <p style="padding-top: 0pt; text-align: left;" class="Body">To 469 <p style="padding-top: 0pt; text-align: left;" class="Body">To
674 get more details about the model fitting one can inspect the log file. 470 get more details about the model fitting one can inspect the log file.
675 Below 471 Below
676 we show the last lines of the <span style="font-family: Courier New,Courier,monospace;">ctlike.log</span> 472 we show the last lines of the <span style="font-family: Courier New,Courier,monospace;">ctlike.log</span>
677 log file that has been produced by this run: 473 log file that has been produced by this run:
678 </p> 474 </p>
679 -  
680 <p class="Code">2011-02-01T09:53:17: 475 <p class="Code">2011-02-01T09:53:17:
681 +=================================+<br> 476 +=================================+<br>
682 -  
683 2011-02-01T09:53:17: | Maximum likelihood optimisation |<br> 477 2011-02-01T09:53:17: | Maximum likelihood optimisation |<br>
684 -  
685 2011-02-01T09:53:17: +=================================+<br> 478 2011-02-01T09:53:17: +=================================+<br>
686 -  
687 2011-02-01T09:53:20:&nbsp; Initial iteration: func=18092.1, 479 2011-02-01T09:53:20:&nbsp; Initial iteration: func=18092.1,
688 Lambda=0.001<br> 480 Lambda=0.001<br>
689 -  
690 2011-02-01T09:53:24:&nbsp; Iteration 1: func=18090, Lambda=0.0001, 481 2011-02-01T09:53:24:&nbsp; Iteration 1: func=18090, Lambda=0.0001,
691 delta=2.08792<br> 482 delta=2.08792<br>
692 -  
693 2011-02-01T09:53:27:&nbsp; Iteration 2: func=18090, Lambda=1e-05, 483 2011-02-01T09:53:27:&nbsp; Iteration 2: func=18090, Lambda=1e-05,
694 delta=0.0021398<br> 484 delta=0.0021398<br>
695 -  
696 2011-02-01T09:53:30:&nbsp; Iteration 3: func=18090, Lambda=1e-06, 485 2011-02-01T09:53:30:&nbsp; Iteration 3: func=18090, Lambda=1e-06,
697 delta=4.80215e-06<br> 486 delta=4.80215e-06<br>
698 -  
699 2011-02-01T09:53:34:&nbsp; Iteration 4: func=18090, Lambda=1e-07, 487 2011-02-01T09:53:34:&nbsp; Iteration 4: func=18090, Lambda=1e-07,
700 delta=1.7495e-08<br> 488 delta=1.7495e-08<br>
701 -  
702 2011-02-01T09:53:37: <br> 489 2011-02-01T09:53:37: <br>
703 -  
704 2011-02-01T09:53:37: +=========================================+<br> 490 2011-02-01T09:53:37: +=========================================+<br>
705 -  
706 2011-02-01T09:53:37: | Maximum likelihood optimisation results |<br> 491 2011-02-01T09:53:37: | Maximum likelihood optimisation results |<br>
707 -  
708 2011-02-01T09:53:37: +=========================================+<br> 492 2011-02-01T09:53:37: +=========================================+<br>
709 -  
710 2011-02-01T09:53:37: === GOptimizerLM ===<br> 493 2011-02-01T09:53:37: === GOptimizerLM ===<br>
711 -  
712 2011-02-01T09:53:37:&nbsp; Optimized function value ..: 18090<br> 494 2011-02-01T09:53:37:&nbsp; Optimized function value ..: 18090<br>
713 -  
714 2011-02-01T09:53:37:&nbsp; Absolute precision ........: 1e-06<br> 495 2011-02-01T09:53:37:&nbsp; Absolute precision ........: 1e-06<br>
715 -  
716 2011-02-01T09:53:37:&nbsp; Optimization status .......: converged<br> 496 2011-02-01T09:53:37:&nbsp; Optimization status .......: converged<br>
717 -  
718 2011-02-01T09:53:37:&nbsp; Number of parameters ......: 11<br> 497 2011-02-01T09:53:37:&nbsp; Number of parameters ......: 11<br>
719 -  
720 2011-02-01T09:53:37:&nbsp; Number of free parameters .: 5<br> 498 2011-02-01T09:53:37:&nbsp; Number of free parameters .: 5<br>
721 -  
722 2011-02-01T09:53:37:&nbsp; Number of iterations ......: 4<br> 499 2011-02-01T09:53:37:&nbsp; Number of iterations ......: 4<br>
723 -  
724 2011-02-01T09:53:37:&nbsp; Lambda ....................: 1e-07<br> 500 2011-02-01T09:53:37:&nbsp; Lambda ....................: 1e-07<br>
725 -  
726 2011-02-01T09:53:37:&nbsp; Maximum log likelihood ....: -18090<br> 501 2011-02-01T09:53:37:&nbsp; Maximum log likelihood ....: -18090<br>
727 -  
728 2011-02-01T09:53:37:&nbsp; Npred .....................: 3683<br> 502 2011-02-01T09:53:37:&nbsp; Npred .....................: 3683<br>
729 -  
730 2011-02-01T09:53:37: === GModels ===<br> 503 2011-02-01T09:53:37: === GModels ===<br>
731 -  
732 2011-02-01T09:53:37:&nbsp; Number of models ..........: 2<br> 504 2011-02-01T09:53:37:&nbsp; Number of models ..........: 2<br>
733 -  
734 2011-02-01T09:53:37:&nbsp; Number of parameters ......: 11<br> 505 2011-02-01T09:53:37:&nbsp; Number of parameters ......: 11<br>
735 -  
736 2011-02-01T09:53:37: === GModelPointSource ===<br> 506 2011-02-01T09:53:37: === GModelPointSource ===<br>
737 -  
738 2011-02-01T09:53:37:&nbsp; Name ......................: MAGIC Crab 507 2011-02-01T09:53:37:&nbsp; Name ......................: MAGIC Crab
739 (Albert et al. 2008, ApJ, 674, 1037)<br> 508 (Albert et al. 2008, ApJ, 674, 1037)<br>
740 -  
741 2011-02-01T09:53:37:&nbsp; Instruments ...............: all<br> 509 2011-02-01T09:53:37:&nbsp; Instruments ...............: all<br>
742 -  
743 2011-02-01T09:53:37:&nbsp; Number of parameters ......: 6<br> 510 2011-02-01T09:53:37:&nbsp; Number of parameters ......: 6<br>
744 -  
745 2011-02-01T09:53:37:&nbsp; Number of spatial par's ...: 2<br> 511 2011-02-01T09:53:37:&nbsp; Number of spatial par's ...: 2<br>
746 -  
747 2011-02-01T09:53:37:&nbsp;&nbsp; RA .......................: 512 2011-02-01T09:53:37:&nbsp;&nbsp; RA .......................:
748 83.6331 [-360,360] deg (fixed,scale=1)<br> 513 83.6331 [-360,360] deg (fixed,scale=1)<br>
749 -  
750 2011-02-01T09:53:37:&nbsp;&nbsp; DEC ......................: 514 2011-02-01T09:53:37:&nbsp;&nbsp; DEC ......................:
751 22.0145 [-90,90] deg (fixed,scale=1)<br> 515 22.0145 [-90,90] deg (fixed,scale=1)<br>
752 -  
753 2011-02-01T09:53:37:&nbsp; Number of spectral par's ..: 3<br> 516 2011-02-01T09:53:37:&nbsp; Number of spectral par's ..: 3<br>
754 -  
755 2011-02-01T09:53:37:&nbsp;&nbsp; Prefactor ................: 517 2011-02-01T09:53:37:&nbsp;&nbsp; Prefactor ................:
756 5.7765e-16 +/- 2.43328e-17 [1e-23,1e-13] ph/cm2/s/MeV (free,scale=1e-16)<br> 518 5.7765e-16 +/- 2.43328e-17 [1e-23,1e-13] ph/cm2/s/MeV (free,scale=1e-16)<br>
757 -  
758 2011-02-01T09:53:37:&nbsp;&nbsp; Index ....................: 519 2011-02-01T09:53:37:&nbsp;&nbsp; Index ....................:
759 -2.49937 +/-&nbsp;0.0330191 [-0,-5]&nbsp; (free,scale=-1)<br> 520 -2.49937 +/-&nbsp;0.0330191 [-0,-5]&nbsp; (free,scale=-1)<br>
760 -  
761 2011-02-01T09:53:37:&nbsp;&nbsp; PivotEnergy ..............: 521 2011-02-01T09:53:37:&nbsp;&nbsp; PivotEnergy ..............:
762 300000 [10000,1e+09] MeV (fixed,scale=1e+06)<br> 522 300000 [10000,1e+09] MeV (fixed,scale=1e+06)<br>
763 -  
764 2011-02-01T09:53:37:&nbsp; Number of temporal par's ..: 1<br> 523 2011-02-01T09:53:37:&nbsp; Number of temporal par's ..: 1<br>
765 -  
766 2011-02-01T09:53:37:&nbsp;&nbsp; Constant .................: 1 524 2011-02-01T09:53:37:&nbsp;&nbsp; Constant .................: 1
767 (relative value) (fixed,scale=1)<br> 525 (relative value) (fixed,scale=1)<br>
768 -  
769 2011-02-01T09:53:37: === GCTAModelRadialAcceptance ===<br> 526 2011-02-01T09:53:37: === GCTAModelRadialAcceptance ===<br>
770 -  
771 2011-02-01T09:53:37:&nbsp; Name ......................: Background<br> 527 2011-02-01T09:53:37:&nbsp; Name ......................: Background<br>
772 -  
773 2011-02-01T09:53:37:&nbsp; Instruments ...............: CTA<br> 528 2011-02-01T09:53:37:&nbsp; Instruments ...............: CTA<br>
774 -  
775 2011-02-01T09:53:37:&nbsp; Model type ................: "Gaussian" 529 2011-02-01T09:53:37:&nbsp; Model type ................: "Gaussian"
776 * "PowerLaw" * "Constant"<br> 530 * "PowerLaw" * "Constant"<br>
777 -  
778 2011-02-01T09:53:37:&nbsp; Number of parameters ......: 5<br> 531 2011-02-01T09:53:37:&nbsp; Number of parameters ......: 5<br>
779 -  
780 2011-02-01T09:53:37:&nbsp; Number of radial par's ....: 1<br> 532 2011-02-01T09:53:37:&nbsp; Number of radial par's ....: 1<br>
781 -  
782 2011-02-01T09:53:37:&nbsp;&nbsp; Sigma ....................: 533 2011-02-01T09:53:37:&nbsp;&nbsp; Sigma ....................:
783 3.00467 +/- 0.071261 [0.01,10] deg2 (free,scale=1)<br> 534 3.00467 +/- 0.071261 [0.01,10] deg2 (free,scale=1)<br>
784 -  
785 2011-02-01T09:53:37:&nbsp; Number of spectral par's ..: 3<br> 535 2011-02-01T09:53:37:&nbsp; Number of spectral par's ..: 3<br>
786 -  
787 2011-02-01T09:53:37:&nbsp;&nbsp; Prefactor ................: 536 2011-02-01T09:53:37:&nbsp;&nbsp; Prefactor ................:
788 6.17696e-05 +/- 1.89829e-06 [0,0.001] ph/cm2/s/MeV (free,scale=1e-06)<br> 537 6.17696e-05 +/- 1.89829e-06 [0,0.001] ph/cm2/s/MeV (free,scale=1e-06)<br>
789 -  
790 2011-02-01T09:53:37:&nbsp;&nbsp; Index ....................: 538 2011-02-01T09:53:37:&nbsp;&nbsp; Index ....................:
791 -1.87195 +/-&nbsp;0.0166039 [-0,-5]&nbsp; (free,scale=-1)<br> 539 -1.87195 +/-&nbsp;0.0166039 [-0,-5]&nbsp; (free,scale=-1)<br>
792 -  
793 2011-02-01T09:53:37:&nbsp;&nbsp; PivotEnergy ..............: 540 2011-02-01T09:53:37:&nbsp;&nbsp; PivotEnergy ..............:
794 1e+06 [10000,1e+09] MeV (fixed,scale=1e+06)<br> 541 1e+06 [10000,1e+09] MeV (fixed,scale=1e+06)<br>
795 -  
796 2011-02-01T09:53:37:&nbsp; Number of temporal par's ..: 1<br> 542 2011-02-01T09:53:37:&nbsp; Number of temporal par's ..: 1<br>
797 -  
798 2011-02-01T09:53:37:&nbsp;&nbsp; Constant .................: 1 543 2011-02-01T09:53:37:&nbsp;&nbsp; Constant .................: 1
799 (relative value) (fixed,scale=1)<br> 544 (relative value) (fixed,scale=1)<br>
800 -  
801 2011-02-01T09:53:37: <br> 545 2011-02-01T09:53:37: <br>
802 -  
803 2011-02-01T09:53:37: Application "ctlike" terminated after consuming 41 546 2011-02-01T09:53:37: Application "ctlike" terminated after consuming 41
804 seconds of CPU time. 547 seconds of CPU time.
805 </p> 548 </p>
806 -  
807 <p style="padding-top: 0pt; text-align: left;" class="Body">The 549 <p style="padding-top: 0pt; text-align: left;" class="Body">The
808 maximum likelihood optimizer required 4 iterations to converge. This is 550 maximum likelihood optimizer required 4 iterations to converge. This is
809 pretty fast, but recall that we used the same model file for the 551 pretty fast, but recall that we used the same model file for the
@@ -816,14 +558,10 @@ will see that the optimizer requires a couple of more iterations, but @@ -816,14 +558,10 @@ will see that the optimizer requires a couple of more iterations, but
816 it should converge to the same solution (provided that the initial 558 it should converge to the same solution (provided that the initial
817 values are not too far of the best fitting values).&nbsp; 559 values are not too far of the best fitting values).&nbsp;
818 </p> 560 </p>
819 -  
820 <br> 561 <br>
821 -  
822 <br> 562 <br>
823 -  
824 <p class="Title"><a name="Doing_an_unbinned_analysis"></a>Doing 563 <p class="Title"><a name="Doing_an_unbinned_analysis"></a>Doing
825 an unbinned analysis</p> 564 an unbinned analysis</p>
826 -  
827 <p style="padding-top: 0pt; text-align: left;" class="Body">As 565 <p style="padding-top: 0pt; text-align: left;" class="Body">As
828 gamma-ray events are rare, the counts maps generated by <span style="font-family: Courier New,Courier,monospace;">ctbin</span> 566 gamma-ray events are rare, the counts maps generated by <span style="font-family: Courier New,Courier,monospace;">ctbin</span>
829 will in general be sparse, having many empty pixels, in 567 will in general be sparse, having many empty pixels, in
@@ -832,9 +570,7 @@ of working directly on the event list without binning the events in a @@ -832,9 +570,7 @@ of working directly on the event list without binning the events in a
832 counts map. We 570 counts map. We
833 will see the benefit of such an analysis later once we re-run <span style="font-family: Courier New,Courier,monospace;">ctlike</span> 571 will see the benefit of such an analysis later once we re-run <span style="font-family: Courier New,Courier,monospace;">ctlike</span>
834 in unbinned mode.</p> 572 in unbinned mode.</p>
835 -  
836 <br> 573 <br>
837 -  
838 <p style="padding-top: 0pt; text-align: left;" class="Body">For 574 <p style="padding-top: 0pt; text-align: left;" class="Body">For
839 unbinned analysis we have first to define the data 575 unbinned analysis we have first to define the data
840 space region over which the analysis is done. This is similiar to the <span style="font-family: Courier New,Courier,monospace;">ctbin</span> 576 space region over which the analysis is done. This is similiar to the <span style="font-family: Courier New,Courier,monospace;">ctbin</span>
@@ -849,9 +585,7 @@ range is covered, and what time interval is spanned by the data. All @@ -849,9 +585,7 @@ range is covered, and what time interval is spanned by the data. All
849 this is done by the executable <span style="font-family: Courier New,Courier,monospace;">ctselect</span>, 585 this is done by the executable <span style="font-family: Courier New,Courier,monospace;">ctselect</span>,
850 which replaces the <span style="font-family: Courier New,Courier,monospace;">ctbin</span> 586 which replaces the <span style="font-family: Courier New,Courier,monospace;">ctbin</span>
851 step in an unbinned analysis.</p> 587 step in an unbinned analysis.</p>
852 -  
853 <br> 588 <br>
854 -  
855 <p style="padding-top: 0pt; text-align: left;" class="Body"><span style="font-family: Courier New,Courier,monospace;">ctselect</span> 589 <p style="padding-top: 0pt; text-align: left;" class="Body"><span style="font-family: Courier New,Courier,monospace;">ctselect</span>
856 performs an event selection by choosing only&nbsp;events within a 590 performs an event selection by choosing only&nbsp;events within a
857 given 591 given
@@ -863,31 +597,19 @@ called an &lt;span style=&quot;font-weight: bold;&quot;&gt;acceptance cone&lt;/span&gt;. @@ -863,31 +597,19 @@ called an &lt;span style=&quot;font-weight: bold;&quot;&gt;acceptance cone&lt;/span&gt;.
863 The following example shows how <span style="font-family: Courier New,Courier,monospace;">ctselect</span> 597 The following example shows how <span style="font-family: Courier New,Courier,monospace;">ctselect</span>
864 is invoked on the simulated 598 is invoked on the simulated
865 test data: </p> 599 test data: </p>
866 -  
867 <p class="Code"> 600 <p class="Code">
868 &gt; ctselect<br> 601 &gt; ctselect<br>
869 -  
870 Input event data file [test/data/crab_events.fits.gz] 602 Input event data file [test/data/crab_events.fits.gz]
871 events.fits<br> 603 events.fits<br>
872 -  
873 Output event data file [selected_events.fits] <br> 604 Output event data file [selected_events.fits] <br>
874 -  
875 RA for ROI centre (degrees) (0-360) [83.63] <br> 605 RA for ROI centre (degrees) (0-360) [83.63] <br>
876 -  
877 Dec for ROI centre (degrees) (-90-90) [22.01] <br> 606 Dec for ROI centre (degrees) (-90-90) [22.01] <br>
878 -  
879 Radius of ROI (degrees) (0-180) [3.0] <br> 607 Radius of ROI (degrees) (0-180) [3.0] <br>
880 -  
881 Start time (MET in s) (0) [0.0] <br> 608 Start time (MET in s) (0) [0.0] <br>
882 -  
883 End time (MET in s) (0) [1800.0] <br> 609 End time (MET in s) (0) [1800.0] <br>
884 -  
885 Lower energy limit (TeV) (0) [0.1] <br> 610 Lower energy limit (TeV) (0) [0.1] <br>
886 -  
887 Upper energy limit (TeV) (0) [100.0]<br> 611 Upper energy limit (TeV) (0) [100.0]<br>
888 -  
889 </p> 612 </p>
890 -  
891 <p style="padding-top: 0pt; text-align: left;" class="Body"><span style="font-family: Courier New,Courier,monospace;">ctselect</span> 613 <p style="padding-top: 0pt; text-align: left;" class="Body"><span style="font-family: Courier New,Courier,monospace;">ctselect</span>
892 takes the input event list <span style="font-family: Courier New,Courier,monospace;">events.fits</span>, 614 takes the input event list <span style="font-family: Courier New,Courier,monospace;">events.fits</span>,
893 performs an event selection, and writes the selected event into the 615 performs an event selection, and writes the selected event into the
@@ -901,66 +623,44 @@ by respecting the same syntax that has been implemented for Fermi-LAT. @@ -901,66 +623,44 @@ by respecting the same syntax that has been implemented for Fermi-LAT.
901 The following image is a screen dump of the data 623 The following image is a screen dump of the data
902 selection keywords that have been written to the <span style="font-family: Courier New,Courier,monospace;">EVENTS</span> 624 selection keywords that have been written to the <span style="font-family: Courier New,Courier,monospace;">EVENTS</span>
903 header in the file <span style="font-family: Courier New,Courier,monospace;">selected_events.fits</span>:</p> 625 header in the file <span style="font-family: Courier New,Courier,monospace;">selected_events.fits</span>:</p>
904 -  
905 <br> 626 <br>
906 -  
907 <p style="padding-top: 0pt; text-align: center;" class="Body">&nbsp;<img style="width: 456px; height: 310px;" alt="Data selection keywords" src="images/dskeys.jpg"> 627 <p style="padding-top: 0pt; text-align: center;" class="Body">&nbsp;<img style="width: 456px; height: 310px;" alt="Data selection keywords" src="images/dskeys.jpg">
908 </p> 628 </p>
909 -  
910 <br> 629 <br>
911 -  
912 <p style="padding-top: 0pt; text-align: left;" class="Body">It 630 <p style="padding-top: 0pt; text-align: left;" class="Body">It
913 is important for unbinned analysis that these data selection keywords 631 is important for unbinned analysis that these data selection keywords
914 exist. If they don't exist, <span style="font-family: Courier New,Courier,monospace;">ctlike</span> 632 exist. If they don't exist, <span style="font-family: Courier New,Courier,monospace;">ctlike</span>
915 will not execute in unbinned mode.</p> 633 will not execute in unbinned mode.</p>
916 -  
917 <br> 634 <br>
918 -  
919 <p style="padding-top: 0pt; text-align: left;" class="Body">Below 635 <p style="padding-top: 0pt; text-align: left;" class="Body">Below
920 we show also for completeness the last few lines of the <span style="font-family: Courier New,Courier,monospace;">ctselect.log</span> 636 we show also for completeness the last few lines of the <span style="font-family: Courier New,Courier,monospace;">ctselect.log</span>
921 file. It gives information about the specific data selection that has 637 file. It gives information about the specific data selection that has
922 been performed. 638 been performed.
923 </p> 639 </p>
924 -  
925 <p class="Code"> 640 <p class="Code">
926 2011-02-01T19:58:34: +=================+<br> 641 2011-02-01T19:58:34: +=================+<br>
927 -  
928 2011-02-01T19:58:34: | Event selection |<br> 642 2011-02-01T19:58:34: | Event selection |<br>
929 -  
930 2011-02-01T19:58:34: +=================+<br> 643 2011-02-01T19:58:34: +=================+<br>
931 -  
932 2011-02-01T19:58:34:&nbsp; Time range ................: 0-1800<br> 644 2011-02-01T19:58:34:&nbsp; Time range ................: 0-1800<br>
933 -  
934 2011-02-01T19:58:34:&nbsp; Energy range ..............: 0.1-100 TeV<br> 645 2011-02-01T19:58:34:&nbsp; Energy range ..............: 0.1-100 TeV<br>
935 -  
936 2011-02-01T19:58:34:&nbsp; Acceptance cone centre ....: RA=83.63, 646 2011-02-01T19:58:34:&nbsp; Acceptance cone centre ....: RA=83.63,
937 DEC=22.01 deg<br> 647 DEC=22.01 deg<br>
938 -  
939 2011-02-01T19:58:34:&nbsp; Acceptance cone radius ....: 3 deg<br> 648 2011-02-01T19:58:34:&nbsp; Acceptance cone radius ....: 3 deg<br>
940 -  
941 2011-02-01T19:58:34:&nbsp; cfitsio selection .........: TIME 649 2011-02-01T19:58:34:&nbsp; cfitsio selection .........: TIME
942 &gt;= 0 &amp;&amp; TIME &lt;= 1800 &amp;&amp; 650 &gt;= 0 &amp;&amp; TIME &lt;= 1800 &amp;&amp;
943 ENERGY &gt;= 0.1 &amp;&amp; ENERGY &lt;= 100 651 ENERGY &gt;= 0.1 &amp;&amp; ENERGY &lt;= 100
944 &amp;&amp; ANGSEP(83.63,<br> 652 &amp;&amp; ANGSEP(83.63,<br>
945 -  
946 22.01,RA,DEC) &lt;= 3<br> 653 22.01,RA,DEC) &lt;= 3<br>
947 -  
948 2011-02-01T19:58:34:&nbsp; FITS filename .............: 654 2011-02-01T19:58:34:&nbsp; FITS filename .............:
949 events.fits[EVENTS][TIME &gt;= 0 &amp;&amp; TIME &lt;= 655 events.fits[EVENTS][TIME &gt;= 0 &amp;&amp; TIME &lt;=
950 1800 &amp;&amp; ENERGY &gt;= 0.1 &amp;&amp; ENERGY 656 1800 &amp;&amp; ENERGY &gt;= 0.1 &amp;&amp; ENERGY
951 &lt;= <br> 657 &lt;= <br>
952 -  
953 100 &amp;&amp; ANGSEP(83.63,22.01,RA,DEC) &lt;= 3]<br> 658 100 &amp;&amp; ANGSEP(83.63,22.01,RA,DEC) &lt;= 3]<br>
954 -  
955 2011-02-01T19:58:34: <br> 659 2011-02-01T19:58:34: <br>
956 -  
957 2011-02-01T19:58:34: Application "ctselect" terminated after consuming 660 2011-02-01T19:58:34: Application "ctselect" terminated after consuming
958 10 seconds of CPU time.<br> 661 10 seconds of CPU time.<br>
959 -  
960 &nbsp;<br> 662 &nbsp;<br>
961 -  
962 </p> 663 </p>
963 -  
964 <p style="padding-top: 0pt; text-align: left;" class="Body">Now 664 <p style="padding-top: 0pt; text-align: left;" class="Body">Now
965 that the event selection has been performed, <span style="font-family: Courier New,Courier,monospace;">ctlike</span> 665 that the event selection has been performed, <span style="font-family: Courier New,Courier,monospace;">ctlike</span>
966 can be run in unbinned mode. To do this, you have to type <span style="font-family: Courier New,Courier,monospace;">UNBINNED</span> 666 can be run in unbinned mode. To do this, you have to type <span style="font-family: Courier New,Courier,monospace;">UNBINNED</span>
@@ -972,24 +672,16 @@ that has been produced by &lt;span style=&quot;font-family: Courier New,Courier,monospac @@ -972,24 +672,16 @@ that has been produced by &lt;span style=&quot;font-family: Courier New,Courier,monospac
972 To run <span style="font-family: Courier New,Courier,monospace;">ctlike</span> 672 To run <span style="font-family: Courier New,Courier,monospace;">ctlike</span>
973 in unbinned mode, type the following: 673 in unbinned mode, type the following:
974 </p> 674 </p>
975 -  
976 <p class="Code"> 675 <p class="Code">
977 &gt; ctlike<br> 676 &gt; ctlike<br>
978 -  
979 Maximum likelihood method [BINNED] UNBINNED <br> 677 Maximum likelihood method [BINNED] UNBINNED <br>
980 -  
981 Calibration database [test/irf] /usr/local/gamma/share/caldb/cta<br> 678 Calibration database [test/irf] /usr/local/gamma/share/caldb/cta<br>
982 -  
983 Instrument response function [kb_E_50h_v3] <br> 679 Instrument response function [kb_E_50h_v3] <br>
984 -  
985 Source model [test/data/crab.xml] /usr/local/gamma/share/models/crab.xml<br> 680 Source model [test/data/crab.xml] /usr/local/gamma/share/models/crab.xml<br>
986 -  
987 Source model output file [crab_results.xml] <br> 681 Source model output file [crab_results.xml] <br>
988 -  
989 Event data file name [test/data/crab_events.fits.gz] 682 Event data file name [test/data/crab_events.fits.gz]
990 selected_events.fits 683 selected_events.fits
991 </p> 684 </p>
992 -  
993 <p style="padding-top: 0pt; text-align: left;" class="Body">You 685 <p style="padding-top: 0pt; text-align: left;" class="Body">You
994 will recognise that <span style="font-family: Courier New,Courier,monospace;">ctlike</span> 686 will recognise that <span style="font-family: Courier New,Courier,monospace;">ctlike</span>
995 runs much faster in unbinned mode compared to binned mode. This is 687 runs much faster in unbinned mode compared to binned mode. This is
@@ -1006,9 +698,7 @@ short event lists, unbinned mode is faster. Unbinned &lt;span style=&quot;font-family: C @@ -1006,9 +698,7 @@ short event lists, unbinned mode is faster. Unbinned &lt;span style=&quot;font-family: C
1006 should also be more 698 should also be more
1007 precise as no binning is performed, hence there is no loss of 699 precise as no binning is performed, hence there is no loss of
1008 information due to histogramming.</p> 700 information due to histogramming.</p>
1009 -  
1010 <br> 701 <br>
1011 -  
1012 <p style="padding-top: 0pt; text-align: left;" class="Body">Below 702 <p style="padding-top: 0pt; text-align: left;" class="Body">Below
1013 you see the corresponding output from the <span style="font-family: Courier New,Courier,monospace;">ctlike.log</span> 703 you see the corresponding output from the <span style="font-family: Courier New,Courier,monospace;">ctlike.log</span>
1014 file. The fitted parameters are essentially identical to the ones found 704 file. The fitted parameters are essentially identical to the ones found
@@ -1018,151 +708,91 @@ different event sample that has been used for the analysis: while @@ -1018,151 +708,91 @@ different event sample that has been used for the analysis: while
1018 binned likelihood works on rectangular counts maps, unbinned likelihood 708 binned likelihood works on rectangular counts maps, unbinned likelihood
1019 works on circular event selection regions. It is thus not possible to 709 works on circular event selection regions. It is thus not possible to
1020 select exactly the same events for both analyses!</p> 710 select exactly the same events for both analyses!</p>
1021 -  
1022 <p class="Code"> 711 <p class="Code">
1023 2011-02-02T14:32:54: +=================================+<br> 712 2011-02-02T14:32:54: +=================================+<br>
1024 -  
1025 2011-02-02T14:32:54: | Maximum likelihood optimisation |<br> 713 2011-02-02T14:32:54: | Maximum likelihood optimisation |<br>
1026 -  
1027 2011-02-02T14:32:54: +=================================+<br> 714 2011-02-02T14:32:54: +=================================+<br>
1028 -  
1029 2011-02-02T14:32:54:&nbsp; Initial iteration: func=33730.9, 715 2011-02-02T14:32:54:&nbsp; Initial iteration: func=33730.9,
1030 Lambda=0.001<br> 716 Lambda=0.001<br>
1031 -  
1032 2011-02-02T14:32:54:&nbsp; Iteration 1: func=33728.3, 717 2011-02-02T14:32:54:&nbsp; Iteration 1: func=33728.3,
1033 Lambda=0.0001, delta=2.56377<br> 718 Lambda=0.0001, delta=2.56377<br>
1034 -  
1035 2011-02-02T14:32:54:&nbsp; Iteration 2: func=33728.3, Lambda=1e-05, 719 2011-02-02T14:32:54:&nbsp; Iteration 2: func=33728.3, Lambda=1e-05,
1036 delta=0.00443209<br> 720 delta=0.00443209<br>
1037 -  
1038 2011-02-02T14:32:54:&nbsp; Iteration 3: func=33728.3, Lambda=1e-06, 721 2011-02-02T14:32:54:&nbsp; Iteration 3: func=33728.3, Lambda=1e-06,
1039 delta=5.81336e-06<br> 722 delta=5.81336e-06<br>
1040 -  
1041 2011-02-02T14:32:54:&nbsp; Iteration 4: func=33728.3, Lambda=1e-07, 723 2011-02-02T14:32:54:&nbsp; Iteration 4: func=33728.3, Lambda=1e-07,
1042 delta=1.31549e-08<br> 724 delta=1.31549e-08<br>
1043 -  
1044 2011-02-02T14:32:54: <br> 725 2011-02-02T14:32:54: <br>
1045 -  
1046 2011-02-02T14:32:54: +=========================================+<br> 726 2011-02-02T14:32:54: +=========================================+<br>
1047 -  
1048 2011-02-02T14:32:54: | Maximum likelihood optimisation results |<br> 727 2011-02-02T14:32:54: | Maximum likelihood optimisation results |<br>
1049 -  
1050 2011-02-02T14:32:54: +=========================================+<br> 728 2011-02-02T14:32:54: +=========================================+<br>
1051 -  
1052 2011-02-02T14:32:54: === GOptimizerLM ===<br> 729 2011-02-02T14:32:54: === GOptimizerLM ===<br>
1053 -  
1054 2011-02-02T14:32:54:&nbsp; Optimized function value ..: 33728.3<br> 730 2011-02-02T14:32:54:&nbsp; Optimized function value ..: 33728.3<br>
1055 -  
1056 2011-02-02T14:32:54:&nbsp; Absolute precision ........: 1e-06<br> 731 2011-02-02T14:32:54:&nbsp; Absolute precision ........: 1e-06<br>
1057 -  
1058 2011-02-02T14:32:54:&nbsp; Optimization status .......: converged<br> 732 2011-02-02T14:32:54:&nbsp; Optimization status .......: converged<br>
1059 -  
1060 2011-02-02T14:32:54:&nbsp; Number of parameters ......: 11<br> 733 2011-02-02T14:32:54:&nbsp; Number of parameters ......: 11<br>
1061 -  
1062 2011-02-02T14:32:54:&nbsp; Number of free parameters .: 5<br> 734 2011-02-02T14:32:54:&nbsp; Number of free parameters .: 5<br>
1063 -  
1064 2011-02-02T14:32:54:&nbsp; Number of iterations ......: 4<br> 735 2011-02-02T14:32:54:&nbsp; Number of iterations ......: 4<br>
1065 -  
1066 2011-02-02T14:32:54:&nbsp; Lambda ....................: 1e-07<br> 736 2011-02-02T14:32:54:&nbsp; Lambda ....................: 1e-07<br>
1067 -  
1068 2011-02-02T14:32:54:&nbsp; Maximum log likelihood ....: -33728.3<br> 737 2011-02-02T14:32:54:&nbsp; Maximum log likelihood ....: -33728.3<br>
1069 -  
1070 2011-02-02T14:32:54:&nbsp; Npred .....................: 4048<br> 738 2011-02-02T14:32:54:&nbsp; Npred .....................: 4048<br>
1071 -  
1072 2011-02-02T14:32:54: === GModels ===<br> 739 2011-02-02T14:32:54: === GModels ===<br>
1073 -  
1074 2011-02-02T14:32:54:&nbsp; Number of models ..........: 2<br> 740 2011-02-02T14:32:54:&nbsp; Number of models ..........: 2<br>
1075 -  
1076 2011-02-02T14:32:54:&nbsp; Number of parameters ......: 11<br> 741 2011-02-02T14:32:54:&nbsp; Number of parameters ......: 11<br>
1077 -  
1078 2011-02-02T14:32:54: === GModelPointSource ===<br> 742 2011-02-02T14:32:54: === GModelPointSource ===<br>
1079 -  
1080 2011-02-02T14:32:54:&nbsp; Name ......................: MAGIC Crab 743 2011-02-02T14:32:54:&nbsp; Name ......................: MAGIC Crab
1081 (Albert et al. 2008, ApJ, 674, 1037)<br> 744 (Albert et al. 2008, ApJ, 674, 1037)<br>
1082 -  
1083 2011-02-02T14:32:54:&nbsp; Instruments ...............: all<br> 745 2011-02-02T14:32:54:&nbsp; Instruments ...............: all<br>
1084 -  
1085 2011-02-02T14:32:54:&nbsp; Number of parameters ......: 6<br> 746 2011-02-02T14:32:54:&nbsp; Number of parameters ......: 6<br>
1086 -  
1087 2011-02-02T14:32:54:&nbsp; Number of spatial par's ...: 2<br> 747 2011-02-02T14:32:54:&nbsp; Number of spatial par's ...: 2<br>
1088 -  
1089 2011-02-02T14:32:54:&nbsp;&nbsp; RA .......................: 748 2011-02-02T14:32:54:&nbsp;&nbsp; RA .......................:
1090 83.6331 [-360,360] deg (fixed,scale=1)<br> 749 83.6331 [-360,360] deg (fixed,scale=1)<br>
1091 -  
1092 2011-02-02T14:32:54:&nbsp;&nbsp; DEC ......................: 750 2011-02-02T14:32:54:&nbsp;&nbsp; DEC ......................:
1093 22.0145 [-90,90] deg (fixed,scale=1)<br> 751 22.0145 [-90,90] deg (fixed,scale=1)<br>
1094 -  
1095 2011-02-02T14:32:54:&nbsp; Number of spectral par's ..: 3<br> 752 2011-02-02T14:32:54:&nbsp; Number of spectral par's ..: 3<br>
1096 -  
1097 2011-02-02T14:32:54:&nbsp;&nbsp; Prefactor ................: 753 2011-02-02T14:32:54:&nbsp;&nbsp; Prefactor ................:
1098 5.83432e-16 +/- 2.44527e-17 [1e-23,1e-13] ph/cm2/s/MeV 754 5.83432e-16 +/- 2.44527e-17 [1e-23,1e-13] ph/cm2/s/MeV
1099 (free,scale=1e-16)<br> 755 (free,scale=1e-16)<br>
1100 -  
1101 2011-02-02T14:32:54:&nbsp;&nbsp; Index ....................: 756 2011-02-02T14:32:54:&nbsp;&nbsp; Index ....................:
1102 -2.50725 +/- 0.0328297 [-0,-5]&nbsp; (free,scale=-1)<br> 757 -2.50725 +/- 0.0328297 [-0,-5]&nbsp; (free,scale=-1)<br>
1103 -  
1104 2011-02-02T14:32:54:&nbsp;&nbsp; PivotEnergy ..............: 758 2011-02-02T14:32:54:&nbsp;&nbsp; PivotEnergy ..............:
1105 300000 [10000,1e+09] MeV (fixed,scale=1e+06)<br> 759 300000 [10000,1e+09] MeV (fixed,scale=1e+06)<br>
1106 -  
1107 2011-02-02T14:32:54:&nbsp; Number of temporal par's ..: 1<br> 760 2011-02-02T14:32:54:&nbsp; Number of temporal par's ..: 1<br>
1108 -  
1109 2011-02-02T14:32:54:&nbsp;&nbsp; Constant .................: 1 761 2011-02-02T14:32:54:&nbsp;&nbsp; Constant .................: 1
1110 (relative value) (fixed,scale=1)<br> 762 (relative value) (fixed,scale=1)<br>
1111 -  
1112 2011-02-02T14:32:54: === GCTAModelRadialAcceptance ===<br> 763 2011-02-02T14:32:54: === GCTAModelRadialAcceptance ===<br>
1113 -  
1114 2011-02-02T14:32:54:&nbsp; Name ......................: Background<br> 764 2011-02-02T14:32:54:&nbsp; Name ......................: Background<br>
1115 -  
1116 2011-02-02T14:32:54:&nbsp; Instruments ...............: CTA<br> 765 2011-02-02T14:32:54:&nbsp; Instruments ...............: CTA<br>
1117 -  
1118 2011-02-02T14:32:54:&nbsp; Model type ................: "Gaussian" 766 2011-02-02T14:32:54:&nbsp; Model type ................: "Gaussian"
1119 * "PowerLaw" * "Constant"<br> 767 * "PowerLaw" * "Constant"<br>
1120 -  
1121 2011-02-02T14:32:54:&nbsp; Number of parameters ......: 5<br> 768 2011-02-02T14:32:54:&nbsp; Number of parameters ......: 5<br>
1122 -  
1123 2011-02-02T14:32:54:&nbsp; Number of radial par's ....: 1<br> 769 2011-02-02T14:32:54:&nbsp; Number of radial par's ....: 1<br>
1124 -  
1125 2011-02-02T14:32:54:&nbsp;&nbsp; Sigma ....................: 770 2011-02-02T14:32:54:&nbsp;&nbsp; Sigma ....................:
1126 3.03472 +/- 0.0398509 [0.01,10] deg2 (free,scale=1)<br> 771 3.03472 +/- 0.0398509 [0.01,10] deg2 (free,scale=1)<br>
1127 -  
1128 2011-02-02T14:32:54:&nbsp; Number of spectral par's ..: 3<br> 772 2011-02-02T14:32:54:&nbsp; Number of spectral par's ..: 3<br>
1129 -  
1130 2011-02-02T14:32:54:&nbsp;&nbsp; Prefactor ................: 773 2011-02-02T14:32:54:&nbsp;&nbsp; Prefactor ................:
1131 6.18897e-05 +/- 1.74306e-06 [0,0.001] ph/cm2/s/MeV (free,scale=1e-06)<br> 774 6.18897e-05 +/- 1.74306e-06 [0,0.001] ph/cm2/s/MeV (free,scale=1e-06)<br>
1132 -  
1133 2011-02-02T14:32:54:&nbsp;&nbsp; Index ....................: 775 2011-02-02T14:32:54:&nbsp;&nbsp; Index ....................:
1134 -1.86369 +/- 0.0156024 [-0,-5]&nbsp; (free,scale=-1)<br> 776 -1.86369 +/- 0.0156024 [-0,-5]&nbsp; (free,scale=-1)<br>
1135 -  
1136 2011-02-02T14:32:54:&nbsp;&nbsp; PivotEnergy ..............: 777 2011-02-02T14:32:54:&nbsp;&nbsp; PivotEnergy ..............:
1137 1e+06 [10000,1e+09] MeV (fixed,scale=1e+06)<br> 778 1e+06 [10000,1e+09] MeV (fixed,scale=1e+06)<br>
1138 -  
1139 2011-02-02T14:32:54:&nbsp; Number of temporal par's ..: 1<br> 779 2011-02-02T14:32:54:&nbsp; Number of temporal par's ..: 1<br>
1140 -  
1141 2011-02-02T14:32:54:&nbsp;&nbsp; Constant .................: 1 780 2011-02-02T14:32:54:&nbsp;&nbsp; Constant .................: 1
1142 (relative value) (fixed,scale=1)<br> 781 (relative value) (fixed,scale=1)<br>
1143 -  
1144 2011-02-02T14:32:54: <br> 782 2011-02-02T14:32:54: <br>
1145 -  
1146 2011-02-02T14:32:54: Application "ctlike" terminated after consuming 2 783 2011-02-02T14:32:54: Application "ctlike" terminated after consuming 2
1147 seconds of CPU time.<br> 784 seconds of CPU time.<br>
1148 -  
1149 </p> 785 </p>
1150 -  
1151 <br> 786 <br>
1152 -  
1153 <br> 787 <br>
1154 -  
1155 <p class="Title"><a name="Some_final_remarks"></a>Some 788 <p class="Title"><a name="Some_final_remarks"></a>Some
1156 -final remarks</p>  
1157 - 789 +final remarks <span style="color: red;">(updated for ctatools-00-02-03)</span></p>
1158 <p style="padding-top: 0pt; text-align: left;" class="Body">First 790 <p style="padding-top: 0pt; text-align: left;" class="Body">First
1159 you should notice that <span style="font-weight: bold;">ctatools 791 you should notice that <span style="font-weight: bold;">ctatools
1160 are in the prototyping phase</span>. If GammaLib and ctatools are 792 are in the prototyping phase</span>. If GammaLib and ctatools are
1161 installed on your system you should be able to run the above example 793 installed on your system you should be able to run the above example
1162 without any problems, and you can do even much more.</p> 794 without any problems, and you can do even much more.</p>
1163 -  
1164 <br> 795 <br>
1165 -  
1166 <p style="padding-top: 0pt; text-align: left;" class="Body">You 796 <p style="padding-top: 0pt; text-align: left;" class="Body">You
1167 may specify longer integration times for the simulation and for the 797 may specify longer integration times for the simulation and for the
1168 analysis, you can have several point sources in the 798 analysis, you can have several point sources in the
@@ -1176,66 +806,52 @@ generator, hence you cannot simulate events for spectral laws different @@ -1176,66 +806,52 @@ generator, hence you cannot simulate events for spectral laws different
1176 from power laws for the moment. You may try, however, fitting the 806 from power laws for the moment. You may try, however, fitting the
1177 sources with other spectral laws, yet I have not tried this, and I 807 sources with other spectral laws, yet I have not tried this, and I
1178 cannot guarantee that it works.</p> 808 cannot guarantee that it works.</p>
1179 -  
1180 <br> 809 <br>
1181 -  
1182 <p style="padding-top: 0pt; text-align: left;" class="Body">There 810 <p style="padding-top: 0pt; text-align: left;" class="Body">There
1183 is also only one radial acceptance model defined so far, and you should 811 is also only one radial acceptance model defined so far, and you should
1184 use the model definition that is given in the example.</p> 812 use the model definition that is given in the example.</p>
1185 -  
1186 <br> 813 <br>
1187 -  
1188 -<p style="padding-top: 0pt; text-align: left;" class="Body">Also,  
1189 -<span style="font-weight: bold;">don't fiddle around with  
1190 -other projections and coordinate systems in  
1191 -<span style="font-family: Courier New,Courier,monospace;">ctbin</span></span><span style="font-family: Courier New,Courier,monospace;">.</span>  
1192 -The cartesian projection is the only one that so far is  
1193 -implemented, and galactic coordinates have not been tested so far.</p>  
1194 - 814 +<p style="padding-top: 0pt; text-align: left;" class="Body">So far, there are four projection types supported: <span style="font-family: Courier New,Courier,monospace;">AZP</span>, <span style="font-family: Courier New,Courier,monospace;">CAR</span>, <span style="font-family: Courier New,Courier,monospace;">STG</span>, and <span style="font-family: Courier New,Courier,monospace;">TAN</span>. You can use them in Galactic (<span style="font-family: Courier New,Courier,monospace;">GAL</span>) or celestial (<span style="font-family: Courier New,Courier,monospace;">CEL</span>) coordinates.</p>
1195 <br> 815 <br>
1196 -  
1197 <p style="padding-top: 0pt; text-align: left;" class="Body">The 816 <p style="padding-top: 0pt; text-align: left;" class="Body">The
1198 instrument response function that has been implemented so far in 817 instrument response function that has been implemented so far in
1199 GammaLib (yes, it is in GammaLib, not in ctatools) is very simple. It 818 GammaLib (yes, it is in GammaLib, not in ctatools) is very simple. It
1200 -just reads Konrad's effective area files to get an <span style="font-weight: bold;">effective area that is so far  
1201 -independent of offset angle</span>. <span style="font-family: Courier New,Courier,monospace;">ctobssim</span> 819 +just reads Konrad's effective area files to get the onaxis effective
  820 +area. It is assumed that the effective area varies with offset angle,
  821 +and a Gaussian as function of offset angle squared has been implemented
  822 +for the functional form of this variation. By default, the <span style="font-family: Courier New,Courier,monospace;">sigma</span> of this Gaussian is fixed to 3 deg<sup>2</sup>.
  823 +This value can not be modified using the ctatools, but it can be
  824 +altered using the Python interface. In any case, this treatment of the
  825 +offset angle dependence is only preliminary and <span style="font-weight: bold;">will be changed as soon as a format has been defined for the CTA response functions</span>.</p><p style="padding-top: 0pt; text-align: left;" class="Body"></p><p style="padding-top: 0pt; text-align: left;" class="Body"><span style="font-family: Courier New,Courier,monospace;">ctobssim</span>
1202 and <span style="font-family: Courier New,Courier,monospace;">ctlike</span> 826 and <span style="font-family: Courier New,Courier,monospace;">ctlike</span>
1203 query for the name of the instrument response function file, and you 827 query for the name of the instrument response function file, and you
1204 may specify different 828 may specify different
1205 -response files if you like. To see what is available, type (adjust the 829 +response files if you want to study the impact of array configuration on the results. To see what is available, type (adjust the
1206 path corresponding to your installation directory): 830 path corresponding to your installation directory):
1207 </p> 831 </p>
1208 -  
1209 <p class="Code">&gt; ls 832 <p class="Code">&gt; ls
1210 /usr/local/gamma/share/caldb/cta<br> 833 /usr/local/gamma/share/caldb/cta<br>
1211 -  
1212 kb_A_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 834 kb_A_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1213 kb_D_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 835 kb_D_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1214 kb_G_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 836 kb_G_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1215 kb_J_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 837 kb_J_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1216 kb_NB_50h_v3.dat<br> 838 kb_NB_50h_v3.dat<br>
1217 -  
1218 kb_B_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 839 kb_B_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1219 kb_E_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 840 kb_E_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1220 kb_H_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 841 kb_H_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1221 kb_K_50h_v3.dat<br> 842 kb_K_50h_v3.dat<br>
1222 -  
1223 kb_C_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 843 kb_C_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1224 kb_F_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 844 kb_F_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1225 kb_I_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 845 kb_I_50h_v3.dat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1226 kb_NA_50h_v3.dat<br> 846 kb_NA_50h_v3.dat<br>
1227 -  
1228 </p> 847 </p>
1229 -  
1230 <p style="padding-top: 0pt; text-align: left;" class="Body">The 848 <p style="padding-top: 0pt; text-align: left;" class="Body">The
1231 point spread function (PSF) definition is also read from these files. 849 point spread function (PSF) definition is also read from these files.
1232 So far, the <span style="font-weight: bold;">PSF is a 850 So far, the <span style="font-weight: bold;">PSF is a
1233 simple&nbsp;Gaussian</span>. The energy dependent Gaussian 851 simple&nbsp;Gaussian</span>. The energy dependent Gaussian
1234 width is defined by 852 width is defined by
1235 the r68 parameter in Konrad's response files.</p> 853 the r68 parameter in Konrad's response files.</p>
1236 -  
1237 <br> 854 <br>
1238 -  
1239 <p style="padding-top: 0pt; text-align: left;" class="Body"><span style="font-weight: bold;">Lifetime 855 <p style="padding-top: 0pt; text-align: left;" class="Body"><span style="font-weight: bold;">Lifetime
1240 is assumed to be 100%</span>. I'm not sure whether lifetime is 856 is assumed to be 100%</span>. I'm not sure whether lifetime is
1241 folded in the 857 folded in the
@@ -1243,37 +859,33 @@ effective areas of Konrad&#39;s response files, if not, a corresponding @@ -1243,37 +859,33 @@ effective areas of Konrad&#39;s response files, if not, a corresponding
1243 correction should be applied to all source fluxes obtained with the 859 correction should be applied to all source fluxes obtained with the
1244 ctatools. 860 ctatools.
1245 </p> 861 </p>
1246 -  
1247 <br> 862 <br>
1248 -  
1249 <p style="padding-top: 0pt; text-align: left;" class="Body">Finally, 863 <p style="padding-top: 0pt; text-align: left;" class="Body">Finally,
1250 if 864 if
1251 you want to have the log file also dumped to the screen as the 865 you want to have the log file also dumped to the screen as the
1252 executable runs, add <span style="font-family: Courier New,Courier,monospace;">debug=yes</span> 866 executable runs, add <span style="font-family: Courier New,Courier,monospace;">debug=yes</span>
1253 on the command line, e.g. 867 on the command line, e.g.
1254 </p> 868 </p>
1255 -  
1256 <p class="Code">&gt; ctlike debug=yes 869 <p class="Code">&gt; ctlike debug=yes
1257 </p> 870 </p>
1258 -  
1259 <p style="padding-top: 0pt; text-align: left;" class="Body"> 871 <p style="padding-top: 0pt; text-align: left;" class="Body">
1260 And now: <span style="font-weight: bold;">enjoy playing 872 And now: <span style="font-weight: bold;">enjoy playing
1261 with ctatools</span>. 873 with ctatools</span>.
1262 </p> 874 </p>
1263 -  
1264 <br> 875 <br>
1265 -  
1266 <br> 876 <br>
1267 -  
1268 <p class="Title"><a name="Getting_Help"></a>Getting 877 <p class="Title"><a name="Getting_Help"></a>Getting
1269 Help</p> 878 Help</p>
1270 -  
1271 <p style="padding-top: 0pt; text-align: left;" class="Body"> 879 <p style="padding-top: 0pt; text-align: left;" class="Body">
1272 Any questions, bug reports, or suggested enhancements related to 880 Any questions, bug reports, or suggested enhancements related to
1273 ctatools and GammaLib&nbsp;should be submitted 881 ctatools and GammaLib&nbsp;should be submitted
1274 to <a href="mailto:knodlseder@cesr.fr">knodlseder@cesr.fr</a> 882 to <a href="mailto:knodlseder@cesr.fr">knodlseder@cesr.fr</a>
1275 . 883 .
1276 </p> 884 </p>
1277 -  
1278 -</body>  
1279 -</html> 885 +<br>
  886 +<hr size="1">
  887 +<p class="Body">Last updated by: J&uuml;rgen
  888 +Kn&ouml;dlseder 9 July
  889 +2011
  890 +</p>
  891 +</body></html>
1280 \ No newline at end of file 892 \ No newline at end of file