the sector assignment is done in LTE_common_calculate_cell_capacity. Every UE is connected to the BS (macro, femto, etc.) that provides the largest received power. For this, transmit power, path loss, shadowing and antenna gain are accumulated. In this file you can change the decision process to whatever you prefer and also do more things, for example boost femtocells for CRE.