In diner slang, apple pie is "eve with a lid"  & to "put a hat on" her means to add this
However, the use of restaurant diner lingo is still present in small ... Eve with a lid 
on: apple pie, referring to the biblical Eve's tempting of Adam with an apple.