How do I specify the mass and scale radius of a Hernquist profile (16) in Lenstool?
The input .par file still requires variables "v_disp" and "core_radius" - how are they related?
Some information from the source code is below, but I'm not sure about the normalisations. Any authoritative answers could go here:
https://projets.lam.fr/projects/lenstool/wiki/HernquistProfile
Thanks,
Richard
In e_grad.c,
g.x = dpl_rad * (1. - ilens->emass) * Q.x / u; // corrections to elliptical potential
g.y = dpl_rad * (1. + ilens->emass) * Q.y / u;
where
dpl_rad = hern_dpl(u, ilens->rc, ilens->b0)
I'm not sure what DPL stands for, but hern_dpl() is in e_hernquist.c, where the variable ilens->b0 is locally called kappas, and
dpl = kappas * rs * x * (1. - hern_f(x)) / (x * x - 1.);
so I'm guessing b0 is proportional to mass.
Moreover, b0 is read in set_lens.c, as
ilens->b0 = 6 * pia_c2 * ilens->sigma * ilens->sigma
but I have no idea what pia_c2 is. Any ideas?
---
PS: I now suspect that v_disp is never optimised, but b0 is. That means if you think you're getting a flat prior on v_disp, you're getting a flat prior on mass instead. Is that right?