cssens sensitivity calculation for model with spectrum from file (GModelSpectralFunc)
|Assigned To:||Knödlseder Jürgen||% Done:|
For my thesis, I wanted to calculate the sensitivity for a model with both the spatial and spectral descriptions described by numeric values in files (extended DM subhalos with DM spectra, see appended xml file). The current cssens.py tool cannot handle such a model. It would be great to add this feature to cssens.
#2 Updated by Kherlakian M. over 2 years ago
Knödlseder Jürgen wrote:
On what timescale would you need that functionality?
Has it been implemented? I have the same problem. I want to calculate the sensitivity for a source spectrum defined by a FileFunction, however cssens does not accept this type of spectrum, it seems.
#5 Updated by Knödlseder Jürgen over 2 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
I implemented the possibility to use other types of spectral models in
cstsdist. Now both scripts can except any type of spectral model, except of a node function. I would also expect that composite or multiplicative spectral models do not work properly, at least in general.
I tested the implementing using a file function model, a constant model, a power law 2 model, and photon flux and energy flux power law models.
Code was merged into