Calculating new terms from a given root file