you could indeed have asthma, or be developing an allergic reaction to the chlorine in the swimming pool. could be worse because your recovering from a chest infection. also, your chest infection could have turned into pneumonia. go see a GP soon.
Have you been tested for asthma? I was having similar symptoms and was diagnosed with asthma. Ask your doctor about it.