Spend some time in a criminal courtroom and you will soon understand why they don't want weapons in that room. It is a very desperate, emotional place.
I'd check the state laws regarding weapons in courthouses. Pa. prohibits weapons in the courtrooms, not necessarily the whole building. Pa. also requires the court to provide a secure place to store your weapon. this is a fact that many counties are conveniently unaware of.