On decoding PSS (Primary synchronization signal) and SSS (secondary synchronization signal) the UE can identify the cell IDs of the eNBs. The cell-specific reference signals (pilot signals), which are used by UE for measurements, are different for different cell IDs. So based on the cell ID, UE can generate the correct cell-specific reference signals. There is more information in 36.211 section 6.10.1.1.