Geodesics in trees of hyperbolic and relatively hyperbolic groups · wovepaper