It seems the judges do it in open court in Oklahoma City. IOL has posted an interesting article titled "It was a case of ‘all rise’ for this judge…" –
Oklahoma City – Jurors and officials in Judge Donald Thompson’s
courtroom kept hearing a strange whooshing noise, like a bicycle pump
or a blood pressure cuff.
During one trial, Thompson seemed so distracted that jurors thought he
was playing a hand-held video game or tying fly-fishing lures behind
The explanation, investigators say, is even stranger: the judge had a
habit of masturbating with a penis pump under his robe during trials.
The allegations could lead to a wave of appeals from defendants
claiming the judge was not paying attention in their cases. He has
resigned but now faces indecent exposure charges.
A police officer who testified during a 2003 murder trial saw a piece of plastic tubing disappear under Thompson’s robe.
Investigators later collected carpet samples, Thompson’s robes and the
chair from behind the bench and found semen, according to court
records. – Sapa-AP
Now there is a man who loves his job!