This book provides a complete exposition of equidistribution and counting problems weighted by a potential function of common perpendicular geodesics in negatively curved manifolds and simplicial trees. Avoiding any compactness assumptions, the authors extend the theory of Patte…