Reconstruction of the mass of Higgs boson pairs in events with Higgs boson pairs decaying into four $\tau$ leptons