how do you tell if a rigidbody is awake

how do you tell if a rigidbody is asleep.
Does raycasting work on asleep objects?
Does it wake them?

Thanks,

Try this:

if (!rigidbody.IsSleeping())
{
     // Do stuff here
}