If you used a condom, you have about a 1 in 10,000 chance of getting herpes from a one-time sexual encounter.
Even if you were in a relationship with a female who has hsv2, using condoms would mean you have a 2-3% chance of getting it over the course of a year, assuming you had sex about 2-3x a week, and assuming you were avoiding sex during outbreaks.
Lots of things can cause pain in your legs, butt and groin - a pulled muscle, a pinched nerve, prostatitis, stress, anxiety causing a hyper-awareness of the area, an anal fissure, a spinal issue like an inflamed disc, etc. Herpes is actually pretty far down the list of what would cause pain like this, and you wouldn't have this pain if you haven't had an actual outbreak.
If your pain lingers, see your doctor, but I'd be really surprised if it's herpes.