Raccoons should be trapped wit raccoon-sized traps. Squirrels should be trapped with squirrel-sized traps. But, you'll sometimes find them using the same hole.
If this happens raccoons will squeeze into and through squirrel traps if need be. Here is an example.