Brewer's: Cap and Gown
The full academical costume of a university student, tutor, or master, worn at lectures, examinations, and after “hall” (dinner).
“Is it a cap and gown affair?” —C. Bede: Verdant Green.
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894