Dear Ma'am,
If I understood well what your described, you had rough anal sex and since then you have
anal pain. Ift that's the case, then its is probably hemorrhoids (swollen veins of the anus) often a complication of anal sex without lubricant or done roughly. A visit to a doctor will permit u get some medication to calm the pain and get the "glands" back in place as well as rule out any possible sexually transmitted infection (especially if sex was unprotected).
Wish u quick recovery.