Proposed behavior
- Users will specify cuts in gtselect by giving the IRF name, e.g., P7REP_SOURCE_V15, instead of giving evclass:
gtselect irfs=P7REP_SOURCE_V15
- The bit mask to apply for this choice of irfs is found from CALDB/data/glast/lat/bcf/irfs_index.fits
- The irfs choice is written to the EVENTS header of the FT1 file written by gtselect as DSS keywords:
Writing this information as DSS keywords ensures that it will be propagated to downstream data products such as counts maps, gtdiffrsp output files, etc..
DSTYP3: IRF_VERSION DSUNI3: DIMENSIONLESS DSVAL3: P7REP_SOURCE_V15
- For all downstream tools, irfs(=INDEF) is a hidden parameter. If unspecified, then the tools will determine the irfs to use from the DSS keywords of the input files.
- The user can override the irfs for any tool by specifying the irfs option at the command line:
If this choice differs from the one given in the DSS keywords of the input files, then a warning is issued.
gtdiffrsp irfs=P7REP_SOURCE_V10
- These changes are in ScienceTools-LATEST-1-3965 (the current LATEST). The only par file that has been changed is gtselect.par in which irfs=INDEF is added as a hidden parameter. In order to enable these changes fully, we need only make irfs(=INDEF) a hidden parameter in all downstream tools and make irfs a required parameter in gtselect. The current LATEST should be compatible with existing scripts.
To Be Resolved
- How should the irfs be determined initially in gtselect?
- User supplies full irfs name, e.g., irfs=P7REP_SOURCE_V15. The bit mask is found by look up in irfs_index.fits.
- User supplies bit mask, e.g., evclass=2, and the most recent set of irfs are inferred from caldb.indx and irfs_index.fits.
- User is not required to give anything, and the most recent "source" class irfs and event selection is used.
13 Comments
Jeremy S. Perkins
Hi Jim,
I met with Mike C. and Dave. and discussed this proposal with them. Here's what they propose. Please let me know if this would work. It goes without saying that I don't know the inner workings of the Science Tools so I don't know how easy/hard any of this is.
Reasoning:* The behavior of gtselect is unchanged and remains agnostic about the irfs (ie. it's only a selection tool).
James Chiang
I can implement this plan, but it has a couple drawbacks in my view compared to my proposal:
Jeremy S. Perkins
Just for clarification...
James Chiang
Jeremy S. Perkins
Jean Ballet
A few comments from a third party:
From those "first principles", I favor something like this:
Jeremy S. Perkins
Thanks for the comments Jean and sorry about the gtltcube example. I think your proposed method is very similar to the one we are moving towards. I don't really like 'INDEF' either but this is the behavior that most ftools use. In the tools if you input 'INDEF' it uses the default value for that parameter (either the default in the file or in a par file).
Jeremy S. Perkins
(Oops, I think I 'removed' your comment by accident Jim. It was the one where you were asking for a concrete proposal within a week).
James Chiang
Here it is again:
Jeremy,
Can you put together a concrete proposal? As I said, I will implement whatever the FSSC wants, but I need a finalized description of the changes before I can proceed. If that can be available within the next week (or sooner) that would be great.
Jeremy S. Perkins
We are happy with our initial reply above (comment-144507568\). We don't need to implement the 'INDEF' parameter. Is this good enough or would you like a more formal document? Happy either way.
James Chiang
Can you provide the text of the warning message(s) to be issued in the case of a CALDB or user-requested mismatch with the irfs specified in the input file DSS keywords?
I think the above is sufficient (with the addition of the warning text). If I have questions, I will post and let you know.
Jeremy S. Perkins
How about this:
James Chiang
I've been in contact with Brian and Tony about updating the astroserver output to use the correct DSS keywords for Pass 7. They are very busy, but I am hoping this can be fixed before the P7REP release, if not sooner.