Chloramine is responsible for the classic "swimming pool smell", as the chlorination in the pool reacts with urine, sweat, and other nitrogen-containing organics. Chloramine is a less effective disinfectant than free chlorine, and more irritating to swimmers, and diffuses out of the water more slowly, so this is why you shouldn't pee in the pool, and why you should rinse off in a shower for a minute before entering. Mainly, just don't pee in the pool.
If you smell "swimming pool" where no pool exists, it might be prudent to leave the area immediately and take a 1000 mg vitamin C tablet, before making any attempts to discover the source of the smell. (Taking vitamin C after the damage is already done won't help.) If the odor is especially strong, or if it causes any irritation to your nose and eyes, evacuate, and do not return. Call your emergency services number and tell them you smelled a strong chlorine odor.
Don't combine bleach cleaners with ammonia cleaners, ever. Don't even store them in the same place. Also avoid mixing bleach with acids, such as vinegar.
Chlorine can react with about anything that contains ammonia or amines to form chloramine, so shampoos, lotions, shaving foams, or conditioners could also be responsible. Amino acids are named thus for their amine groups, so anything containing proteins or protein fragments will react. Amine oxides and triethanolamine are used as surfactants in cosmetics. Sweat is unlikely to be the culprit. Check the ingredients in your cosmetics.