Hey Buckwheat, I've worked closely with some of the Military Working Dog (MWD) handlers. All of the Navy's Dog handlers are Master-at-Arms. Like me. But they go to an additional school in order to become handlers.
Anywho, to make a long story even longer, and to jack the living crap out of andy's man-purse thread...
Dogs smell in color. That's how it was explained to me. We 'see' all shades of colors, different colors of 'green' etc. Dogs smell that way.
You close your eyes and smell a big mac and you smell a hamburger. The dog smells beef, mustard, ketchup, bread, pickles, seasame seeds, lettuce, cheese... etc.
To put marijuana or other drugs with coffee does nothing. The dog will then smell marijuana and coffee and still alert his handler.