Bug #1438

root2psf_king() in cta_root2caldb.py produces bad fits

Added by Kelley-Hoskins Nathan about 9 years ago.

Status:NewStart date:03/10/2015
Priority:LowDue date:
Assigned To:-% Done:

0%

Category:-
Target version:-
Duration:

Description

The root2psf_king function uses the 68 and 80% containment radii, and attempts to fit the king function’s sigma/gamma parameters. When the fitted sigma/gamma are checked by finding the containment fraction at the initial 68 and 80% radii, the fitted sigma/gamma always produces an 80% and ~88.3% containment fraction (instead of the expected 68% and 80%).

I’ve transcribed the root2psf_king() algorithm to a c function for comparison (it might be my c function was transcribed from python wrong, so I’m attaching it as well, see secantfunction.c), and compared its results to a TMinuit fitting, using an integrated king function calculated from mathematica. The results are in secantbug.log (or secantbug.nocolors.log, if you don’t want the color escape characters).

In the attached log files, the first column (denoted by ':') is the method used in the fit, the second column is the initial given 68% and 80% containment radii, the 3rd column is the fitted sigma/gamma. The fourth column is the containment fraction when the radii is plugged back into the integrated psf with the fitted sigma/gamma from the 3d column. The 5th column will have 'warn!' if something is wrong with the line.

secantbug.log - 1500 attempted king function fits, with two different methods (193 KB) Kelley-Hoskins Nathan, 03/10/2015 02:42 PM

secantbug.nocolors.log - same as secantbug.log, but with no color escape characters (167 KB) Kelley-Hoskins Nathan, 03/10/2015 02:42 PM

secantfunction.c Magnifier - containment radii to king psf function in C. used in secantbug*log' on lines that begin with 'secant' (2.96 KB) Kelley-Hoskins Nathan, 03/10/2015 02:42 PM


Recurrence

No recurrence.

Also available in: Atom PDF