An officer can "pat" you down ...
When you have had too much to drink
When they suspect you may have a weapon such as a knife or gun
When you become very argumentative with the police officer
If you are wearing a long coat