Commit 7367b6968b322420ed1240444e4704384f4b82b4

Authored by Jürgen Knödlseder
1 parent 0823df67

Update 1DC pulsar analysis

doc/source/users/tutorials/howto/howto_phasecurve.rst
... ... @@ -92,7 +92,7 @@ the event.
92 92  
93 93 To generate now a phase curve of the Vela pulsar you need to select all events
94 94 that are close to the source using the :ref:`ctselect` tool. To select for
95   -example all events within 0.5 degrees of the Vela pulsar you need to type
  95 +example all events within 0.2 degrees of the Vela pulsar you need to type
96 96 the following:
97 97  
98 98 .. code-block:: bash
... ... @@ -101,21 +101,21 @@ the following:
101 101 Input event list or observation definition XML file [events.fits] obs_vela_phased.xml
102 102 RA for ROI centre (degrees) (0-360) [83.63] 128.838
103 103 Dec for ROI centre (degrees) (-90-90) [22.01] -45.178
104   - Radius of ROI (degrees) (0-180) [3.0] 0.5
  104 + Radius of ROI (degrees) (0-180) [3.0] 0.2
105 105 Start time (CTA MET in seconds) [0.0]
106 106 End time (CTA MET in seconds) [0.0]
107 107 Lower energy limit (TeV) [0.1] 0.03
108 108 Upper energy limit (TeV) [100.0] 160.0
109 109 Output event list or observation definition XML file [selected_events.fits] obs_vela_phased_selected.xml
110 110  
111   -The selected events as a function of phase are displayed below. There is no
112   -obvious indication of a phase dependence of the event rate.
  111 +The selected events as a function of phase are displayed below. There is a
  112 +clear indication for a phase dependence of the event rate.
113 113  
114 114 .. figure:: howto_phasecurve_phases.png
115 115 :width: 600px
116 116 :align: center
117 117  
118   - *Phase histogram for events selected within 0.5 degrees of the Vela pulsar*
  118 + *Phase histogram for events selected within 0.2 degrees of the Vela pulsar*
119 119  
120 120 An alternative method to select events from the
121 121 :ref:`observation definition file <glossary_obsdef>`
... ... @@ -179,12 +179,12 @@ probability value for all model components.
179 179  
180 180 You now can perform an event selection based on the probability that an event
181 181 originates from the Vela pulsar. In the following example we set the
182   -probability threshold to >20% by adding the attribute
183   -``expr="PROB_VelaPulsar>0.2"`` after the :ref:`ctselect` command:
  182 +probability threshold to >10% by adding the attribute
  183 +``expr="PROB_VelaPulsar>0.1"`` after the :ref:`ctselect` command:
184 184  
185 185 .. code-block:: bash
186 186  
187   - $ ctselect expr="PROB_VelaPulsar>0.2"
  187 + $ ctselect expr="PROB_VelaPulsar>0.1"
188 188 Input event list or observation definition XML file [obs_vela_phased.xml] obs_vela_phased_prob.xml
189 189 RA for ROI centre (degrees) (0-360) [128.838]
190 190 Dec for ROI centre (degrees) (-90-90) [-45.178]
... ... @@ -195,15 +195,15 @@ probability threshold to &gt;20% by adding the attribute
195 195 Upper energy limit (TeV) [160.0]
196 196 Output event list or observation definition XML file [obs_vela_phased_selected.xml] obs_vela_phased_prob_selected.xml
197 197  
198   -The selected events as a function of phase are displayed below. There is now a
199   -hint for a phase dependence of the event rate, although this hint is not very
200   -significant.
  198 +The selected events as a function of phase are displayed below. The background
  199 +is considerably reduced with respect to the simple radius cut that was
  200 +used before, and the pulsations of the Vela pulsar are now clearly visible.
201 201  
202 202 .. figure:: howto_phasecurve_probphases.png
203 203 :width: 600px
204 204 :align: center
205 205  
206   - *Phase histogram of events for events having a probability of >20% in originating from the Vela pulsar*
  206 + *Phase histogram of events for events having a probability of >10% in originating from the Vela pulsar*
207 207  
208 208 Since every event in the event files of the Data Challenge is tagged with a
209 209 Monte Carlo identifier that specifies from which model component it was
... ... @@ -211,13 +211,13 @@ simulated, you may check how many events from the Vela pulsar are actually
211 211 expected in the data. The correspondance between the model components and
212 212 the Monte Carlo identifiers is given in the header of the event files
213 213 (see :ref:`1dc_data_organisation`), and from there you will find out that
214   -the Vela pulsar has the Monte Carlo identifier ``86``. You can then select only
215   -the events with this identifier by adding the attribute ``expr="MC_ID==86"``
  214 +the Vela pulsar has the Monte Carlo identifier ``91``. You can then select only
  215 +the events with this identifier by adding the attribute ``expr="MC_ID==91"``
216 216 after the :ref:`ctselect` command:
217 217  
218 218 .. code-block:: bash
219 219  
220   - $ ctselect expr="MC_ID==86"
  220 + $ ctselect expr="MC_ID==91"
221 221 Input event list or observation definition XML file [obs_vela_phased_prob.xml] obs_vela_phased.xml
222 222 RA for ROI centre (degrees) (0-360) [128.838]
223 223 Dec for ROI centre (degrees) (-90-90) [-45.178]
... ... @@ -228,10 +228,11 @@ after the :ref:`ctselect` command:
228 228 Upper energy limit (TeV) [160.0]
229 229 Output event list or observation definition XML file [obs_vela_phased_prob_selected.xml] obs_vela_phased_mcid.xml
230 230  
231   -The resulting phase histogram is shown below. It now becomes obvious that
232   -the peaks seen in the event histogram do indeed correspond to the expected
233   -peaks from the Vela pulsar, but there are too few events in the simulated data
234   -to allow for a unambiguous detection of the pulsar.
  231 +The resulting phase histogram is shown below. It confirms that the peaks seen
  232 +in the event histogram do indeed correspond to the expected peaks from the Vela
  233 +pulsar. Note that the peak has an amplitude of about 460 events, while the peak
  234 +in the figures above is about 250 events, indicating that almost half of the
  235 +events have been surpressed by the radius or probability cuts.
235 236  
236 237 .. figure:: howto_phasecurve_mcid.png
237 238 :width: 700px
... ...
doc/source/users/tutorials/howto/howto_phasecurve_mcid.png

13.3 KB | W: | H:

15 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
doc/source/users/tutorials/howto/howto_phasecurve_phases.png

16 KB | W: | H:

18.9 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
doc/source/users/tutorials/howto/howto_phasecurve_probphases.png

12.8 KB | W: | H:

18.2 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin