replace secondary menu for logged in users

Hello,

I'm looking for a snippet of code that will allow me to replace only the secondary menu for users who are logged in. Can you help?

thanks!