Commit 7367b6968b322420ed1240444e4704384f4b82b4
1 parent
0823df67
Update 1DC pulsar analysis
Showing
4 changed files
with
20 additions
and
19 deletions
doc/source/users/tutorials/howto/howto_phasecurve.rst
| @@ -92,7 +92,7 @@ the event. | @@ -92,7 +92,7 @@ the event. | ||
| 92 | 92 | ||
| 93 | To generate now a phase curve of the Vela pulsar you need to select all events | 93 | To generate now a phase curve of the Vela pulsar you need to select all events |
| 94 | that are close to the source using the :ref:`ctselect` tool. To select for | 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 | the following: | 96 | the following: |
| 97 | 97 | ||
| 98 | .. code-block:: bash | 98 | .. code-block:: bash |
| @@ -101,21 +101,21 @@ the following: | @@ -101,21 +101,21 @@ the following: | ||
| 101 | Input event list or observation definition XML file [events.fits] obs_vela_phased.xml | 101 | Input event list or observation definition XML file [events.fits] obs_vela_phased.xml |
| 102 | RA for ROI centre (degrees) (0-360) [83.63] 128.838 | 102 | RA for ROI centre (degrees) (0-360) [83.63] 128.838 |
| 103 | Dec for ROI centre (degrees) (-90-90) [22.01] -45.178 | 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 | Start time (CTA MET in seconds) [0.0] | 105 | Start time (CTA MET in seconds) [0.0] |
| 106 | End time (CTA MET in seconds) [0.0] | 106 | End time (CTA MET in seconds) [0.0] |
| 107 | Lower energy limit (TeV) [0.1] 0.03 | 107 | Lower energy limit (TeV) [0.1] 0.03 |
| 108 | Upper energy limit (TeV) [100.0] 160.0 | 108 | Upper energy limit (TeV) [100.0] 160.0 |
| 109 | Output event list or observation definition XML file [selected_events.fits] obs_vela_phased_selected.xml | 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 | .. figure:: howto_phasecurve_phases.png | 114 | .. figure:: howto_phasecurve_phases.png |
| 115 | :width: 600px | 115 | :width: 600px |
| 116 | :align: center | 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 | An alternative method to select events from the | 120 | An alternative method to select events from the |
| 121 | :ref:`observation definition file <glossary_obsdef>` | 121 | :ref:`observation definition file <glossary_obsdef>` |
| @@ -179,12 +179,12 @@ probability value for all model components. | @@ -179,12 +179,12 @@ probability value for all model components. | ||
| 179 | 179 | ||
| 180 | You now can perform an event selection based on the probability that an event | 180 | You now can perform an event selection based on the probability that an event |
| 181 | originates from the Vela pulsar. In the following example we set the | 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 | .. code-block:: bash | 185 | .. code-block:: bash |
| 186 | 186 | ||
| 187 | - $ ctselect expr="PROB_VelaPulsar>0.2" | 187 | + $ ctselect expr="PROB_VelaPulsar>0.1" |
| 188 | Input event list or observation definition XML file [obs_vela_phased.xml] obs_vela_phased_prob.xml | 188 | Input event list or observation definition XML file [obs_vela_phased.xml] obs_vela_phased_prob.xml |
| 189 | RA for ROI centre (degrees) (0-360) [128.838] | 189 | RA for ROI centre (degrees) (0-360) [128.838] |
| 190 | Dec for ROI centre (degrees) (-90-90) [-45.178] | 190 | Dec for ROI centre (degrees) (-90-90) [-45.178] |
| @@ -195,15 +195,15 @@ probability threshold to >20% by adding the attribute | @@ -195,15 +195,15 @@ probability threshold to >20% by adding the attribute | ||
| 195 | Upper energy limit (TeV) [160.0] | 195 | Upper energy limit (TeV) [160.0] |
| 196 | Output event list or observation definition XML file [obs_vela_phased_selected.xml] obs_vela_phased_prob_selected.xml | 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 | .. figure:: howto_phasecurve_probphases.png | 202 | .. figure:: howto_phasecurve_probphases.png |
| 203 | :width: 600px | 203 | :width: 600px |
| 204 | :align: center | 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 | Since every event in the event files of the Data Challenge is tagged with a | 208 | Since every event in the event files of the Data Challenge is tagged with a |
| 209 | Monte Carlo identifier that specifies from which model component it was | 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,13 +211,13 @@ simulated, you may check how many events from the Vela pulsar are actually | ||
| 211 | expected in the data. The correspondance between the model components and | 211 | expected in the data. The correspondance between the model components and |
| 212 | the Monte Carlo identifiers is given in the header of the event files | 212 | the Monte Carlo identifiers is given in the header of the event files |
| 213 | (see :ref:`1dc_data_organisation`), and from there you will find out that | 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 | after the :ref:`ctselect` command: | 216 | after the :ref:`ctselect` command: |
| 217 | 217 | ||
| 218 | .. code-block:: bash | 218 | .. code-block:: bash |
| 219 | 219 | ||
| 220 | - $ ctselect expr="MC_ID==86" | 220 | + $ ctselect expr="MC_ID==91" |
| 221 | Input event list or observation definition XML file [obs_vela_phased_prob.xml] obs_vela_phased.xml | 221 | Input event list or observation definition XML file [obs_vela_phased_prob.xml] obs_vela_phased.xml |
| 222 | RA for ROI centre (degrees) (0-360) [128.838] | 222 | RA for ROI centre (degrees) (0-360) [128.838] |
| 223 | Dec for ROI centre (degrees) (-90-90) [-45.178] | 223 | Dec for ROI centre (degrees) (-90-90) [-45.178] |
| @@ -228,10 +228,11 @@ after the :ref:`ctselect` command: | @@ -228,10 +228,11 @@ after the :ref:`ctselect` command: | ||
| 228 | Upper energy limit (TeV) [160.0] | 228 | Upper energy limit (TeV) [160.0] |
| 229 | Output event list or observation definition XML file [obs_vela_phased_prob_selected.xml] obs_vela_phased_mcid.xml | 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 | .. figure:: howto_phasecurve_mcid.png | 237 | .. figure:: howto_phasecurve_mcid.png |
| 237 | :width: 700px | 238 | :width: 700px |
doc/source/users/tutorials/howto/howto_phasecurve_mcid.png
doc/source/users/tutorials/howto/howto_phasecurve_phases.png
doc/source/users/tutorials/howto/howto_phasecurve_probphases.png