UE will get to know the Physical Layer Identity after decoding PSS and Physical layer Cell identity group number by decoding SSS.
Now Combining these two Physical Layer Identity (x) + Physical Layer Cell identity group number(3y) , UE will derive the Physical Cell ID.