单项选择题

Only when (it started) to rain (he noticed) that he (had left) his raincoat (somewhere).

A.it started
B.he noticed
C.had left
D.somewhere