The notions of mass in gravitational and particle physics