How do you keep raccoons out of a tomato garden?

There are three obvious ways to address the raccoons: 1. You can shoot them 2. You can trap them, either with traps that kill them or live traps that would allow you to relocat them

3. You can fence the garden (regular, barbedwire or electric).

Obviously which path you choose depends on where you live, where your garden is in relation to electricity and other homes, your abilities and preferences, etc. One note I would add is that, if you ever choose to trap them for relocation or try to put in an electric fence, be careful and do your homework (e.g., check with Department of Natural Resources).