Thank you, it's perfect!
See if this does what you want.
Define your function f and follow that with
Map[f[Norm[#]]&,b]
to see a list of each of the individual results
and then try
Total[Map[f[Norm[#]]&,b]]
to see the sum of all those