Feature #2231

Adapt csspec for On/Off analysis

Added by Knödlseder Jürgen over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:10/17/2017
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-
Target version:1.5.0
Duration:

Description

Make sure that csspec can be used for an On/Off analysis

comparison.png (32.7 KB) Knödlseder Jürgen, 10/18/2017 11:56 AM

comparison20.png (38.7 KB) Knödlseder Jürgen, 10/18/2017 12:06 PM

Comparison Comparison20

Recurrence

No recurrence.

History

#1 Updated by Knödlseder Jürgen over 6 years ago

  • File comparison.png added
  • Status changed from New to In Progress
  • % Done changed from 0 to 80

I adapted the script so that it can also handle On/Off data. This needed some minor changes in GammaLib, and in particular, the addition of a PHA, ARF and RMF constructor to GCTAOnOffObservation.

Below a comparison spectrum for a simulated 30 min Crab observation. Red are the spectral points obtained with csspec, blue the spectral points obtained using an unbinned analysis without energy dispersion, and green the spectral points obtained using an unbinned analysis with energy dispersion. Note that for a On/Off analysis, energy dispersion is always included.

The spectra are pretty consistent, and the error bars are larger for On/Off with respect to an unbinned analysis as expected from the larger uncertainty in the background model.

#3 Updated by Knödlseder Jürgen over 6 years ago

  • File deleted (comparison.png)

#4 Updated by Knödlseder Jürgen over 6 years ago

Same for 20 energy bins.

#5 Updated by Knödlseder Jürgen over 6 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 80 to 100

Code merged into devel.

Also available in: Atom PDF