Equivariant cohomology, lattices, and trees