I have pain and swelling a few days after a root canal. How can I treat this?

Call dentist. Call the dentist who did the root canal and inform him you have pain and swelling. He should tell you what you need to do. He needs to know that you have discomfort.