fermi-lat / Likelihood

BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

gtlike does not behave as gtsrcmaps when irfs=P8R3_SOURCE_V2 #56

Open phbruel opened 4 years ago

phbruel commented 4 years ago

Using some test files produced with P8R2_SOURCE_V2 PSF3 evt type (evtype=32), I noticed a strange behavior when gtlike creates maps on the fly when irfs=P8R3_SOURCE_V2.

When running gtsrcmaps, irfs=CALDB and irfs=P8R3_SOURCE_V2 both select the same event class and type: ResponseFunctions::load: IRF used: P8R3_SOURCE_V2 (PSF) event_types: 5

But gtlike behaves differently:

The former is correct while the latter selects incorrectly FRONT+BACK.

This happens in ScienceTools 11-07-00 and in FermiTools 1.2.23.

It seems safer that gtlike should follow gtsrcmaps behavior.

jasercion commented 3 years ago

@phbruel Would you mind retesting this behavior with the 1.3.4 dev/beta build? I am unable to replicate the above differing event_type outputs.

phbruel commented 3 years ago

I've just installed fermitools 1.3.4 and tested the command line gtlike and I see the same problem. All the files are in /afs/slac/g/glast/users/bruel/github_issue_56.

donhorner commented 3 years ago

@jasercion have you looked more into this issue? I see the same thing as @phbruel does with the latest betas 1.3.6 and 1.9.13. Specifying the IRF leads to different event type selection.