Class to calculate event shape variables in ROOT