In diner slang, apple pie is "eve with a lid"  & to "put a hat on" her means to add this
Put a hat on it: Add ice cream [DOC] [TLE] Classic Diner Talk We Dare You to Use | Reader's Digest [PAR] You too can speak waiter, using funny lingo for short-order dishes.