zoglauer / megalib

MEGAlib - the Medium-Energy Gamma-ray Astronomy library
http://megalibtoolkit.com
Other
42 stars 34 forks source link

RSP Files to use in xspec #45

Closed mikemoss3 closed 6 years ago

mikemoss3 commented 6 years ago

Hello Andreas,

Sorry to bother you again so quickly.

I am trying to generate response files for AMEGO simulations. Is this possible and, if so, what are the necessary steps?

I am aware of the ResponseCreator function in Megalib and I have executed it as follows:

responsecreator -g path/to/Geometry.geo.setup -f FileName.inc1.id1.sim -m s -r response-test

Where I used actual files for the .geo.setup and .sim files (I can send them to you upon request).

The .rsp files that are generated are not accessible by rmfit or xspec, as it is not in the proper readable format for those programs. Is there a way to place them into this proper format? Maybe there is an option I need to specify.

Let me know what information you need from me!

Respectfully, Michael Moss

zoglauer commented 6 years ago

Those are MEGAlib spectral response files. You need a second program to convert from the rsp to a xspec response file. I'll send you an email.