ROOT scripts for vertexing