This issue is well explained in the following posts, please have a look,
TOA and BOA
sen2cor converts L1C products into L2A
Evaluation of Sentinel-2 Red-Edge Bands for Empirical Estimation of Green LAI and Chlorophyll Content