6S atmospheric correction method for Landsat 8

6S atmospheric correction method for Landsat 8

I m not clear with 6S atmospheric correction. which image we use to run 6S atmosphere as an input image to calculate coefficient xa,xb and xc
top of atmosphere radiance or top of atmosphere ...