it sounds like you were just swimming way to much. or if you smoke you smoked way to much yestrurday and thats why you are having chest pain. it could also be you ate something spicy last night and now you have chest pains.
don't worry..it has happened to me. the pain passes with the days, max 3 days.
If you swam that much it could be your Pec. muscle.