Feature #1234
Add a way to create IRF classes directly without needing FITS files
Status: | New | Start date: | 06/26/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assigned To: | - | % Done: | 0% | |
Category: | - | |||
Target version: | - | |||
Duration: |
Description
Currently most of the Gammalib IRF classes can only be initialised via a FITS file.
For science parameter and sensitivity studies as well as for debugging it would be nice if there were a way to create initialised IRF classes directly by passing the required parameters / tables / histogram (whatever is needed and read from file at the moment) directly.
As an example, let’s say I would like to do a computation how the sensitivity to distinguish Gauss or Shell morphology on the PSF width.
The spatial models take the relevant parameters as input and it’s easy to construct them how I want.
But for the PSF I currently see no way to vary the width except to manually inspect the FITS format for the example test files and writing code that manually generates exactly that file format, just so that I can get a PSF of the width I want. See e.g. http://gammalib.sourceforge.net/doxygen/classGCTAPsfKing.html
I guess it’s a lot of work to add these extra constructors for all the IRF classes ... Jürgen, do you think it’s worth it?
Recurrence
No recurrence.