From correlation functions to event shapes