Reconstruction of primary vertices at the ATLAS experiment in Run 1 proton–proton collisions at the LHC