Implementation of function for Primakoff analysis in hubers user-area.

X-checked with the old analysis code.